@openclaw/matrix 2026.5.12 → 2026.5.14-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{account-config-D2W-V1eQ.js → account-config-LVxGiX7e.js} +2 -1
- package/dist/{accounts-Bm90Rzvp.js → accounts--0L_EuMK.js} +1 -1
- package/dist/api.js +4 -4
- package/dist/{approval-handler.runtime-LpWmoFyw.js → approval-handler.runtime-DcgDdi8L.js} +4 -4
- package/dist/{approval-reaction-auth-DbcA1gGd.js → approval-reaction-auth-BY5VFY-q.js} +1 -1
- package/dist/{channel-B-R2dceO.js → channel-eRrwLDE9.js} +15 -15
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-DdtNY_To.js → channel.runtime-CsQesLGI.js} +6 -6
- package/dist/{cli-Cq80go7q.js → cli-DAMPUa3J.js} +11 -11
- package/dist/{cli-metadata-OtekEqAD.js → cli-metadata-Bt5SrlLo.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-CyxIx4Fv.js → client-DBDvsx0D.js} +3 -3
- package/dist/{client-DzjShjVN.js → client-DrmLRQnw.js} +2 -2
- package/dist/{client-bootstrap-Am_ZEH3x.js → client-bootstrap-Ba68NvZB.js} +1 -1
- package/dist/{config-schema-B975BYl0.js → config-schema-DOKrNEs_.js} +34 -2
- package/dist/{config-update-wZX-HLMn.js → config-update-BBkpLB9o.js} +1 -1
- package/dist/{config-BR4uLzNs.js → config-xD5Y8nFT.js} +2 -2
- package/dist/contract-api.js +4 -4
- package/dist/{create-client-DpoW106T.js → create-client-ChlpNpAA.js} +2 -2
- package/dist/{crypto-runtime-DS6R8y_n.js → crypto-runtime-BevaUxax.js} +1 -1
- package/dist/{deps-CU5W9Ixu.js → deps-DR0MIYrW.js} +10 -14
- package/dist/{directory-live-Bn66SRSD.js → directory-live-Btsr0yok.js} +2 -2
- package/dist/{doctor-KjAvjAJu.js → doctor-qL-bgDwE.js} +1 -1
- package/dist/{draft-stream-D_FlbmCh.js → draft-stream-B-hyLmMw.js} +1 -1
- package/dist/{exec-approvals-Crnh543m.js → exec-approvals-to3d_jMv.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{legacy-crypto-inspector-pB252vPO.js → legacy-crypto-inspector-C4VpBdDV.js} +1 -1
- package/dist/{matrix-migration.runtime-DfjNMeoX.js → matrix-migration.runtime-CDasos7a.js} +1 -1
- package/dist/{media-text-psyGloYl.js → media-text-BLL8-Dr3.js} +1 -1
- package/dist/{messages-DQ8xXWiP.js → messages-BJi_jdEA.js} +3 -3
- package/dist/{monitor-C8cEvvTe.js → monitor-COvHRaUQ.js} +49 -25
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/probe.runtime-sh9piX22.js +3 -0
- package/dist/{profile-update-DleMeUHj.js → profile-update-DK5rfmA-.js} +2 -2
- package/dist/{reaction-events-CiARZfjk.js → reaction-events-Cfvkp-A-.js} +2 -2
- package/dist/{resolve-targets-BbzYe9Qi.js → resolve-targets-ZSM4KKln.js} +1 -1
- package/dist/{resolver.runtime-BWFMWEsg.js → resolver.runtime-m_D8JSm3.js} +1 -1
- package/dist/runtime-api.js +1 -1
- package/dist/runtime-heavy-api.js +1 -1
- package/dist/{sdk-DXWmb94u.js → sdk-BLBGvKEe.js} +1 -1
- package/dist/{send-Df-pDuG6.js → send-D651usmb.js} +2 -2
- package/dist/{setup-bootstrap-DXWxzR7A.js → setup-bootstrap-DT2Gj9hX.js} +3 -3
- package/dist/{setup-core-B5X7HxAP.js → setup-core-C-uKN68n.js} +5 -5
- package/dist/{setup-dm-policy-Ca3jA4YW.js → setup-dm-policy-0_kFUfW4.js} +1 -1
- package/dist/setup-plugin-api.js +4 -4
- package/dist/{setup-surface-DuRQrrpU.js → setup-surface-KzA9__US.js} +8 -8
- package/dist/{shared-CkbpEI5j.js → shared-DarXfhzC.js} +2 -2
- package/dist/test-api.js +2 -2
- package/dist/{thread-bindings--P1UYe7t.js → thread-bindings-DHUszTA0.js} +1 -1
- package/dist/{tool-actions.runtime-AFGhzK--.js → tool-actions.runtime-Bn8bvkQN.js} +7 -7
- package/dist/{verification-BbGdzYQl.js → verification-BJT2k9TI.js} +1 -1
- package/openclaw.plugin.json +96 -0
- package/package.json +4 -4
- package/dist/probe.runtime-NE73hi9o.js +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as resolveMatrixDefaultOrOnlyAccountId, o as resolveMatrixAccountStringValues, r as resolveConfiguredMatrixAccountIds } from "./account-selection-BWwIruri.js";
|
|
2
|
-
import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig, t as findMatrixAccountConfig } from "./account-config-
|
|
2
|
+
import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig, t as findMatrixAccountConfig } from "./account-config-LVxGiX7e.js";
|
|
3
3
|
import { i as resolveScopedMatrixEnvConfig, n as resolveGlobalMatrixEnvConfig } from "./env-auth-BJqGI8M6.js";
|
|
4
4
|
import { i as loadMatrixCredentials, n as credentialsMatchConfig } from "./credentials-read-cmHgousK.js";
|
|
5
5
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
package/dist/api.js
CHANGED
|
@@ -2,10 +2,10 @@ import { d as setMatrixThreadBindingIdleTimeoutBySessionKey, n as getMatrixThrea
|
|
|
2
2
|
import { a as resolveMatrixDefaultOrOnlyAccountId, i as resolveMatrixChannelConfig, n as requiresExplicitMatrixDefaultAccount, r as resolveConfiguredMatrixAccountIds, t as findMatrixAccountEntry } from "./account-selection-BWwIruri.js";
|
|
3
3
|
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./env-vars-C7uQCTKn.js";
|
|
4
4
|
import { a as resolveMatrixCredentialsPath, c as resolveMatrixLegacyFlatStoreRoot, i as resolveMatrixCredentialsFilename, l as sanitizeMatrixPathSegment, n as resolveMatrixAccountStorageRoot, o as resolveMatrixHomeserverKey, r as resolveMatrixCredentialsDir, s as resolveMatrixLegacyFlatStoragePaths, t as hashMatrixAccessToken } from "./storage-paths-BJLdnCjV.js";
|
|
5
|
-
import { t as matrixPlugin } from "./channel-
|
|
6
|
-
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
7
|
-
import { n as matrixOnboardingAdapter } from "./setup-surface-
|
|
8
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings
|
|
5
|
+
import { t as matrixPlugin } from "./channel-eRrwLDE9.js";
|
|
6
|
+
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-C-uKN68n.js";
|
|
7
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-KzA9__US.js";
|
|
8
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-DHUszTA0.js";
|
|
9
9
|
//#region extensions/matrix/api.ts
|
|
10
10
|
const matrixSessionBindingAdapterChannels = ["matrix"];
|
|
11
11
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as resolveMatrixTargetIdentity } from "./target-ids-80nQ2gql.js";
|
|
2
|
-
import { i as resolveMatrixAccount } from "./accounts
|
|
3
|
-
import { c as shouldHandleMatrixApprovalRequest, r as isMatrixAnyApprovalClientEnabled } from "./exec-approvals-
|
|
4
|
-
import { a as sendMessageMatrix, i as reactMatrixMessage, s as sendSingleTextMessageMatrix } from "./send-
|
|
2
|
+
import { i as resolveMatrixAccount } from "./accounts--0L_EuMK.js";
|
|
3
|
+
import { c as shouldHandleMatrixApprovalRequest, r as isMatrixAnyApprovalClientEnabled } from "./exec-approvals-to3d_jMv.js";
|
|
4
|
+
import { a as sendMessageMatrix, i as reactMatrixMessage, s as sendSingleTextMessageMatrix } from "./send-D651usmb.js";
|
|
5
5
|
import { a as repairMatrixDirectRooms } from "./direct-management--Y8ypgLv.js";
|
|
6
6
|
import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-o2_tuH8D.js";
|
|
7
|
-
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-
|
|
7
|
+
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-BJi_jdEA.js";
|
|
8
8
|
import { listMessageReceiptPlatformIds, resolveMessageReceiptPrimaryId } from "openclaw/plugin-sdk/channel-message";
|
|
9
9
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
10
10
|
import { setTimeout } from "node:timers/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveMatrixAccount } from "./accounts
|
|
1
|
+
import { i as resolveMatrixAccount } from "./accounts--0L_EuMK.js";
|
|
2
2
|
import { t as normalizeMatrixApproverId } from "./approval-ids-DoC2z7tR.js";
|
|
3
3
|
import { resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
4
4
|
//#region extensions/matrix/src/approval-reaction-auth.ts
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { a as resolveMatrixTargetIdentity, i as resolveMatrixDirectUserId, n as normalizeMatrixMessagingTarget, r as normalizeMatrixResolvableTarget } from "./target-ids-80nQ2gql.js";
|
|
2
2
|
import { d as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKey } from "./thread-bindings-shared-DK-d-oYX.js";
|
|
3
3
|
import { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-BWwIruri.js";
|
|
4
|
-
import { a as resolveMatrixAccountConfig } from "./account-config-
|
|
5
|
-
import { i as resolveMatrixAccount, r as resolveDefaultMatrixAccountId, t as listMatrixAccountIds } from "./accounts
|
|
4
|
+
import { a as resolveMatrixAccountConfig } from "./account-config-LVxGiX7e.js";
|
|
5
|
+
import { i as resolveMatrixAccount, r as resolveDefaultMatrixAccountId, t as listMatrixAccountIds } from "./accounts--0L_EuMK.js";
|
|
6
6
|
import { n as normalizeMatrixUserId } from "./allowlist-sTzpCn5d.js";
|
|
7
7
|
import { t as normalizeMatrixApproverId } from "./approval-ids-DoC2z7tR.js";
|
|
8
|
-
import { a as isMatrixExecApprovalAuthorizedSender, c as shouldHandleMatrixApprovalRequest, d as matrixApprovalAuth, i as isMatrixApprovalClientEnabled, l as shouldSuppressLocalMatrixExecApprovalPrompt, n as getMatrixExecApprovalApprovers, o as isMatrixExecApprovalClientEnabled, r as isMatrixAnyApprovalClientEnabled, s as resolveMatrixExecApprovalTarget, t as getMatrixApprovalApprovers, u as getMatrixApprovalAuthApprovers } from "./exec-approvals-
|
|
8
|
+
import { a as isMatrixExecApprovalAuthorizedSender, c as shouldHandleMatrixApprovalRequest, d as matrixApprovalAuth, i as isMatrixApprovalClientEnabled, l as shouldSuppressLocalMatrixExecApprovalPrompt, n as getMatrixExecApprovalApprovers, o as isMatrixExecApprovalClientEnabled, r as isMatrixAnyApprovalClientEnabled, s as resolveMatrixExecApprovalTarget, t as getMatrixApprovalApprovers, u as getMatrixApprovalAuthApprovers } from "./exec-approvals-to3d_jMv.js";
|
|
9
9
|
import { t as formatMatrixErrorMessage } from "./errors-CTcpEDq-.js";
|
|
10
|
-
import { n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-
|
|
10
|
+
import { n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-DOKrNEs_.js";
|
|
11
11
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-D4-64QuJ.js";
|
|
12
12
|
import { n as resolveMatrixRoomConfig, t as resolveMatrixStoredSessionMeta } from "./session-store-metadata-DQXjgNLt.js";
|
|
13
13
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DcrJWCQI.js";
|
|
14
|
-
import { a as namedAccountPromotionKeys, o as resolveSingleAccountPromotionTarget, s as singleAccountKeysToMove } from "./setup-dm-policy-
|
|
15
|
-
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
16
|
-
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-
|
|
14
|
+
import { a as namedAccountPromotionKeys, o as resolveSingleAccountPromotionTarget, s as singleAccountKeysToMove } from "./setup-dm-policy-0_kFUfW4.js";
|
|
15
|
+
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-C-uKN68n.js";
|
|
16
|
+
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-CDasos7a.js";
|
|
17
17
|
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-DaCHTp8C.js";
|
|
18
18
|
import { n as resolveMatrixInboundConversation } from "./thread-binding-api-Cq_E-E1K.js";
|
|
19
19
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
@@ -129,7 +129,7 @@ const matrixMessageActions = {
|
|
|
129
129
|
return extractToolSend(args, "sendMessage");
|
|
130
130
|
},
|
|
131
131
|
handleAction: async (ctx) => {
|
|
132
|
-
const { handleMatrixAction } = await import("./tool-actions.runtime-
|
|
132
|
+
const { handleMatrixAction } = await import("./tool-actions.runtime-Bn8bvkQN.js");
|
|
133
133
|
const { action, params, cfg, accountId, mediaLocalRoots } = ctx;
|
|
134
134
|
const dispatch = async (actionParams) => await handleMatrixAction({
|
|
135
135
|
...actionParams,
|
|
@@ -405,7 +405,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
|
|
|
405
405
|
accountId,
|
|
406
406
|
request
|
|
407
407
|
}),
|
|
408
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
408
|
+
load: async () => (await import("./approval-handler.runtime-DcgDdi8L.js")).matrixApprovalNativeRuntime
|
|
409
409
|
})
|
|
410
410
|
});
|
|
411
411
|
const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
|
|
@@ -543,7 +543,7 @@ function resolveMatrixGroupToolPolicy(params) {
|
|
|
543
543
|
}
|
|
544
544
|
//#endregion
|
|
545
545
|
//#region extensions/matrix/src/resolver.ts
|
|
546
|
-
const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-
|
|
546
|
+
const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-m_D8JSm3.js"), "matrixResolverRuntime");
|
|
547
547
|
const matrixResolverAdapter = { resolveTargets: async ({ cfg, accountId, inputs, kind, runtime }) => (await loadMatrixChannelRuntime$1()).resolveMatrixTargets({
|
|
548
548
|
cfg,
|
|
549
549
|
accountId,
|
|
@@ -688,8 +688,8 @@ async function runMatrixStartupMaintenance(params) {
|
|
|
688
688
|
//#endregion
|
|
689
689
|
//#region extensions/matrix/src/channel.ts
|
|
690
690
|
let matrixStartupLock = Promise.resolve();
|
|
691
|
-
const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-
|
|
692
|
-
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
691
|
+
const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-KzA9__US.js").then((n) => n.t), "matrixSetupWizard");
|
|
692
|
+
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CsQesLGI.js"), "matrixChannelRuntime");
|
|
693
693
|
const meta = {
|
|
694
694
|
id: "matrix",
|
|
695
695
|
label: "Matrix",
|
|
@@ -713,12 +713,12 @@ const matrixDoctor = {
|
|
|
713
713
|
warnOnEmptyGroupSenderAllowlist: true,
|
|
714
714
|
legacyConfigRules,
|
|
715
715
|
normalizeCompatibilityConfig,
|
|
716
|
-
runConfigSequence: async ({ cfg, env, shouldRepair }) => await (await import("./doctor-
|
|
716
|
+
runConfigSequence: async ({ cfg, env, shouldRepair }) => await (await import("./doctor-qL-bgDwE.js")).runMatrixDoctorSequence({
|
|
717
717
|
cfg,
|
|
718
718
|
env,
|
|
719
719
|
shouldRepair
|
|
720
720
|
}),
|
|
721
|
-
cleanStaleConfig: async ({ cfg }) => await (await import("./doctor-
|
|
721
|
+
cleanStaleConfig: async ({ cfg }) => await (await import("./doctor-qL-bgDwE.js")).cleanStaleMatrixPluginConfig(cfg)
|
|
722
722
|
};
|
|
723
723
|
const listMatrixDirectoryPeersFromConfig = createResolvedDirectoryEntriesLister({
|
|
724
724
|
kind: "user",
|
|
@@ -1055,7 +1055,7 @@ const matrixPlugin = createChatChannelPlugin({
|
|
|
1055
1055
|
await previousLock;
|
|
1056
1056
|
let monitorMatrixProvider;
|
|
1057
1057
|
try {
|
|
1058
|
-
monitorMatrixProvider = (await import("./monitor-
|
|
1058
|
+
monitorMatrixProvider = (await import("./monitor-COvHRaUQ.js")).monitorMatrixProvider;
|
|
1059
1059
|
} finally {
|
|
1060
1060
|
releaseLock();
|
|
1061
1061
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as matrixPlugin } from "./channel-
|
|
1
|
+
import { t as matrixPlugin } from "./channel-eRrwLDE9.js";
|
|
2
2
|
export { matrixPlugin };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as sendMessageMatrix, c as sendTypingMatrix, o as sendPollMatrix } from "./send-
|
|
1
|
+
import { a as sendMessageMatrix, c as sendTypingMatrix, o as sendPollMatrix } from "./send-D651usmb.js";
|
|
2
2
|
import { t as isBunRuntime } from "./runtime-C6X4h_SJ.js";
|
|
3
|
-
import { n as resolveMatrixAuth } from "./config-
|
|
4
|
-
import "./client-
|
|
5
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
3
|
+
import { n as resolveMatrixAuth } from "./config-xD5Y8nFT.js";
|
|
4
|
+
import "./client-DBDvsx0D.js";
|
|
5
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-Btsr0yok.js";
|
|
6
6
|
import { f as resolveOutboundSendDep, n as chunkTextForOutbound } from "./runtime-api-DTKcXOhp.js";
|
|
7
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
7
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-ZSM4KKln.js";
|
|
8
8
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
9
|
import { createReplyToFanout } from "openclaw/plugin-sdk/outbound-runtime";
|
|
10
10
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
@@ -13,7 +13,7 @@ import { resolvePayloadMediaUrls } from "openclaw/plugin-sdk/reply-payload";
|
|
|
13
13
|
//#region extensions/matrix/src/matrix/probe.ts
|
|
14
14
|
let matrixProbeRuntimeDepsPromise;
|
|
15
15
|
async function loadMatrixProbeRuntimeDeps() {
|
|
16
|
-
matrixProbeRuntimeDepsPromise ??= import("./probe.runtime-
|
|
16
|
+
matrixProbeRuntimeDepsPromise ??= import("./probe.runtime-sh9piX22.js").then((runtimeModule) => ({ createMatrixClient: runtimeModule.createMatrixClient }));
|
|
17
17
|
return await matrixProbeRuntimeDepsPromise;
|
|
18
18
|
}
|
|
19
19
|
async function probeMatrix(params) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { a as resolveMatrixAccountConfig } from "./account-config-
|
|
1
|
+
import { a as resolveMatrixAccountConfig } from "./account-config-LVxGiX7e.js";
|
|
2
2
|
import { t as getMatrixRuntime } from "./runtime-Dog86njy.js";
|
|
3
|
-
import { i as resolveMatrixAccount } from "./accounts
|
|
3
|
+
import { i as resolveMatrixAccount } from "./accounts--0L_EuMK.js";
|
|
4
4
|
import { t as formatMatrixErrorMessage } from "./errors-CTcpEDq-.js";
|
|
5
|
-
import { n as resolveMatrixConfigPath, r as updateMatrixAccountConfig } from "./config-update-
|
|
6
|
-
import { n as matrixSetupAdapter } from "./setup-core-
|
|
5
|
+
import { n as resolveMatrixConfigPath, r as updateMatrixAccountConfig } from "./config-update-BBkpLB9o.js";
|
|
6
|
+
import { n as matrixSetupAdapter } from "./setup-core-C-uKN68n.js";
|
|
7
7
|
import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Cabu_WQC.js";
|
|
8
8
|
import { i as setMatrixSdkLogMode, r as setMatrixSdkConsoleLogging } from "./logging-DZHSPP5N.js";
|
|
9
|
-
import { n as withResolvedActionClient } from "./client-
|
|
10
|
-
import { r as resolveMatrixAuthContext } from "./config-
|
|
11
|
-
import "./client-
|
|
9
|
+
import { n as withResolvedActionClient } from "./client-DrmLRQnw.js";
|
|
10
|
+
import { r as resolveMatrixAuthContext } from "./config-xD5Y8nFT.js";
|
|
11
|
+
import "./client-DBDvsx0D.js";
|
|
12
12
|
import { i as formatZonedTimestamp } from "./runtime-api-DTKcXOhp.js";
|
|
13
13
|
import { isOpenClawManagedMatrixDevice, summarizeMatrixDeviceHealth } from "./device-health-UVYpbA_W.js";
|
|
14
|
-
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-
|
|
15
|
-
import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-
|
|
14
|
+
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-DK5rfmA-.js";
|
|
15
|
+
import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-BJT2k9TI.js";
|
|
16
16
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
17
17
|
//#region extensions/matrix/src/matrix/actions/devices.ts
|
|
18
18
|
async function listMatrixOwnDevices(opts = {}) {
|
|
@@ -39,7 +39,7 @@ let matrixCliExitScheduled = false;
|
|
|
39
39
|
let matrixActionClientModulePromise;
|
|
40
40
|
let matrixDirectManagementModulePromise;
|
|
41
41
|
function loadMatrixActionClientModule() {
|
|
42
|
-
matrixActionClientModulePromise ??= import("./client-
|
|
42
|
+
matrixActionClientModulePromise ??= import("./client-DrmLRQnw.js").then((n) => n.t);
|
|
43
43
|
return matrixActionClientModulePromise;
|
|
44
44
|
}
|
|
45
45
|
function loadMatrixDirectManagementModule() {
|
|
@@ -209,7 +209,7 @@ async function addMatrixAccount(params) {
|
|
|
209
209
|
backupVersion: null
|
|
210
210
|
};
|
|
211
211
|
if (accountConfig.encryption === true) {
|
|
212
|
-
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-
|
|
212
|
+
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-DT2Gj9hX.js");
|
|
213
213
|
verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
|
|
214
214
|
previousCfg: cfg,
|
|
215
215
|
cfg: updated,
|
|
@@ -2,7 +2,7 @@ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
|
2
2
|
//#region extensions/matrix/src/cli-metadata.ts
|
|
3
3
|
function registerMatrixCliMetadata(api) {
|
|
4
4
|
api.registerCli(async ({ program }) => {
|
|
5
|
-
const { registerMatrixCli } = await import("./cli-
|
|
5
|
+
const { registerMatrixCli } = await import("./cli-DAMPUa3J.js");
|
|
6
6
|
registerMatrixCli({ program });
|
|
7
7
|
}, { descriptors: [{
|
|
8
8
|
name: "matrix",
|
package/dist/cli-metadata.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as registerMatrixCliMetadata, t as cli_metadata_default } from "./cli-metadata-
|
|
1
|
+
import { n as registerMatrixCliMetadata, t as cli_metadata_default } from "./cli-metadata-Bt5SrlLo.js";
|
|
2
2
|
export { cli_metadata_default as default, registerMatrixCliMetadata };
|
|
@@ -3,9 +3,9 @@ import { t as getMatrixScopedEnvVarNames } from "./env-vars-C7uQCTKn.js";
|
|
|
3
3
|
import { i as resolveScopedMatrixEnvConfig, r as resolveMatrixEnvAuthReadiness, t as hasReadyMatrixEnvAuth } from "./env-auth-BJqGI8M6.js";
|
|
4
4
|
import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-DiK9j7jz.js";
|
|
5
5
|
import { t as isBunRuntime } from "./runtime-C6X4h_SJ.js";
|
|
6
|
-
import { i as resolveMatrixConfigForAccount, n as resolveMatrixAuth, r as resolveMatrixAuthContext, t as backfillMatrixAuthDeviceIdAfterStartup } from "./config-
|
|
7
|
-
import { t as createMatrixClient } from "./create-client-
|
|
8
|
-
import { i as resolveSharedMatrixClient, n as releaseSharedClientInstance, o as stopSharedClientForAccount, r as removeSharedClientInstance, s as stopSharedClientInstance, t as acquireSharedMatrixClient } from "./shared-
|
|
6
|
+
import { i as resolveMatrixConfigForAccount, n as resolveMatrixAuth, r as resolveMatrixAuthContext, t as backfillMatrixAuthDeviceIdAfterStartup } from "./config-xD5Y8nFT.js";
|
|
7
|
+
import { t as createMatrixClient } from "./create-client-ChlpNpAA.js";
|
|
8
|
+
import { i as resolveSharedMatrixClient, n as releaseSharedClientInstance, o as stopSharedClientForAccount, r as removeSharedClientInstance, s as stopSharedClientInstance, t as acquireSharedMatrixClient } from "./shared-DarXfhzC.js";
|
|
9
9
|
//#region extensions/matrix/src/matrix/client.ts
|
|
10
10
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
11
11
|
acquireSharedMatrixClient: () => acquireSharedMatrixClient,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
|
-
import { u as resolveMatrixRoomId } from "./send-
|
|
3
|
-
import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-
|
|
2
|
+
import { u as resolveMatrixRoomId } from "./send-D651usmb.js";
|
|
3
|
+
import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-Ba68NvZB.js";
|
|
4
4
|
//#region extensions/matrix/src/matrix/actions/client.ts
|
|
5
5
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
withResolvedActionClient: () => withResolvedActionClient,
|
|
@@ -10,7 +10,7 @@ var client_bootstrap_exports = /* @__PURE__ */ __exportAll({
|
|
|
10
10
|
});
|
|
11
11
|
let matrixSharedClientRuntimeDepsPromise;
|
|
12
12
|
async function loadMatrixSharedClientRuntimeDeps() {
|
|
13
|
-
matrixSharedClientRuntimeDepsPromise ??= Promise.all([import("./client-
|
|
13
|
+
matrixSharedClientRuntimeDepsPromise ??= Promise.all([import("./client-DBDvsx0D.js").then((n) => n.t), import("./shared-DarXfhzC.js").then((n) => n.a)]).then(([clientModule, sharedModule]) => ({
|
|
14
14
|
acquireSharedMatrixClient: clientModule.acquireSharedMatrixClient,
|
|
15
15
|
resolveMatrixAuthContext: clientModule.resolveMatrixAuthContext,
|
|
16
16
|
releaseSharedClientInstance: sharedModule.releaseSharedClientInstance
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as resolveMatrixAccountConfig } from "./account-config-
|
|
2
|
-
import { i as resolveMatrixAccount, r as resolveDefaultMatrixAccountId, t as listMatrixAccountIds } from "./accounts
|
|
1
|
+
import { a as resolveMatrixAccountConfig } from "./account-config-LVxGiX7e.js";
|
|
2
|
+
import { i as resolveMatrixAccount, r as resolveDefaultMatrixAccountId, t as listMatrixAccountIds } from "./accounts--0L_EuMK.js";
|
|
3
3
|
import { t as normalizeMatrixAllowList } from "./allowlist-sTzpCn5d.js";
|
|
4
4
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1 } from "openclaw/plugin-sdk/account-id";
|
|
5
5
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
@@ -36,6 +36,30 @@ const matrixConfigAdapter = createScopedChannelConfigAdapter({
|
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region extensions/matrix/src/config-ui-hints.ts
|
|
38
38
|
const matrixChannelConfigUiHints = {
|
|
39
|
+
allowBots: {
|
|
40
|
+
label: "Matrix Allow Bot Messages",
|
|
41
|
+
help: "Allow messages from other configured Matrix bot accounts to trigger replies (default: false). Set \"mentions\" to require a visible room mention."
|
|
42
|
+
},
|
|
43
|
+
botLoopProtection: {
|
|
44
|
+
label: "Matrix Bot Loop Protection",
|
|
45
|
+
help: "Sliding-window guard for accepted Matrix configured-bot loops. Default is enabled whenever allowBots lets configured bot messages reach dispatch."
|
|
46
|
+
},
|
|
47
|
+
"botLoopProtection.enabled": {
|
|
48
|
+
label: "Matrix Bot Loop Protection Enabled",
|
|
49
|
+
help: "Enable the bot-pair loop guard. Defaults to true when allowBots is true or \"mentions\", and false when configured bot messages are ignored."
|
|
50
|
+
},
|
|
51
|
+
"botLoopProtection.maxEventsPerWindow": {
|
|
52
|
+
label: "Matrix Bot Loop Events per Window",
|
|
53
|
+
help: "Maximum accepted bot-pair messages within the sliding window before suppression starts. Default: 20."
|
|
54
|
+
},
|
|
55
|
+
"botLoopProtection.windowSeconds": {
|
|
56
|
+
label: "Matrix Bot Loop Window Seconds",
|
|
57
|
+
help: "Sliding window length for counting bot-pair messages. Default: 60."
|
|
58
|
+
},
|
|
59
|
+
"botLoopProtection.cooldownSeconds": {
|
|
60
|
+
label: "Matrix Bot Loop Cooldown Seconds",
|
|
61
|
+
help: "How long to suppress the bot pair after it exceeds the budget. Default: 60."
|
|
62
|
+
},
|
|
39
63
|
dangerouslyAllowNameMatching: {
|
|
40
64
|
label: "Matrix Display Name Matching",
|
|
41
65
|
help: "Compatibility opt-in for resolving Matrix display names and joined room names in allowlists. Prefer full @user:server IDs and room IDs or aliases because names are mutable."
|
|
@@ -92,11 +116,18 @@ const matrixExecApprovalsSchema = z.object({
|
|
|
92
116
|
"both"
|
|
93
117
|
]).optional()
|
|
94
118
|
}).optional();
|
|
119
|
+
const botLoopProtectionSchema = z.object({
|
|
120
|
+
enabled: z.boolean().optional(),
|
|
121
|
+
maxEventsPerWindow: z.number().int().positive().optional(),
|
|
122
|
+
windowSeconds: z.number().int().positive().optional(),
|
|
123
|
+
cooldownSeconds: z.number().int().positive().optional()
|
|
124
|
+
}).strict().optional();
|
|
95
125
|
const matrixRoomSchema = z.object({
|
|
96
126
|
account: z.string().optional(),
|
|
97
127
|
enabled: z.boolean().optional(),
|
|
98
128
|
requireMention: z.boolean().optional(),
|
|
99
129
|
allowBots: z.union([z.boolean(), z.literal("mentions")]).optional(),
|
|
130
|
+
botLoopProtection: botLoopProtectionSchema,
|
|
100
131
|
tools: ToolPolicySchema,
|
|
101
132
|
autoReply: z.boolean().optional(),
|
|
102
133
|
users: AllowFromListSchema,
|
|
@@ -139,6 +170,7 @@ const MatrixChannelConfigSchema = buildChannelConfigSchema(z.object({
|
|
|
139
170
|
allowlistOnly: z.boolean().optional(),
|
|
140
171
|
dangerouslyAllowNameMatching: z.boolean().optional(),
|
|
141
172
|
allowBots: z.union([z.boolean(), z.literal("mentions")]).optional(),
|
|
173
|
+
botLoopProtection: botLoopProtectionSchema,
|
|
142
174
|
groupPolicy: GroupPolicySchema.optional(),
|
|
143
175
|
contextVisibility: ContextVisibilityModeSchema.optional(),
|
|
144
176
|
blockStreaming: z.boolean().optional(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
|
-
import { t as findMatrixAccountConfig } from "./account-config-
|
|
2
|
+
import { t as findMatrixAccountConfig } from "./account-config-LVxGiX7e.js";
|
|
3
3
|
import { n as resolveMatrixConfigPath$1, r as shouldStoreMatrixAccountAtTopLevel, t as resolveMatrixConfigFieldPath } from "./config-paths-nsVaysCu.js";
|
|
4
4
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
5
5
|
import { normalizeSecretInputString } from "openclaw/plugin-sdk/setup";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as resolveMatrixDefaultOrOnlyAccountId, n as requiresExplicitMatrixDefaultAccount, o as resolveMatrixAccountStringValues } from "./account-selection-BWwIruri.js";
|
|
2
2
|
import { t as getMatrixScopedEnvVarNames } from "./env-vars-C7uQCTKn.js";
|
|
3
|
-
import { o as resolveMatrixBaseConfig, r as listNormalizedMatrixAccountIds, t as findMatrixAccountConfig } from "./account-config-
|
|
3
|
+
import { o as resolveMatrixBaseConfig, r as listNormalizedMatrixAccountIds, t as findMatrixAccountConfig } from "./account-config-LVxGiX7e.js";
|
|
4
4
|
import { i as resolveScopedMatrixEnvConfig, n as resolveGlobalMatrixEnvConfig } from "./env-auth-BJqGI8M6.js";
|
|
5
5
|
import { t as resolveMatrixConfigFieldPath } from "./config-paths-nsVaysCu.js";
|
|
6
6
|
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-DiK9j7jz.js";
|
|
@@ -19,7 +19,7 @@ let matrixSecretInputDepsPromise;
|
|
|
19
19
|
let matrixAuthClientDepsForTest;
|
|
20
20
|
const MATRIX_AUTH_REQUEST_RETRY_RE = /\b(fetch failed|econnreset|econnrefused|enotfound|etimedout|ehostunreach|enetunreach|eai_again|und_err_|socket hang up|network|headers timeout|body timeout|connect timeout)\b/i;
|
|
21
21
|
async function loadMatrixAuthClientDeps() {
|
|
22
|
-
matrixAuthClientDepsPromise ??= Promise.all([import("./sdk-
|
|
22
|
+
matrixAuthClientDepsPromise ??= Promise.all([import("./sdk-BLBGvKEe.js").then((n) => n.n), import("./logging-DZHSPP5N.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
|
|
23
23
|
MatrixClient: sdkModule.MatrixClient,
|
|
24
24
|
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
25
25
|
}));
|
package/dist/contract-api.js
CHANGED
|
@@ -2,8 +2,8 @@ import { s as resetMatrixThreadBindingsForTests } from "./thread-bindings-shared
|
|
|
2
2
|
import { r as setMatrixRuntime } from "./runtime-Dog86njy.js";
|
|
3
3
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-D4-64QuJ.js";
|
|
4
4
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DcrJWCQI.js";
|
|
5
|
-
import { a as namedAccountPromotionKeys, o as resolveSingleAccountPromotionTarget, s as singleAccountKeysToMove } from "./setup-dm-policy-
|
|
6
|
-
import { n as matrixSetupAdapter } from "./setup-core-
|
|
7
|
-
import { n as matrixOnboardingAdapter } from "./setup-surface-
|
|
8
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings
|
|
5
|
+
import { a as namedAccountPromotionKeys, o as resolveSingleAccountPromotionTarget, s as singleAccountKeysToMove } from "./setup-dm-policy-0_kFUfW4.js";
|
|
6
|
+
import { n as matrixSetupAdapter } from "./setup-core-C-uKN68n.js";
|
|
7
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-KzA9__US.js";
|
|
8
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-DHUszTA0.js";
|
|
9
9
|
export { collectRuntimeConfigAssignments, createMatrixThreadBindingManager, legacyConfigRules, matrixSetupAdapter, matrixOnboardingAdapter as matrixSetupWizard, namedAccountPromotionKeys, normalizeCompatibilityConfig, resetMatrixThreadBindingsForTests, resolveSingleAccountPromotionTarget, secretTargetRegistryEntries, setMatrixRuntime, singleAccountKeysToMove };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
2
|
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-DiK9j7jz.js";
|
|
3
3
|
import { a as resolveMatrixStoragePaths, n as maybeMigrateLegacyStorage, o as writeStorageMeta } from "./storage-tC3ujLiW.js";
|
|
4
|
-
import "./config-
|
|
4
|
+
import "./config-xD5Y8nFT.js";
|
|
5
5
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
@@ -9,7 +9,7 @@ import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sd
|
|
|
9
9
|
var create_client_exports = /* @__PURE__ */ __exportAll({ createMatrixClient: () => createMatrixClient });
|
|
10
10
|
let matrixCreateClientRuntimeDepsPromise;
|
|
11
11
|
async function loadMatrixCreateClientRuntimeDeps() {
|
|
12
|
-
matrixCreateClientRuntimeDepsPromise ??= Promise.all([import("./sdk-
|
|
12
|
+
matrixCreateClientRuntimeDepsPromise ??= Promise.all([import("./sdk-BLBGvKEe.js").then((n) => n.n), import("./logging-DZHSPP5N.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
|
|
13
13
|
MatrixClient: sdkModule.MatrixClient,
|
|
14
14
|
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
15
15
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as formatMatrixErrorMessage } from "./errors-CTcpEDq-.js";
|
|
2
|
-
import { t as ensureMatrixCryptoRuntime } from "./deps-
|
|
2
|
+
import { t as ensureMatrixCryptoRuntime } from "./deps-DR0MIYrW.js";
|
|
3
3
|
import { n as LogService, r as noop } from "./logger-CnZRVrux.js";
|
|
4
4
|
import { i as MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS, n as isRepairableSecretStorageAccessError } from "./recovery-key-store-BTJ6jz5v.js";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -11,25 +11,21 @@ const REQUIRED_MATRIX_PACKAGES = [
|
|
|
11
11
|
];
|
|
12
12
|
const MIN_MATRIX_CRYPTO_NATIVE_BINDING_BYTES = 1e6;
|
|
13
13
|
function resolveMissingMatrixPackages(resolveFn) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
});
|
|
24
|
-
} catch {
|
|
25
|
-
return [...REQUIRED_MATRIX_PACKAGES];
|
|
26
|
-
}
|
|
14
|
+
const resolve = resolveFn ?? defaultResolveFn;
|
|
15
|
+
return REQUIRED_MATRIX_PACKAGES.filter((pkg) => {
|
|
16
|
+
try {
|
|
17
|
+
resolve(pkg);
|
|
18
|
+
return false;
|
|
19
|
+
} catch {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
27
23
|
}
|
|
28
24
|
function isMatrixSdkAvailable() {
|
|
29
25
|
return resolveMissingMatrixPackages().length === 0;
|
|
30
26
|
}
|
|
31
27
|
function buildMatrixDepsMissingMessage(missing) {
|
|
32
|
-
return [`Matrix plugin dependencies are missing: ${missing.
|
|
28
|
+
return [`Matrix plugin dependencies are missing: ${missing.join(", ")}.`, "Repair this plugin with `openclaw plugins update matrix` or run `openclaw doctor --fix`."].join(" ");
|
|
33
29
|
}
|
|
34
30
|
let defaultMatrixCryptoRuntimeEnsurePromise = null;
|
|
35
31
|
async function runFixedCommandWithTimeout(params) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
2
|
import { n as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-80nQ2gql.js";
|
|
3
3
|
import { t as MatrixAuthedHttpClient } from "./http-client-C7AeVJay.js";
|
|
4
|
-
import { n as resolveMatrixAuth } from "./config-
|
|
5
|
-
import "./client-
|
|
4
|
+
import { n as resolveMatrixAuth } from "./config-xD5Y8nFT.js";
|
|
5
|
+
import "./client-DBDvsx0D.js";
|
|
6
6
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
//#region extensions/matrix/src/directory-live.ts
|
|
8
8
|
var directory_live_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as isRecord } from "./record-shared-CHWJCTWf.js";
|
|
2
2
|
import "./doctor-contract-D4-64QuJ.js";
|
|
3
|
-
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-
|
|
3
|
+
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-CDasos7a.js";
|
|
4
4
|
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-DaCHTp8C.js";
|
|
5
5
|
import { detectPluginInstallPathIssue, formatPluginInstallPathIssue, removePluginFromConfig } from "openclaw/plugin-sdk/runtime-doctor";
|
|
6
6
|
//#region extensions/matrix/src/doctor.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix } from "./send-
|
|
1
|
+
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix } from "./send-D651usmb.js";
|
|
2
2
|
import { l as MsgType } from "./direct-management--Y8ypgLv.js";
|
|
3
3
|
import { createDraftStreamLoop } from "openclaw/plugin-sdk/channel-lifecycle";
|
|
4
4
|
//#region extensions/matrix/src/matrix/draft-stream.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveMatrixAccount, t as listMatrixAccountIds } from "./accounts
|
|
1
|
+
import { i as resolveMatrixAccount, t as listMatrixAccountIds } from "./accounts--0L_EuMK.js";
|
|
2
2
|
import { t as normalizeMatrixApproverId } from "./approval-ids-DoC2z7tR.js";
|
|
3
3
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { resolveApprovalRequestChannelAccountId } from "openclaw/plugin-sdk/approval-native-runtime";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as registerMatrixCliMetadata } from "./cli-metadata-
|
|
1
|
+
import { n as registerMatrixCliMetadata } from "./cli-metadata-Bt5SrlLo.js";
|
|
2
2
|
import { registerMatrixSubagentHooks } from "./subagent-hooks-api.js";
|
|
3
3
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
4
4
|
//#region extensions/matrix/index.ts
|
|
@@ -249,7 +249,7 @@ function isMatrixLegacyCryptoInspectorAvailable() {
|
|
|
249
249
|
//#region extensions/matrix/src/legacy-crypto.ts
|
|
250
250
|
const MATRIX_LEGACY_CRYPTO_INSPECTOR_UNAVAILABLE_MESSAGE = "Legacy Matrix encrypted state was detected, but the Matrix crypto inspector is unavailable.";
|
|
251
251
|
async function loadMatrixLegacyCryptoInspector() {
|
|
252
|
-
return (await import("./legacy-crypto-inspector-
|
|
252
|
+
return (await import("./legacy-crypto-inspector-C4VpBdDV.js")).inspectLegacyMatrixCryptoStore;
|
|
253
253
|
}
|
|
254
254
|
function detectLegacyBotSdkCryptoStore(cryptoRootDir) {
|
|
255
255
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as buildPollResultsSummary, g as isPollStartType, h as isPollEventType, m as formatPollResultsAsText, p as formatPollAsText, v as parsePollStartContent, y as resolvePollReferenceEventId } from "./send-
|
|
1
|
+
import { f as buildPollResultsSummary, g as isPollStartType, h as isPollEventType, m as formatPollResultsAsText, p as formatPollAsText, v as parsePollStartContent, y as resolvePollReferenceEventId } from "./send-D651usmb.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
//#region extensions/matrix/src/matrix/poll-summary.ts
|
|
4
4
|
function resolveMatrixPollRootEventId(event) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as isMatrixNotFoundError } from "./errors-CTcpEDq-.js";
|
|
2
|
-
import { a as sendMessageMatrix, h as isPollEventType, n as editMessageMatrix } from "./send-
|
|
2
|
+
import { a as sendMessageMatrix, h as isPollEventType, n as editMessageMatrix } from "./send-D651usmb.js";
|
|
3
3
|
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-ejrL19w-.js";
|
|
4
|
-
import { a as resolveMatrixMessageBody, c as resolveMatrixPollRootEventId, i as resolveMatrixMessageAttachment, o as fetchMatrixPollMessageSummary } from "./media-text-
|
|
5
|
-
import { r as withResolvedRoomAction } from "./client-
|
|
4
|
+
import { a as resolveMatrixMessageBody, c as resolveMatrixPollRootEventId, i as resolveMatrixMessageAttachment, o as fetchMatrixPollMessageSummary } from "./media-text-BLL8-Dr3.js";
|
|
5
|
+
import { r as withResolvedRoomAction } from "./client-DrmLRQnw.js";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
//#region extensions/matrix/src/matrix/actions/limits.ts
|
|
8
8
|
function resolveMatrixActionLimit(raw, fallback) {
|