cclawd 1.0.1 → 1.0.3
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/build-info.json +3 -3
- package/dist/plugin-sdk/compat.js +35 -35
- package/extensions/mfa-auth/index.ts +17 -7
- package/extensions/mfa-auth/src/notification-service.ts +7 -3
- package/package.json +458 -458
- package/dist/plugin-sdk/active-listener-CN-tMEvN.js +0 -35
- package/dist/plugin-sdk/api-key-rotation-CimGYMBc.js +0 -176
- package/dist/plugin-sdk/audio-preflight-C-xXBoE2.js +0 -51
- package/dist/plugin-sdk/audio-transcription-runner-CTIHpebA.js +0 -2173
- package/dist/plugin-sdk/audit-membership-runtime-BFatB2LJ.js +0 -58
- package/dist/plugin-sdk/channel-activity-DO0FEzyj.js +0 -95
- package/dist/plugin-sdk/channel-web-Da-__nUF.js +0 -2238
- package/dist/plugin-sdk/commands-registry-6no2NNrY.js +0 -1118
- package/dist/plugin-sdk/compact.runtime-CCoclu5e.js +0 -35
- package/dist/plugin-sdk/config-B9ODwgpz.js +0 -37426
- package/dist/plugin-sdk/deliver-B1fFpKjV.js +0 -1757
- package/dist/plugin-sdk/deliver-runtime-DB-VRMe1.js +0 -15
- package/dist/plugin-sdk/deps-send-discord.runtime-DklqycYG.js +0 -15
- package/dist/plugin-sdk/deps-send-imessage.runtime-Chs8zeon.js +0 -14
- package/dist/plugin-sdk/deps-send-signal.runtime-clW9aSJP.js +0 -13
- package/dist/plugin-sdk/deps-send-slack.runtime-BUx0LYY1.js +0 -13
- package/dist/plugin-sdk/deps-send-telegram.runtime-LECSHgMG.js +0 -16
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-D2d65fw0.js +0 -40
- package/dist/plugin-sdk/diagnostic-CxIvS-C2.js +0 -315
- package/dist/plugin-sdk/dispatch-BqlR4dPx.js +0 -105863
- package/dist/plugin-sdk/env-b9k1PHMI.js +0 -34
- package/dist/plugin-sdk/fetch-PoxzAANT.js +0 -326
- package/dist/plugin-sdk/fetch-guard-4UVSZ0uS.js +0 -164
- package/dist/plugin-sdk/image-Ch6M4tnJ.js +0 -2420
- package/dist/plugin-sdk/image-runtime-CSh2o5wY.js +0 -8
- package/dist/plugin-sdk/ir-CugsqGH8.js +0 -1312
- package/dist/plugin-sdk/local-roots-adnEg9zb.js +0 -217
- package/dist/plugin-sdk/logger-D6zRubj0.js +0 -1164
- package/dist/plugin-sdk/login-CYvkQ0At.js +0 -54
- package/dist/plugin-sdk/login-qr-ll4NtaT5.js +0 -316
- package/dist/plugin-sdk/manager-CHy8IclH.js +0 -3959
- package/dist/plugin-sdk/manager-runtime-C70EkEr7.js +0 -11
- package/dist/plugin-sdk/outbound-Wzs2iN7X.js +0 -216
- package/dist/plugin-sdk/outbound-attachment-khXJwucX.js +0 -17
- package/dist/plugin-sdk/paths-BtVqCdw4.js +0 -3063
- package/dist/plugin-sdk/pi-model-discovery-Dh4ziodY.js +0 -131
- package/dist/plugin-sdk/pi-model-discovery-runtime-b83Xe-HT.js +0 -8
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-C1z5CDBF.js +0 -349
- package/dist/plugin-sdk/proxy-fetch-CJEmoBxi.js +0 -54
- package/dist/plugin-sdk/pw-ai-Dj3Cvlzl.js +0 -1990
- package/dist/plugin-sdk/qmd-manager-egHUAseQ.js +0 -1581
- package/dist/plugin-sdk/resolve-outbound-target-BiICvIKs.js +0 -38
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DNApufzW.js +0 -9
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-CBmtfIQ8.js +0 -13
- package/dist/plugin-sdk/send-CScblaI4.js +0 -532
- package/dist/plugin-sdk/send-CeHhnld6.js +0 -407
- package/dist/plugin-sdk/send-DP_c8JfR.js +0 -3277
- package/dist/plugin-sdk/send-Dc5fI6e8.js +0 -495
- package/dist/plugin-sdk/send-l-77_s1_.js +0 -2507
- package/dist/plugin-sdk/session-CkOKZaqa.js +0 -166
- package/dist/plugin-sdk/skill-commands-BohYCgkq.js +0 -336
- package/dist/plugin-sdk/slash-commands.runtime-DpLfVTM6.js +0 -8
- package/dist/plugin-sdk/slash-dispatch.runtime-CASMHwpm.js +0 -35
- package/dist/plugin-sdk/slash-skill-commands.runtime-D7rrJEci.js +0 -9
- package/dist/plugin-sdk/sqlite-CJE3X7Mv.js +0 -1005
- package/dist/plugin-sdk/subagent-registry-runtime-B1oo5bih.js +0 -35
- package/dist/plugin-sdk/tables-D5VgpTmm.js +0 -53
- package/dist/plugin-sdk/target-errors-C6zZ_OpA.js +0 -191
- package/dist/plugin-sdk/tokens-DUnJnpMS.js +0 -50
- package/dist/plugin-sdk/web-TfUM1nSi.js +0 -39
- package/dist/plugin-sdk/whatsapp-actions-DuWJ0j1r.js +0 -71
package/dist/build-info.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { E as redactSensitiveText, Ft as DEFAULT_ACCOUNT_ID, It as normalizeAccountId, Mt as resolveThreadSessionKeys, _ as openFileWithinRoot, c as applyWindowsSpawnProgramPolicy, ct as sameFileIdentity, d as resolveWindowsSpawnProgram, dt as isPathInside, f as resolveWindowsSpawnProgramCandidate, kt as normalizeAgentId, l as materializeWindowsSpawnProgram, nt as runCommandWithTimeout, p as SafeOpenError, u as resolveWindowsExecutablePath, ut as isNotFoundPathError, v as openWritableFileWithinRoot } from "./paths-
|
|
2
|
-
import { $i as resolveWhatsAppGroupToolPolicy, $l as normalizeResolvedSecretInputString, $t as requireApiKey, A as DmConfigSchema, Aa as formatTrimmedAllowFromEntries, Ao as resolveToolsBySender, B as TtsProviderSchema, Ba as resolveDefaultWhatsAppAccountId, Bi as resolveBlueBubblesGroupRequireMention, Ci as listTelegramDirectoryGroupsFromConfig, Co as resolveDefaultDiscordAccountId, Da as resolveSignalAccount, Di as looksLikeSlackTargetId, Ds as getFileExtension, Ea as resolveDefaultSignalAccountId, Ei as listWhatsAppDirectoryPeersFromConfig, Es as extensionForMime, F as ReplyRuntimeConfigSchemaShape, Fa as resolveOptionalConfigString, Gi as resolveGoogleChatGroupToolPolicy, H as requireOpenAllowFrom, Ha as resolveWhatsAppAuthDir, Hi as resolveDiscordGroupRequireMention, Hl as withFileLock, Hs as formatErrorMessage, I as SecretInputSchema, Ia as resolveWhatsAppConfigAllowFrom, Ii as resolveWhatsAppGroupIntroHint, Jc as getChatChannelMeta, Ji as resolveSlackGroupRequireMention, Jl as assertSecretInputResolved, Ki as resolveIMessageGroupRequireMention, L as TtsAutoSchema, La as resolveWhatsAppConfigDefaultTo, Li as resolveWhatsAppMentionStripPatterns, M as GroupPolicySchema, Ma as mapAllowFromEntries, Ml as resolveDefaultSecretProviderAlias, N as MarkdownConfigSchema, Na as resolveIMessageConfigAllowFrom, O as ToolPolicySchema, Oa as createScopedAccountConfigAccessors, Oi as normalizeSlackMessagingTarget, Oo as resolveChannelGroupRequireMention, P as MarkdownTableModeSchema, Pa as resolveIMessageConfigDefaultTo, Pl as encodeJsonPointerToken, Qi as resolveWhatsAppGroupRequireMention, Ql as isValidEnvSecretRefId, R as TtsConfigSchema, Ri as looksLikeSignalTargetId, Si as listSlackDirectoryPeersFromConfig, Ss as extractOriginalFilename, Ta as listSignalAccountIds, Ti as listWhatsAppDirectoryGroupsFromConfig, Ts as detectMime, Ui as resolveDiscordGroupToolPolicy, Ul as formatCliCommand, V as normalizeAllowFrom, Va as resolveWhatsAppAccount, Vi as resolveBlueBubblesGroupToolPolicy, Vl as acquireFileLock, Wi as resolveGoogleChatGroupRequireMention, Xi as resolveTelegramGroupRequireMention, Xl as hasConfiguredSecretInput, Yi as resolveSlackGroupToolPolicy, Zi as resolveTelegramGroupToolPolicy, Zl as isSecretRef, Zs as SsrFBlockedError, _ as TelegramConfigSchema, _a as listEnabledSlackAccounts, _o as isAllowedParsedChatSender, aa as listTelegramAccountIds, ao as looksLikeWhatsAppTargetId, ba as resolveSlackAccount, bi as listDiscordDirectoryPeersFromConfig, bs as rawDataToString, co as looksLikeHandleOrPhoneTarget, d as DiscordConfigSchema, do as normalizeWhatsAppTarget, du as createAccountListHelpers, ec as isBlockedHostname, eu as normalizeSecretInputString, f as GoogleChatConfigSchema, fo as clearAccountEntryFields, g as SlackConfigSchema, ga as inspectSlackAccount, go as formatNormalizedAllowFromEntries, h as SignalConfigSchema, ha as buildSlackThreadingToolContext, ho as formatAllowFromLowercase, io as resolveIMessageAccount, j as DmPolicySchema, ja as formatWhatsAppConfigAllowFromEntries, jl as isValidFileSecretRefId, k as BlockStreamingCoalesceSchema, ka as createScopedChannelConfigBase, lo as trimMessagingTarget, m as MSTeamsConfigSchema, ma as resolveAccountWithDefaultFallback, ml as registerContextEngine, mo as setAccountEnabledInConfigSection, na as inspectTelegramAccount, nc as isPrivateIpAddress, no as listIMessageAccountIds, oa as resolveDefaultTelegramAccountId, ol as normalizePluginHttpPath, oo as normalizeWhatsAppAllowFromEntries, p as IMessageConfigSchema, pa as listConfiguredAccountIds, po as deleteAccountFromConfigSection, qi as resolveIMessageGroupToolPolicy, ro as resolveDefaultIMessageAccountId, sa as resolveTelegramAccount, so as normalizeWhatsAppMessagingTarget, tc as isBlockedHostnameOrIp, u as WhatsAppConfigSchema, uo as isWhatsAppGroupJid, va as listSlackAccountIds, vo as isNormalizedSenderAllowed, wi as listTelegramDirectoryPeersFromConfig, wl as resolveSecretRefString, wo as resolveDiscordAccount, xa as resolveSlackReplyToMode, xi as listSlackDirectoryGroupsFromConfig, xo as listDiscordAccountIds, ya as resolveDefaultSlackAccountId, yi as listDiscordDirectoryGroupsFromConfig, yo as inspectDiscordAccount, z as TtsModeSchema, za as listWhatsAppAccountIds, zi as normalizeSignalMessagingTarget } from "./config-
|
|
3
|
-
import { $t as installRequestBodyLimitGuard, A as createReplyPrefixContext, At as createReceiptCard, B as evictOldHistoryKeys, Bt as DM_GROUP_ACCESS_REASON, C as resolveDiscordChannelAllowlist, Cn as CHANNEL_MESSAGE_ACTION_NAMES, D as resolveMentionGating, Dt as hasMarkdownToConvert, F as DEFAULT_GROUP_HISTORY_LIMIT, G as recordInboundSession, Gt as resolveDmGroupAccessWithLists, H as recordPendingHistoryEntryIfEnabled, Ht as resolveDmAllowState, It as formatInboundFromLabel, J as shouldAckReactionForWhatsApp, Jt as resolveControlCommandGate, K as removeAckReactionAfterReply, Kt as resolveEffectiveAllowFromLists, L as buildPendingHistoryContextFromMap, Lt as formatUtcTimestamp, M as logAckFailure, Mt as extractToolSend, N as logInboundDrop, Nt as issuePairingChallenge, O as resolveMentionGatingWithBypass, Ot as processLineMessage, P as logTypingFailure, Pt as resolveInboundSessionEnvelopeContext, Qt as RequestBodyLimitError, R as clearHistoryEntries, Rt as formatZonedTimestamp, S as resolveDiscordUserAllowlist, Sn as BLUEBUBBLES_GROUP_ACTIONS, T as summarizeMapping, U as buildMediaPayload, Ut as resolveDmGroupAccessDecision, V as recordPendingHistoryEntry, Vt as readStoreAllowFromForDmPolicy, W as collectDiscordAuditChannelIds, Wt as resolveDmGroupAccessWithCommandGate, Xt as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, Yt as pruneMapToMaxSize, Zt as DEFAULT_WEBHOOK_MAX_BODY_BYTES, _ as listLineAccountIds, _n as formatAllowlistMatchMeta, an as enqueueKeyedTask, b as resolveLineAccount, bn as BLUEBUBBLES_ACTIONS, bt as listDevicePairing, cn as getAcpRuntimeBackend, dn as unregisterAcpRuntimeBackend, dt as readBooleanParam, en as isRequestBodyLimitError, f as formatDocsLink, fn as ACP_ERROR_CODES, ft as optionalStringEnum, g as resolveSlackChannelAllowlist, gn as unbindThreadBindingsBySessionKey, gt as resolveAckReaction, h as resolveSlackUserAllowlist, hn as listThreadBindingsBySessionKey, in as KeyedAsyncQueue, j as createReplyPrefixOptions, jt as attachFooterText, k as createTypingCallbacks, kt as stripMarkdown, ln as registerAcpRuntimeBackend, lt as parseTelegramReplyToMessageId, mn as autoBindSpawnedDiscordSubagent, n as dispatchReplyFromConfig, nn as readRequestBodyWithLimit, on as isDangerousNameMatchingEnabled, ot as createDedupeCache, pn as AcpRuntimeError, pt as stringEnum, q as shouldAckReaction, rn as requestBodyErrorToText, sn as registerPluginHttpRoute, t as withReplyDispatcher, tn as readJsonBodyWithLimit, un as requireAcpRuntimeBackend, ut as parseTelegramThreadId, v as normalizeAccountId$1, vn as resolveAllowlistMatchByCandidates, w as mergeAllowlist, x as detectBinary, xn as BLUEBUBBLES_ACTION_NAMES, xt as rejectDevicePairing, y as resolveDefaultLineAccountId, yn as resolveAllowlistMatchSimple, yt as approveDevicePairing, z as clearHistoryEntriesIfEnabled, zt as resolveTimezone } from "./dispatch-
|
|
1
|
+
import { E as redactSensitiveText, Ft as DEFAULT_ACCOUNT_ID, It as normalizeAccountId, Mt as resolveThreadSessionKeys, _ as openFileWithinRoot, c as applyWindowsSpawnProgramPolicy, ct as sameFileIdentity, d as resolveWindowsSpawnProgram, dt as isPathInside, f as resolveWindowsSpawnProgramCandidate, kt as normalizeAgentId, l as materializeWindowsSpawnProgram, nt as runCommandWithTimeout, p as SafeOpenError, u as resolveWindowsExecutablePath, ut as isNotFoundPathError, v as openWritableFileWithinRoot } from "./paths-BMopnplU.js";
|
|
2
|
+
import { $i as resolveWhatsAppGroupToolPolicy, $l as normalizeResolvedSecretInputString, $t as requireApiKey, A as DmConfigSchema, Aa as formatTrimmedAllowFromEntries, Ao as resolveToolsBySender, B as TtsProviderSchema, Ba as resolveDefaultWhatsAppAccountId, Bi as resolveBlueBubblesGroupRequireMention, Ci as listTelegramDirectoryGroupsFromConfig, Co as resolveDefaultDiscordAccountId, Da as resolveSignalAccount, Di as looksLikeSlackTargetId, Ds as getFileExtension, Ea as resolveDefaultSignalAccountId, Ei as listWhatsAppDirectoryPeersFromConfig, Es as extensionForMime, F as ReplyRuntimeConfigSchemaShape, Fa as resolveOptionalConfigString, Gi as resolveGoogleChatGroupToolPolicy, H as requireOpenAllowFrom, Ha as resolveWhatsAppAuthDir, Hi as resolveDiscordGroupRequireMention, Hl as withFileLock, Hs as formatErrorMessage, I as SecretInputSchema, Ia as resolveWhatsAppConfigAllowFrom, Ii as resolveWhatsAppGroupIntroHint, Jc as getChatChannelMeta, Ji as resolveSlackGroupRequireMention, Jl as assertSecretInputResolved, Ki as resolveIMessageGroupRequireMention, L as TtsAutoSchema, La as resolveWhatsAppConfigDefaultTo, Li as resolveWhatsAppMentionStripPatterns, M as GroupPolicySchema, Ma as mapAllowFromEntries, Ml as resolveDefaultSecretProviderAlias, N as MarkdownConfigSchema, Na as resolveIMessageConfigAllowFrom, O as ToolPolicySchema, Oa as createScopedAccountConfigAccessors, Oi as normalizeSlackMessagingTarget, Oo as resolveChannelGroupRequireMention, P as MarkdownTableModeSchema, Pa as resolveIMessageConfigDefaultTo, Pl as encodeJsonPointerToken, Qi as resolveWhatsAppGroupRequireMention, Ql as isValidEnvSecretRefId, R as TtsConfigSchema, Ri as looksLikeSignalTargetId, Si as listSlackDirectoryPeersFromConfig, Ss as extractOriginalFilename, Ta as listSignalAccountIds, Ti as listWhatsAppDirectoryGroupsFromConfig, Ts as detectMime, Ui as resolveDiscordGroupToolPolicy, Ul as formatCliCommand, V as normalizeAllowFrom, Va as resolveWhatsAppAccount, Vi as resolveBlueBubblesGroupToolPolicy, Vl as acquireFileLock, Wi as resolveGoogleChatGroupRequireMention, Xi as resolveTelegramGroupRequireMention, Xl as hasConfiguredSecretInput, Yi as resolveSlackGroupToolPolicy, Zi as resolveTelegramGroupToolPolicy, Zl as isSecretRef, Zs as SsrFBlockedError, _ as TelegramConfigSchema, _a as listEnabledSlackAccounts, _o as isAllowedParsedChatSender, aa as listTelegramAccountIds, ao as looksLikeWhatsAppTargetId, ba as resolveSlackAccount, bi as listDiscordDirectoryPeersFromConfig, bs as rawDataToString, co as looksLikeHandleOrPhoneTarget, d as DiscordConfigSchema, do as normalizeWhatsAppTarget, du as createAccountListHelpers, ec as isBlockedHostname, eu as normalizeSecretInputString, f as GoogleChatConfigSchema, fo as clearAccountEntryFields, g as SlackConfigSchema, ga as inspectSlackAccount, go as formatNormalizedAllowFromEntries, h as SignalConfigSchema, ha as buildSlackThreadingToolContext, ho as formatAllowFromLowercase, io as resolveIMessageAccount, j as DmPolicySchema, ja as formatWhatsAppConfigAllowFromEntries, jl as isValidFileSecretRefId, k as BlockStreamingCoalesceSchema, ka as createScopedChannelConfigBase, lo as trimMessagingTarget, m as MSTeamsConfigSchema, ma as resolveAccountWithDefaultFallback, ml as registerContextEngine, mo as setAccountEnabledInConfigSection, na as inspectTelegramAccount, nc as isPrivateIpAddress, no as listIMessageAccountIds, oa as resolveDefaultTelegramAccountId, ol as normalizePluginHttpPath, oo as normalizeWhatsAppAllowFromEntries, p as IMessageConfigSchema, pa as listConfiguredAccountIds, po as deleteAccountFromConfigSection, qi as resolveIMessageGroupToolPolicy, ro as resolveDefaultIMessageAccountId, sa as resolveTelegramAccount, so as normalizeWhatsAppMessagingTarget, tc as isBlockedHostnameOrIp, u as WhatsAppConfigSchema, uo as isWhatsAppGroupJid, va as listSlackAccountIds, vo as isNormalizedSenderAllowed, wi as listTelegramDirectoryPeersFromConfig, wl as resolveSecretRefString, wo as resolveDiscordAccount, xa as resolveSlackReplyToMode, xi as listSlackDirectoryGroupsFromConfig, xo as listDiscordAccountIds, ya as resolveDefaultSlackAccountId, yi as listDiscordDirectoryGroupsFromConfig, yo as inspectDiscordAccount, z as TtsModeSchema, za as listWhatsAppAccountIds, zi as normalizeSignalMessagingTarget } from "./config-B6fwS1Kz.js";
|
|
3
|
+
import { $t as installRequestBodyLimitGuard, A as createReplyPrefixContext, At as createReceiptCard, B as evictOldHistoryKeys, Bt as DM_GROUP_ACCESS_REASON, C as resolveDiscordChannelAllowlist, Cn as CHANNEL_MESSAGE_ACTION_NAMES, D as resolveMentionGating, Dt as hasMarkdownToConvert, F as DEFAULT_GROUP_HISTORY_LIMIT, G as recordInboundSession, Gt as resolveDmGroupAccessWithLists, H as recordPendingHistoryEntryIfEnabled, Ht as resolveDmAllowState, It as formatInboundFromLabel, J as shouldAckReactionForWhatsApp, Jt as resolveControlCommandGate, K as removeAckReactionAfterReply, Kt as resolveEffectiveAllowFromLists, L as buildPendingHistoryContextFromMap, Lt as formatUtcTimestamp, M as logAckFailure, Mt as extractToolSend, N as logInboundDrop, Nt as issuePairingChallenge, O as resolveMentionGatingWithBypass, Ot as processLineMessage, P as logTypingFailure, Pt as resolveInboundSessionEnvelopeContext, Qt as RequestBodyLimitError, R as clearHistoryEntries, Rt as formatZonedTimestamp, S as resolveDiscordUserAllowlist, Sn as BLUEBUBBLES_GROUP_ACTIONS, T as summarizeMapping, U as buildMediaPayload, Ut as resolveDmGroupAccessDecision, V as recordPendingHistoryEntry, Vt as readStoreAllowFromForDmPolicy, W as collectDiscordAuditChannelIds, Wt as resolveDmGroupAccessWithCommandGate, Xt as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, Yt as pruneMapToMaxSize, Zt as DEFAULT_WEBHOOK_MAX_BODY_BYTES, _ as listLineAccountIds, _n as formatAllowlistMatchMeta, an as enqueueKeyedTask, b as resolveLineAccount, bn as BLUEBUBBLES_ACTIONS, bt as listDevicePairing, cn as getAcpRuntimeBackend, dn as unregisterAcpRuntimeBackend, dt as readBooleanParam, en as isRequestBodyLimitError, f as formatDocsLink, fn as ACP_ERROR_CODES, ft as optionalStringEnum, g as resolveSlackChannelAllowlist, gn as unbindThreadBindingsBySessionKey, gt as resolveAckReaction, h as resolveSlackUserAllowlist, hn as listThreadBindingsBySessionKey, in as KeyedAsyncQueue, j as createReplyPrefixOptions, jt as attachFooterText, k as createTypingCallbacks, kt as stripMarkdown, ln as registerAcpRuntimeBackend, lt as parseTelegramReplyToMessageId, mn as autoBindSpawnedDiscordSubagent, n as dispatchReplyFromConfig, nn as readRequestBodyWithLimit, on as isDangerousNameMatchingEnabled, ot as createDedupeCache, pn as AcpRuntimeError, pt as stringEnum, q as shouldAckReaction, rn as requestBodyErrorToText, sn as registerPluginHttpRoute, t as withReplyDispatcher, tn as readJsonBodyWithLimit, un as requireAcpRuntimeBackend, ut as parseTelegramThreadId, v as normalizeAccountId$1, vn as resolveAllowlistMatchByCandidates, w as mergeAllowlist, x as detectBinary, xn as BLUEBUBBLES_ACTION_NAMES, xt as rejectDevicePairing, y as resolveDefaultLineAccountId, yn as resolveAllowlistMatchSimple, yt as approveDevicePairing, z as clearHistoryEntriesIfEnabled, zt as resolveTimezone } from "./dispatch-DHll-mp1.js";
|
|
4
4
|
import "./paths-eFexkPEh.js";
|
|
5
5
|
import "./github-copilot-token-Cxf8QYZb.js";
|
|
6
|
-
import { C as normalizeE164, O as safeParseJson, Q as resolvePreferredOpenClawTmpDir, b as isRecord, j as sleep, m as clamp, p as CONFIG_DIR, q as registerLogTransport, s as stripAnsi, v as escapeRegExp, w as pathExists } from "./logger-
|
|
7
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
8
|
-
import { At as GROUP_POLICY_BLOCKED_LABEL, Bt as buildChannelKeyCandidates, Dt as evaluateSenderGroupAccess, Et as evaluateMatchedGroupAccessForPolicy, Ft as resolveRuntimeGroupPolicy, Ht as resolveChannelEntryMatch, It as warnMissingProviderGroupPolicyFallbackOnce, Mt as resolveAllowlistProviderRuntimeGroupPolicy, Nt as resolveDefaultGroupPolicy, Ot as evaluateSenderGroupAccessForPolicy, Pt as resolveOpenProviderRuntimeGroupPolicy, Tt as evaluateGroupRouteAccessForPolicy, Ut as resolveChannelEntryMatchWithFallback, Vt as normalizeChannelSlug, Wt as resolveNestedAllowlistDecision, at as parseDiscordTarget, dt as normalizeDiscordSlug, jt as resetMissingProviderGroupPolicyFallbackWarningsForTesting, kt as resolveSenderScopedGroupPolicy } from "./send-
|
|
6
|
+
import { C as normalizeE164, O as safeParseJson, Q as resolvePreferredOpenClawTmpDir, b as isRecord, j as sleep, m as clamp, p as CONFIG_DIR, q as registerLogTransport, s as stripAnsi, v as escapeRegExp, w as pathExists } from "./logger-4h9G_BiT.js";
|
|
7
|
+
import { t as isTruthyEnvValue } from "./env-16_axnas.js";
|
|
8
|
+
import { At as GROUP_POLICY_BLOCKED_LABEL, Bt as buildChannelKeyCandidates, Dt as evaluateSenderGroupAccess, Et as evaluateMatchedGroupAccessForPolicy, Ft as resolveRuntimeGroupPolicy, Ht as resolveChannelEntryMatch, It as warnMissingProviderGroupPolicyFallbackOnce, Mt as resolveAllowlistProviderRuntimeGroupPolicy, Nt as resolveDefaultGroupPolicy, Ot as evaluateSenderGroupAccessForPolicy, Pt as resolveOpenProviderRuntimeGroupPolicy, Tt as evaluateGroupRouteAccessForPolicy, Ut as resolveChannelEntryMatchWithFallback, Vt as normalizeChannelSlug, Wt as resolveNestedAllowlistDecision, at as parseDiscordTarget, dt as normalizeDiscordSlug, jt as resetMissingProviderGroupPolicyFallbackWarningsForTesting, kt as resolveSenderScopedGroupPolicy } from "./send-CrviNQqd.js";
|
|
9
9
|
import "./fetch-BSKpf2dM.js";
|
|
10
|
-
import "./channel-activity-
|
|
11
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
12
|
-
import "./local-roots-
|
|
13
|
-
import { p as chunkTextByBreakResolver, v as loadWebMedia } from "./ir-
|
|
10
|
+
import "./channel-activity-D1ewxjRA.js";
|
|
11
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-D5xZ4NgD.js";
|
|
12
|
+
import "./local-roots-BmJJ0DW6.js";
|
|
13
|
+
import { p as chunkTextByBreakResolver, v as loadWebMedia } from "./ir-sjcp8bOx.js";
|
|
14
14
|
import "./render-CKf6NJ1M.js";
|
|
15
|
-
import "./tables-
|
|
16
|
-
import { J as formatLocationText, Y as toLocationContext, nt as readJsonFileWithFallback, rt as writeJsonFileAtomically } from "./send-
|
|
17
|
-
import { d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-
|
|
18
|
-
import { s as parseSlackBlocksInput } from "./send-
|
|
19
|
-
import { h as resolveChannelMediaMaxBytes } from "./deliver-
|
|
20
|
-
import { g as onDiagnosticEvent, h as isDiagnosticsEnabled, m as emitDiagnosticEvent } from "./diagnostic-
|
|
21
|
-
import "./pi-model-discovery-
|
|
22
|
-
import { d as buildRandomTempFilePath, f as withTempDownloadPath } from "./audio-transcription-runner-
|
|
23
|
-
import "./image-
|
|
24
|
-
import "./api-key-rotation-
|
|
25
|
-
import "./proxy-fetch-
|
|
26
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
27
|
-
import "./commands-registry-
|
|
15
|
+
import "./tables-BDIh5Jdg.js";
|
|
16
|
+
import { J as formatLocationText, Y as toLocationContext, nt as readJsonFileWithFallback, rt as writeJsonFileAtomically } from "./send-z35HNVtD.js";
|
|
17
|
+
import { d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-B3_uM5qQ.js";
|
|
18
|
+
import { s as parseSlackBlocksInput } from "./send-DoQSSC-e.js";
|
|
19
|
+
import { h as resolveChannelMediaMaxBytes } from "./deliver-sDS_neu8.js";
|
|
20
|
+
import { g as onDiagnosticEvent, h as isDiagnosticsEnabled, m as emitDiagnosticEvent } from "./diagnostic-BShsSCRy.js";
|
|
21
|
+
import "./pi-model-discovery-DDQEBQc9.js";
|
|
22
|
+
import { d as buildRandomTempFilePath, f as withTempDownloadPath } from "./audio-transcription-runner-BUqRvf08.js";
|
|
23
|
+
import "./image-DQ8fBtXx.js";
|
|
24
|
+
import "./api-key-rotation-DPjUBVuJ.js";
|
|
25
|
+
import "./proxy-fetch-DN1cfotw.js";
|
|
26
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-BQbFuzFW.js";
|
|
27
|
+
import "./commands-registry-CIaR-qRn.js";
|
|
28
28
|
import { n as normalizeTelegramLookupTarget, r as parseTelegramTarget } from "./targets-s9KeyATC.js";
|
|
29
|
-
import { n as listSkillCommandsForAgents } from "./skill-commands-
|
|
30
|
-
import "./send-
|
|
31
|
-
import "./outbound-attachment-
|
|
32
|
-
import { c as createAllowedChatSenderMatcher, d as resolveServicePrefixedAllowTarget, f as resolveServicePrefixedChatTarget, l as parseChatAllowTargetPrefixes, m as resolveServicePrefixedTarget, o as normalizeIMessageHandle, p as resolveServicePrefixedOrChatAllowTarget, u as parseChatTargetPrefixesOrThrow } from "./send-
|
|
33
|
-
import "./sqlite-
|
|
34
|
-
import { i as isWSLSync, n as isWSL2Sync, r as isWSLEnv } from "./fetch-
|
|
35
|
-
import "./manager-
|
|
36
|
-
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-
|
|
37
|
-
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-
|
|
38
|
-
import "./outbound-
|
|
39
|
-
import "./session-
|
|
40
|
-
import { t as loginWeb } from "./login-
|
|
29
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-DuKOrryr.js";
|
|
30
|
+
import "./send-2kliIusR.js";
|
|
31
|
+
import "./outbound-attachment-B1n9VVI8.js";
|
|
32
|
+
import { c as createAllowedChatSenderMatcher, d as resolveServicePrefixedAllowTarget, f as resolveServicePrefixedChatTarget, l as parseChatAllowTargetPrefixes, m as resolveServicePrefixedTarget, o as normalizeIMessageHandle, p as resolveServicePrefixedOrChatAllowTarget, u as parseChatTargetPrefixesOrThrow } from "./send-BhMWDqI9.js";
|
|
33
|
+
import "./sqlite-BPMcn30D.js";
|
|
34
|
+
import { i as isWSLSync, n as isWSL2Sync, r as isWSLEnv } from "./fetch-BYCV2n_Y.js";
|
|
35
|
+
import "./manager-tIwC8DEO.js";
|
|
36
|
+
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-DfAPWL26.js";
|
|
37
|
+
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-DRnh0GDK.js";
|
|
38
|
+
import "./outbound-DutV0sq6.js";
|
|
39
|
+
import "./session-C5WI4lUa.js";
|
|
40
|
+
import { t as loginWeb } from "./login-A9QduCfA.js";
|
|
41
41
|
import fs, { constants, createWriteStream } from "node:fs";
|
|
42
42
|
import path from "node:path";
|
|
43
43
|
import os from "node:os";
|
|
@@ -275,7 +275,7 @@ export default function register(api: OpenClawPluginApi) {
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
if (parsedChannel && parsedChannel !== "web") {
|
|
278
|
-
if (
|
|
278
|
+
if (false) {
|
|
279
279
|
api.logger.warn(
|
|
280
280
|
`[mfa-auth] Channel ${parsedChannel} not supported, skipping auth notification`,
|
|
281
281
|
);
|
|
@@ -433,7 +433,7 @@ export default function register(api: OpenClawPluginApi) {
|
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
if (parsedChannel && parsedChannel !== "web") {
|
|
436
|
-
if (
|
|
436
|
+
if (false) {
|
|
437
437
|
api.logger.warn(
|
|
438
438
|
`[mfa-auth] Channel ${parsedChannel} not supported, skipping auth notification`,
|
|
439
439
|
);
|
|
@@ -482,11 +482,21 @@ export default function register(api: OpenClawPluginApi) {
|
|
|
482
482
|
`[mfa-auth] Parsed: channel=${parsedChannel}, accountId=${parsedAccountId}, to=${parsedTo}`,
|
|
483
483
|
);
|
|
484
484
|
|
|
485
|
-
|
|
485
|
+
const ctxAny = ctx as Record<string, unknown>;
|
|
486
|
+
const contextSessionKey =
|
|
487
|
+
typeof ctxAny.sessionKey === "string" && ctxAny.sessionKey.trim().length > 0
|
|
488
|
+
? ctxAny.sessionKey.trim()
|
|
489
|
+
: typeof ctxAny.conversationId === "string" && ctxAny.conversationId.trim().length > 0
|
|
490
|
+
? ctxAny.conversationId.trim()
|
|
491
|
+
: "";
|
|
492
|
+
|
|
493
|
+
// Prefer real runtime session key from context to avoid injecting into
|
|
494
|
+
// synthetic IDs like "gateway-client" that have no transcript file.
|
|
486
495
|
const sessionKey =
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
496
|
+
contextSessionKey ||
|
|
497
|
+
(parsedChannel === "webchat" || parsedChannel === "web"
|
|
498
|
+
? `${parsedChannel}:${parsedAccountId}:${parsedTo || userId}`
|
|
499
|
+
: `${parsedChannel}:${parsedAccountId}:${userId}`);
|
|
490
500
|
|
|
491
501
|
api.logger.info(`[mfa-auth] Using sessionKey for reauth: ${sessionKey}`);
|
|
492
502
|
|
|
@@ -551,7 +561,7 @@ export default function register(api: OpenClawPluginApi) {
|
|
|
551
561
|
}
|
|
552
562
|
}
|
|
553
563
|
|
|
554
|
-
if (!parsedChannel
|
|
564
|
+
if (!parsedChannel) {
|
|
555
565
|
api.logger.warn(`[mfa-auth] Channel ${parsedChannel} not supported`);
|
|
556
566
|
return { text: "❌ 当前渠道不支持认证。" };
|
|
557
567
|
}
|
|
@@ -29,8 +29,8 @@ class NotificationService {
|
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
if (channel === "webchat" || channel === "web") {
|
|
33
|
-
console.log(`[mfa-auth]
|
|
32
|
+
if (channel === "webchat" || channel === "web" || channel === "main" || channel === "desktop") {
|
|
33
|
+
console.log(`[mfa-auth] ${channel} channel: sending notification via WebSocket`);
|
|
34
34
|
await this.sendToWebChat(session, message);
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
@@ -159,7 +159,11 @@ class NotificationService {
|
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
161
|
const errMsg = String(response?.error?.message ?? "").toLowerCase();
|
|
162
|
-
const shouldTryNext =
|
|
162
|
+
const shouldTryNext =
|
|
163
|
+
errMsg.includes("session not found") ||
|
|
164
|
+
errMsg.includes("transcript file not found") ||
|
|
165
|
+
errMsg.includes("failed to write transcript") ||
|
|
166
|
+
errMsg.includes("unavailable");
|
|
163
167
|
if (shouldTryNext && injectIndex + 1 < candidateSessionKeys.length) {
|
|
164
168
|
injectIndex += 1;
|
|
165
169
|
sendInject(candidateSessionKeys[injectIndex]);
|