@openclaw/matrix 2026.11.7 → 2026.11.8
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/{approval-handler.runtime-LBvkygUK.mjs → approval-handler.runtime-CKiMSdnX.mjs} +3 -3
- package/dist/.setup/{channel-CHryi9FS.mjs → channel-CZJeLUuu.mjs} +8 -8
- package/dist/.setup/{channel.runtime-DluXWaGb.mjs → channel.runtime-hpiGNile.mjs} +5 -5
- package/dist/.setup/{channel.setup-BDbs0FLq.mjs → channel.setup-Dc4G7kdF.mjs} +6 -2
- package/dist/.setup/{cli-C7Jmy2x4.mjs → cli-DnLr6VVE.mjs} +8 -8
- package/dist/.setup/{cli-doctor-BVstkgJE.mjs → cli-doctor-DRM-8rZg.mjs} +1 -1
- package/dist/.setup/{cli-metadata-B0GHIn05.mjs → cli-metadata-C9wZ_TOY.mjs} +1 -1
- package/dist/.setup/{client-Bk_tBqNp.mjs → client-CnPiPhTg.mjs} +4 -4
- package/dist/.setup/{client-mFRVrUt3.mjs → client-CsgjDjyA.mjs} +2 -2
- package/dist/.setup/{client-bootstrap-Bhhri97J.mjs → client-bootstrap-CRN75TtW.mjs} +1 -1
- package/dist/.setup/{create-client-CzUtZgYF.mjs → create-client-C5bd0RUQ.mjs} +4 -4
- package/dist/.setup/{credentials-kT20jk_u.mjs → credentials-Byq2Kcqg.mjs} +1 -1
- package/dist/.setup/{crypto-runtime-BI9Pc344.mjs → crypto-runtime-EdW32JgS.mjs} +2 -2
- package/dist/.setup/{crypto-state-store-BZLlwkv_.mjs → crypto-state-store-m13QToc7.mjs} +2 -1
- package/dist/.setup/{crypto-store-ownership-CiQ1l_O7.mjs → crypto-store-ownership-CVeppnSH.mjs} +1 -1
- package/dist/.setup/{crypto-unsafe-state-doctor-CmF1X1dZ.mjs → crypto-unsafe-state-doctor-C_vhqxOm.mjs} +3 -3
- package/dist/.setup/{directory-live-DmkH9hcp.mjs → directory-live-Brv_PC6z.mjs} +1 -1
- package/dist/.setup/{draft-stream-bVedfEB3.mjs → draft-stream-BAf9CYmE.mjs} +1 -1
- package/dist/.setup/{exec-approvals-BeYF9-3o.mjs → exec-approvals-ClD4sAHY.mjs} +2 -2
- package/dist/.setup/{file-sync-store-BpS12yaK.mjs → file-sync-store-Dilb8bVT.mjs} +2 -2
- package/dist/.setup/{idb-persistence-BTOsltD9.mjs → idb-persistence-COLTtrm_.mjs} +2 -2
- package/dist/.setup/{messages-BqVczVlt.mjs → messages-zsGFORuZ.mjs} +2 -2
- package/dist/.setup/{monitor-BsSo3tCv.mjs → monitor-CdT6CsWk.mjs} +16 -16
- package/dist/.setup/{onboarding-CoMpgTiK.mjs → onboarding-FJiJ-X6s.mjs} +3 -3
- package/dist/.setup/{outbound-ntm0KOfK.mjs → outbound-yjH1XHCr.mjs} +2 -2
- package/dist/.setup/{profile-update-gC436enW.mjs → profile-update-uRiRQTtX.mjs} +3 -3
- package/dist/.setup/{reaction-events-DTThoaJQ.mjs → reaction-events-DYJrx8eq.mjs} +3 -3
- package/dist/.setup/{resolve-targets-CWW9zTYp.mjs → resolve-targets-DwRQnBpN.mjs} +1 -1
- package/dist/.setup/{retired-state-JGUEBE72.mjs → retired-state-DohpBmxW.mjs} +1 -37
- package/dist/.setup/{room-info-CM3MKoh4.mjs → room-info-B6-Yo6I5.mjs} +3 -3
- package/dist/.setup/{sdk-ByFgA6Il.mjs → sdk-CPgBCtd2.mjs} +5 -5
- package/dist/.setup/{send-DFB7JGg2.mjs → send-CCT72yQb.mjs} +1 -1
- package/dist/.setup/{setup-bootstrap-razh2kSp.mjs → setup-bootstrap-CB0idLzk.mjs} +2 -2
- package/dist/.setup/{setup-core-BVbxltMM.mjs → setup-core-5sswwYZt.mjs} +1 -1
- package/dist/.setup/setup-plugin-api-BU7RNSl9.mjs +2 -0
- package/dist/.setup/sqlite-state-7WEloajv.mjs +37 -0
- package/dist/.setup/{startup-verification-UkaoSldm.mjs → startup-verification-zrBugJBv.mjs} +3 -2
- package/dist/.setup/{storage-C3N6YZIn.mjs → storage-BjNHtYwT.mjs} +4 -3
- package/dist/.setup/{sync-cache-state-BKVaKRzQ.mjs → sync-cache-state-CovS1oSw.mjs} +2 -1
- package/dist/.setup/{thread-bindings-D5VJEDZV.mjs → thread-bindings-DZvpe83d.mjs} +4 -3
- package/dist/.setup/{tool-actions-DexlmVDf.mjs → tool-actions-Dd8WTKXA.mjs} +9 -9
- package/dist/.setup/{verification-B122bsH2.mjs → verification-BKVxSiIq.mjs} +1 -1
- package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
- package/dist/api.js +4 -4
- package/dist/channel-plugin-api.js +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/contract-api.js +2 -2
- package/dist/doctor-contract-api.js +6 -5
- package/dist/index.js +1 -1
- package/dist/plugin-entry.handlers.runtime.js +2 -2
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/package.json +4 -4
- package/dist/.setup/setup-plugin-api-CQKySg7F.mjs +0 -2
package/dist/.setup/{approval-handler.runtime-LBvkygUK.mjs → approval-handler.runtime-CKiMSdnX.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
2
|
-
import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-
|
|
2
|
+
import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-ClD4sAHY.mjs";
|
|
3
3
|
import { s as resolveMatrixTargetIdentity } from "./target-ids-HhcaKX1n.mjs";
|
|
4
4
|
import { a as repairMatrixDirectRooms } from "./direct-management-Dp1giZ34.mjs";
|
|
5
|
-
import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-
|
|
5
|
+
import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-CCT72yQb.mjs";
|
|
6
6
|
import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-BazmsDbe.mjs";
|
|
7
|
-
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-
|
|
7
|
+
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-zsGFORuZ.mjs";
|
|
8
8
|
import { listMessageReceiptPlatformIds, resolveMessageReceiptPrimaryId } from "openclaw/plugin-sdk/channel-outbound";
|
|
9
9
|
import { normalizeStringifiedOptionalString, normalizeUniqueStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
10
10
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
|
|
2
2
|
import { i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, r as hasImplicitMatrixAccountConfig } from "./account-selection-UUPhMBmu.mjs";
|
|
3
3
|
import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
4
|
-
import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, v as resolveMatrixAccountAsync } from "./setup-core-
|
|
5
|
-
import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-
|
|
6
|
-
import { a as isMatrixExecApprovalAuthorizedSender, c as shouldSuppressLocalMatrixExecApprovalPrompt, d as normalizeMatrixApproverId, i as isMatrixApprovalClientEnabled, l as getMatrixApprovalAuthApprovers, n as getMatrixExecApprovalApprovers, o as resolveMatrixExecApprovalTarget, r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest, t as getMatrixApprovalApprovers, u as matrixApprovalAuth } from "./exec-approvals-
|
|
4
|
+
import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, v as resolveMatrixAccountAsync } from "./setup-core-5sswwYZt.mjs";
|
|
5
|
+
import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-Dc4G7kdF.mjs";
|
|
6
|
+
import { a as isMatrixExecApprovalAuthorizedSender, c as shouldSuppressLocalMatrixExecApprovalPrompt, d as normalizeMatrixApproverId, i as isMatrixApprovalClientEnabled, l as getMatrixApprovalAuthApprovers, n as getMatrixExecApprovalApprovers, o as resolveMatrixExecApprovalTarget, r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest, t as getMatrixApprovalApprovers, u as matrixApprovalAuth } from "./exec-approvals-ClD4sAHY.mjs";
|
|
7
7
|
import { a as normalizeMatrixResolvableTarget, i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId, o as resolveMatrixDirectUserId, r as isMatrixRoomId, s as resolveMatrixTargetIdentity } from "./target-ids-HhcaKX1n.mjs";
|
|
8
8
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BANpMUbP.mjs";
|
|
9
9
|
import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./thread-bindings-shared-QmZOfX9Q.mjs";
|
|
@@ -156,7 +156,7 @@ const matrixMessageActions = {
|
|
|
156
156
|
return account.enabled && account.configured && createActionGate(account.config.actions)("messages") ? payload : null;
|
|
157
157
|
},
|
|
158
158
|
handleAction: async (ctx) => {
|
|
159
|
-
const { handleMatrixAction } = await import("./tool-actions-
|
|
159
|
+
const { handleMatrixAction } = await import("./tool-actions-Dd8WTKXA.mjs");
|
|
160
160
|
return await handleMatrixAction(ctx);
|
|
161
161
|
}
|
|
162
162
|
};
|
|
@@ -272,7 +272,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
|
|
|
272
272
|
],
|
|
273
273
|
isConfigured: isMatrixAnyApprovalClientEnabled,
|
|
274
274
|
shouldHandle: shouldHandleMatrixApprovalRequest,
|
|
275
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
275
|
+
load: async () => (await import("./approval-handler.runtime-CKiMSdnX.mjs")).matrixApprovalNativeRuntime
|
|
276
276
|
})
|
|
277
277
|
});
|
|
278
278
|
const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
|
|
@@ -629,12 +629,12 @@ async function resolveMatrixOutboundSessionRoute(params) {
|
|
|
629
629
|
}
|
|
630
630
|
//#endregion
|
|
631
631
|
//#region extensions/matrix/src/channel.ts
|
|
632
|
-
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
633
|
-
const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-
|
|
632
|
+
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-hpiGNile.mjs"), "matrixChannelRuntime");
|
|
633
|
+
const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-CdT6CsWk.mjs").catch((error) => {
|
|
634
634
|
loadMatrixMonitorModule.clear();
|
|
635
635
|
throw error;
|
|
636
636
|
}));
|
|
637
|
-
const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-
|
|
637
|
+
const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-DwRQnBpN.mjs").then((n) => n.n), "resolveMatrixTargets");
|
|
638
638
|
const matrixDoctor = {
|
|
639
639
|
dmAllowFromMode: "nestedOnly",
|
|
640
640
|
groupModel: "sender",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-By_2hsXr.mjs";
|
|
2
|
-
import { C as reconcileMatrixUnknownSend, S as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-
|
|
2
|
+
import { C as reconcileMatrixUnknownSend, S as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-CCT72yQb.mjs";
|
|
3
3
|
import { c as resolveMatrixLocalTimeoutMs } from "./client-support-B_Mp4Qk9.mjs";
|
|
4
|
-
import { c as resolveMatrixAuth } from "./client-
|
|
5
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
6
|
-
import { t as matrixOutbound } from "./outbound-
|
|
7
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
4
|
+
import { c as resolveMatrixAuth } from "./client-CnPiPhTg.mjs";
|
|
5
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-Brv_PC6z.mjs";
|
|
6
|
+
import { t as matrixOutbound } from "./outbound-yjH1XHCr.mjs";
|
|
7
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-DwRQnBpN.mjs";
|
|
8
8
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
9
9
|
import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
10
10
|
import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
2
|
-
import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-
|
|
2
|
+
import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-5sswwYZt.mjs";
|
|
3
3
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
4
4
|
import { createChannelConfigUiHints } from "openclaw/plugin-sdk/channel-core";
|
|
5
5
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -279,7 +279,7 @@ const matrixPluginBase = {
|
|
|
279
279
|
order: 70,
|
|
280
280
|
quickstartAllowFrom: true
|
|
281
281
|
},
|
|
282
|
-
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-
|
|
282
|
+
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-FJiJ-X6s.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
|
|
283
283
|
setupContract: matrixSetupContract,
|
|
284
284
|
capabilities: {
|
|
285
285
|
chatTypes: [
|
|
@@ -296,6 +296,10 @@ const matrixPluginBase = {
|
|
|
296
296
|
configPrefixes: ["channels.matrix"],
|
|
297
297
|
noopPrefixes: ["messages.ackReactionScope"]
|
|
298
298
|
},
|
|
299
|
+
lifecycle: { onAccountRemoved: async ({ accountId }) => {
|
|
300
|
+
const { clearMatrixCredentials } = await import("./credentials-Byq2Kcqg.mjs");
|
|
301
|
+
await clearMatrixCredentials(process.env, accountId);
|
|
302
|
+
} },
|
|
299
303
|
configSchema: MatrixChannelConfigSchema,
|
|
300
304
|
config: {
|
|
301
305
|
...createScopedChannelConfigAdapter({
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
|
|
2
2
|
import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
3
|
-
import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-
|
|
3
|
+
import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-5sswwYZt.mjs";
|
|
4
4
|
import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
|
|
5
|
-
import { l as resolveMatrixAuthContext } from "./client-
|
|
6
|
-
import { n as withResolvedActionClient } from "./client-
|
|
7
|
-
import { registerMatrixDoctorCommands } from "./cli-doctor-
|
|
5
|
+
import { l as resolveMatrixAuthContext } from "./client-CnPiPhTg.mjs";
|
|
6
|
+
import { n as withResolvedActionClient } from "./client-CsgjDjyA.mjs";
|
|
7
|
+
import { registerMatrixDoctorCommands } from "./cli-doctor-DRM-8rZg.mjs";
|
|
8
8
|
import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Dm_YMVFT.mjs";
|
|
9
9
|
import { i as setMatrixConsoleLogging } from "./logger-CuAzdD8Q.mjs";
|
|
10
10
|
import { r as setMatrixSdkLogMode } from "./logging-CoaEyRtA.mjs";
|
|
11
11
|
import { n as listStaleOpenClawMatrixDevices } from "./device-health-Ck2YpEVN.mjs";
|
|
12
|
-
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-
|
|
13
|
-
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-
|
|
12
|
+
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-uRiRQTtX.mjs";
|
|
13
|
+
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-BKVxSiIq.mjs";
|
|
14
14
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
15
15
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
16
16
|
import { parseStrictInteger, timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
@@ -407,7 +407,7 @@ function registerMatrixAccountCommands(root) {
|
|
|
407
407
|
backupVersion: null
|
|
408
408
|
};
|
|
409
409
|
if (accountConfig.encryption === true) {
|
|
410
|
-
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-
|
|
410
|
+
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-CB0idLzk.mjs");
|
|
411
411
|
verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
|
|
412
412
|
previousCfg: cfg,
|
|
413
413
|
cfg: updated,
|
|
@@ -535,7 +535,7 @@ async function runMatrixDirectRoomCommand(params) {
|
|
|
535
535
|
cfg,
|
|
536
536
|
accountId: params.accountId
|
|
537
537
|
}) : void 0;
|
|
538
|
-
const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-
|
|
538
|
+
const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-CsgjDjyA.mjs").then((n) => n.t), import("./direct-management-Dp1giZ34.mjs").then((n) => n.t)]);
|
|
539
539
|
return await (params.repair ? withStartedActionClient : withResolvedActionClient)({
|
|
540
540
|
accountId: params.accountId,
|
|
541
541
|
cfg
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as sanitizeMatrixPathSegment } from "./storage-paths-B51JM-pC.mjs";
|
|
2
|
-
import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-
|
|
2
|
+
import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-C_vhqxOm.mjs";
|
|
3
3
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
//#region extensions/matrix/src/cli-doctor.ts
|
|
@@ -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-DnLr6VVE.mjs");
|
|
6
6
|
registerMatrixCli({ program });
|
|
7
7
|
}, { descriptors: [{
|
|
8
8
|
name: "matrix",
|
|
@@ -5,7 +5,7 @@ import { t as getMatrixScopedEnvVarNames } from "./env-vars-aEBngJPa.mjs";
|
|
|
5
5
|
import { o as resolveMatrixBaseConfig, r as listNormalizedMatrixAccountIds, t as findMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
6
6
|
import { t as resolveMatrixConfigFieldPath } from "./config-paths-CnREYb1Y.mjs";
|
|
7
7
|
import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-By_2hsXr.mjs";
|
|
8
|
-
import { i as repairCurrentTokenStorageMetaDeviceId } from "./storage-
|
|
8
|
+
import { i as repairCurrentTokenStorageMetaDeviceId } from "./storage-BjNHtYwT.mjs";
|
|
9
9
|
import { n as getMatrixMonitorTaskSignal } from "./task-runner-DY3aKiQa.mjs";
|
|
10
10
|
import { c as resolveMatrixLocalTimeoutMs } from "./client-support-B_Mp4Qk9.mjs";
|
|
11
11
|
import { createLazyRuntimeMethod, createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
@@ -63,7 +63,7 @@ async function fetchMatrixWhoamiIdentity(params) {
|
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region extensions/matrix/src/matrix/client/config.ts
|
|
65
65
|
const loadMatrixCredentialsReadDeps = createLazyRuntimeModule(() => import("./credentials-read-CM6wXUjL.mjs").then((n) => n.i));
|
|
66
|
-
const loadMatrixCredentialsWriteRuntime = createLazyRuntimeModule(() => import("./credentials-
|
|
66
|
+
const loadMatrixCredentialsWriteRuntime = createLazyRuntimeModule(() => import("./credentials-Byq2Kcqg.mjs"));
|
|
67
67
|
const loadMatrixSecretInputDeps = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/secret-input-runtime"));
|
|
68
68
|
function credentialsMatchBackfillAuthLineage(params) {
|
|
69
69
|
if (!params.stored) return true;
|
|
@@ -433,7 +433,7 @@ async function awaitMatrixStartupWithAbort(promise, abortSignal) {
|
|
|
433
433
|
}
|
|
434
434
|
//#endregion
|
|
435
435
|
//#region extensions/matrix/src/matrix/client/shared.ts
|
|
436
|
-
const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-
|
|
436
|
+
const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-C5bd0RUQ.mjs"));
|
|
437
437
|
const MATRIX_RETIREMENT_DRAIN_TIMEOUT_MS = 5e3;
|
|
438
438
|
const sharedClientRegistry = resolveGlobalSingleton(Symbol.for("openclaw.matrix.shared-client-registry"), () => ({
|
|
439
439
|
states: /* @__PURE__ */ new Map(),
|
|
@@ -768,7 +768,7 @@ var client_exports = /* @__PURE__ */ __exportAll({
|
|
|
768
768
|
stopSharedClientForAccount: () => stopSharedClientForAccount,
|
|
769
769
|
validateMatrixHomeserverUrl: () => validateMatrixHomeserverUrl
|
|
770
770
|
});
|
|
771
|
-
const loadMatrixClientRuntime = createLazyRuntimeModule(() => import("./create-client-
|
|
771
|
+
const loadMatrixClientRuntime = createLazyRuntimeModule(() => import("./create-client-C5bd0RUQ.mjs"));
|
|
772
772
|
const createMatrixClient = createLazyRuntimeMethod(loadMatrixClientRuntime, (runtime) => runtime.createMatrixClient);
|
|
773
773
|
//#endregion
|
|
774
774
|
export { isMatrixStartupAbortError as a, resolveMatrixAuth as c, createMatrixStartupAbortError as i, resolveMatrixAuthContext as l, acquireSharedMatrixClient as n, throwIfMatrixStartupAborted as o, awaitMatrixStartupWithAbort as r, backfillMatrixAuthDeviceIdAfterStartup as s, client_exports as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
|
|
2
|
-
import { w as resolveMatrixRoomId } from "./send-
|
|
2
|
+
import { w as resolveMatrixRoomId } from "./send-CCT72yQb.mjs";
|
|
3
3
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
4
4
|
//#region extensions/matrix/src/matrix/actions/client.ts
|
|
5
5
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -7,7 +7,7 @@ var client_exports = /* @__PURE__ */ __exportAll({
|
|
|
7
7
|
withResolvedRoomAction: () => withResolvedRoomAction,
|
|
8
8
|
withStartedActionClient: () => withStartedActionClient
|
|
9
9
|
});
|
|
10
|
-
const loadMatrixActionClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-
|
|
10
|
+
const loadMatrixActionClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-CRN75TtW.mjs"));
|
|
11
11
|
async function withResolvedActionClient(opts, run) {
|
|
12
12
|
const { withResolvedRuntimeMatrixClient } = await loadMatrixActionClientRuntime();
|
|
13
13
|
return await withResolvedRuntimeMatrixClient(opts, run);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
2
2
|
import { captureChannelReadAuthority } from "openclaw/plugin-sdk/fetch-runtime";
|
|
3
3
|
//#region extensions/matrix/src/matrix/client-bootstrap.ts
|
|
4
|
-
const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-
|
|
4
|
+
const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-CnPiPhTg.mjs").then((n) => n.t));
|
|
5
5
|
async function ensureResolvedClientReadiness(params) {
|
|
6
6
|
if (params.readiness === "started") {
|
|
7
7
|
if (params.lease) await params.lease.start();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
|
|
2
2
|
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-By_2hsXr.mjs";
|
|
3
|
-
import { n as maybeMigrateLegacyStorage, o as resolveMatrixStoragePaths, s as writeStorageMeta } from "./storage-
|
|
4
|
-
import "./client-
|
|
3
|
+
import { n as maybeMigrateLegacyStorage, o as resolveMatrixStoragePaths, s as writeStorageMeta } from "./storage-BjNHtYwT.mjs";
|
|
4
|
+
import "./client-CnPiPhTg.mjs";
|
|
5
5
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
//#region extensions/matrix/src/matrix/client/create-client.ts
|
|
10
10
|
const loadMatrixCreateClientRuntimeDeps = createLazyRuntimeModule(() => Promise.all([
|
|
11
|
-
import("./sdk-
|
|
11
|
+
import("./sdk-CPgBCtd2.mjs").then((n) => n.t),
|
|
12
12
|
import("./logging-CoaEyRtA.mjs").then((n) => n.n),
|
|
13
|
-
import("./file-sync-store-
|
|
13
|
+
import("./file-sync-store-Dilb8bVT.mjs")
|
|
14
14
|
]).then(([sdkModule, loggingModule, syncStoreModule]) => ({
|
|
15
15
|
MatrixClient: sdkModule.MatrixClient,
|
|
16
16
|
SqliteBackedMatrixSyncStore: syncStoreModule.SqliteBackedMatrixSyncStore,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as normalizeMatrixStoredCredentials, n as isMatrixCredentialRevocation, r as matrixCredentialsStoreKey } from "./credentials-state-B3cuUFwZ.mjs";
|
|
2
2
|
import { i as resolveMatrixCredentialsDir, o as resolveMatrixCredentialsPath } from "./storage-paths-B51JM-pC.mjs";
|
|
3
3
|
import { a as loadMatrixCredentials, n as clearMatrixCredentials, r as credentialsMatchConfig, s as openMatrixCredentialsAsyncStore } from "./credentials-read-CM6wXUjL.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { r as updateMatrixKeyedState } from "./sqlite-state-7WEloajv.mjs";
|
|
5
5
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
6
6
|
//#region extensions/matrix/src/matrix/credentials.ts
|
|
7
7
|
async function saveMatrixCredentials(credentials, env = process.env, accountId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ensureMatrixCryptoRuntime } from "./deps-D-W_QQjz.mjs";
|
|
2
2
|
import { r as noop, t as LogService } from "./logger-CuAzdD8Q.mjs";
|
|
3
|
-
import { a as isRepairableSecretStorageAccessError, i as trustMatrixOwnIdentity, n as isMatrixDeviceOwnerVerified, r as isMatrixDeviceVerifiedInCurrentClient } from "./sdk-
|
|
4
|
-
import { persistIdbToDisk, resolveDefaultIdbSnapshotPath, restoreIdbFromDisk } from "./idb-persistence-
|
|
3
|
+
import { a as isRepairableSecretStorageAccessError, i as trustMatrixOwnIdentity, n as isMatrixDeviceOwnerVerified, r as isMatrixDeviceVerifiedInCurrentClient } from "./sdk-CPgBCtd2.mjs";
|
|
4
|
+
import { persistIdbToDisk, resolveDefaultIdbSnapshotPath, restoreIdbFromDisk } from "./idb-persistence-COLTtrm_.mjs";
|
|
5
5
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
6
6
|
import { formatErrorMessage, materializeErrorStack, toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
|
|
7
7
|
import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as readMatrixStateChunks, l as writeMatrixStateChunks, o as chunkMatrixStateJson, s as pruneMatrixStateChunks } from "./retired-state-DohpBmxW.mjs";
|
|
3
|
+
import { r as updateMatrixKeyedState, t as resolveMatrixSqliteStateEnv } from "./sqlite-state-7WEloajv.mjs";
|
|
3
4
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
5
|
import { randomUUID } from "node:crypto";
|
|
5
6
|
import path from "node:path";
|
package/dist/.setup/{crypto-store-ownership-CiQ1l_O7.mjs → crypto-store-ownership-CVeppnSH.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
|
|
2
|
-
import { a as readMatrixIdbSnapshotOwnerGeneration, c as sealMatrixIdbSnapshotOwnerGeneration } from "./crypto-state-store-
|
|
2
|
+
import { a as readMatrixIdbSnapshotOwnerGeneration, c as sealMatrixIdbSnapshotOwnerGeneration } from "./crypto-state-store-m13QToc7.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { constants } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
|
|
2
|
-
import { i as readMatrixIdbSnapshotJson, t as MATRIX_IDB_SNAPSHOT_FILENAME } from "./crypto-state-store-
|
|
2
|
+
import { i as readMatrixIdbSnapshotJson, t as MATRIX_IDB_SNAPSHOT_FILENAME } from "./crypto-state-store-m13QToc7.mjs";
|
|
3
3
|
import { t as walkMatrixStateFiles } from "./state-layout-walk-BQMgMykU.mjs";
|
|
4
|
-
import { i as withMatrixCryptoStoreRecoveryLock, n as isMatrixCryptoStoreUnsafe, r as sealMatrixCryptoStoreRecovery } from "./crypto-store-ownership-
|
|
4
|
+
import { i as withMatrixCryptoStoreRecoveryLock, n as isMatrixCryptoStoreUnsafe, r as sealMatrixCryptoStoreRecovery } from "./crypto-store-ownership-CVeppnSH.mjs";
|
|
5
5
|
import { extractErrorCode } from "openclaw/plugin-sdk/error-runtime";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -41,7 +41,7 @@ async function recoverMatrixCryptoUnsafeState(params) {
|
|
|
41
41
|
}
|
|
42
42
|
const snapshot = await readMatrixIdbSnapshotJson(params.storageRootDir, params.stateRuntime);
|
|
43
43
|
if (!snapshot) throw new Error("Matrix crypto SQLite snapshot is absent or invalid; refusal remains in place.");
|
|
44
|
-
const { validateMatrixIdbSnapshotJson } = await import("./idb-persistence-
|
|
44
|
+
const { validateMatrixIdbSnapshotJson } = await import("./idb-persistence-COLTtrm_.mjs");
|
|
45
45
|
try {
|
|
46
46
|
await validateMatrixIdbSnapshotJson(snapshot);
|
|
47
47
|
} catch (error) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
|
|
2
2
|
import { i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId } from "./target-ids-HhcaKX1n.mjs";
|
|
3
|
-
import { c as resolveMatrixAuth } from "./client-
|
|
3
|
+
import { c as resolveMatrixAuth } from "./client-CnPiPhTg.mjs";
|
|
4
4
|
import { t as MatrixAuthedHttpClient } from "./http-client-B_ohXrBm.mjs";
|
|
5
5
|
import { isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
//#region extensions/matrix/src/directory-live.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as MsgType } from "./direct-management-Dp1giZ34.mjs";
|
|
2
|
-
import { a as sendSingleTextMessageMatrix, f as prepareMatrixSingleText, t as editMessageMatrix } from "./send-
|
|
2
|
+
import { a as sendSingleTextMessageMatrix, f as prepareMatrixSingleText, t as editMessageMatrix } from "./send-CCT72yQb.mjs";
|
|
3
3
|
import { createFinalizableDraftLifecycle } from "openclaw/plugin-sdk/channel-outbound";
|
|
4
4
|
//#region extensions/matrix/src/matrix/draft-stream.ts
|
|
5
5
|
const DEFAULT_THROTTLE_MS = 1e3;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
2
|
-
import { g as resolveDefaultMatrixAccountId, v as resolveMatrixAccountAsync } from "./setup-core-
|
|
3
|
-
import { i as normalizeMatrixUserId } from "./channel.setup-
|
|
2
|
+
import { g as resolveDefaultMatrixAccountId, v as resolveMatrixAccountAsync } from "./setup-core-5sswwYZt.mjs";
|
|
3
|
+
import { i as normalizeMatrixUserId } from "./channel.setup-Dc4G7kdF.mjs";
|
|
4
4
|
import { doesApprovalRequestSelectChannelAccountAsync } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
5
5
|
import { createChannelApprovalAuth, resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
6
6
|
import { createChannelExecApprovalProfileAsync, getExecApprovalReplyMetadata, isChannelExecApprovalClientEnabledFromConfig, isChannelExecApprovalTargetRecipient, matchesApprovalRequestFilters } from "openclaw/plugin-sdk/approval-client-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
|
|
2
|
-
import { t as claimCurrentTokenStorageState } from "./storage-
|
|
3
|
-
import { a as readPersistedStoreFromStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore, t as deleteMatrixSyncCacheStateFromStore } from "./sync-cache-state-
|
|
2
|
+
import { t as claimCurrentTokenStorageState } from "./storage-BjNHtYwT.mjs";
|
|
3
|
+
import { a as readPersistedStoreFromStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore, t as deleteMatrixSyncCacheStateFromStore } from "./sync-cache-state-CovS1oSw.mjs";
|
|
4
4
|
import { n as emitMatrixLog, t as LogService } from "./logger-CuAzdD8Q.mjs";
|
|
5
5
|
import { materializeErrorStack } from "openclaw/plugin-sdk/error-runtime";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
|
|
2
|
-
import { n as RETIRED_MATRIX_STATE_REMEDIATION } from "./retired-state-
|
|
3
|
-
import { i as readMatrixIdbSnapshotJson, l as writeMatrixIdbSnapshotJson, r as pruneMatrixIdbSnapshotChunks } from "./crypto-state-store-
|
|
2
|
+
import { n as RETIRED_MATRIX_STATE_REMEDIATION } from "./retired-state-DohpBmxW.mjs";
|
|
3
|
+
import { i as readMatrixIdbSnapshotJson, l as writeMatrixIdbSnapshotJson, r as pruneMatrixIdbSnapshotChunks } from "./crypto-state-store-m13QToc7.mjs";
|
|
4
4
|
import { t as LogService } from "./logger-CuAzdD8Q.mjs";
|
|
5
5
|
import { n as MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS } from "./idb-persistence-lock-Bh3ZLIsE.mjs";
|
|
6
6
|
import { toErrorObject } from "openclaw/plugin-sdk/error-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-DGxiiBn9.mjs";
|
|
2
|
-
import { _ as formatPollResultsAsText, b as parsePollStart, d as resolveMatrixReplacementContent, h as buildPollResultsSummary, t as editMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollEventType, x as resolvePollReferenceEventId, y as isPollStartType } from "./send-
|
|
2
|
+
import { _ as formatPollResultsAsText, b as parsePollStart, d as resolveMatrixReplacementContent, h as buildPollResultsSummary, t as editMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollEventType, x as resolvePollReferenceEventId, y as isPollStartType } from "./send-CCT72yQb.mjs";
|
|
3
3
|
import { n as isMatrixNotFoundError } from "./errors-Bw4EHwKX.mjs";
|
|
4
|
-
import { r as withResolvedRoomAction } from "./client-
|
|
4
|
+
import { r as withResolvedRoomAction } from "./client-CsgjDjyA.mjs";
|
|
5
5
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
6
6
|
import { asNullableObjectRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import { HTTPError } from "matrix-js-sdk/lib/http-api/index.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
|
|
2
2
|
import { a as resolveMatrixAccountConfig, i as resolveMatrixAccountAllowlistConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
3
|
-
import { h as resolveConfiguredMatrixBotUserIds } from "./setup-core-
|
|
4
|
-
import { a as resolveMatrixInboundRouteAsync, i as resolveMatrixRoomConfig, n as resolveMatrixStoredSessionMeta, o as resolveMatrixThreadRouting } from "./channel-
|
|
5
|
-
import { a as resolveMatrixAllowListMatch, i as normalizeMatrixUserId, r as normalizeMatrixAllowList } from "./channel.setup-
|
|
3
|
+
import { h as resolveConfiguredMatrixBotUserIds } from "./setup-core-5sswwYZt.mjs";
|
|
4
|
+
import { a as resolveMatrixInboundRouteAsync, i as resolveMatrixRoomConfig, n as resolveMatrixStoredSessionMeta, o as resolveMatrixThreadRouting } from "./channel-CZJeLUuu.mjs";
|
|
5
|
+
import { a as resolveMatrixAllowListMatch, i as normalizeMatrixUserId, r as normalizeMatrixAllowList } from "./channel.setup-Dc4G7kdF.mjs";
|
|
6
6
|
import { n as isMatrixQualifiedUserId, r as isMatrixRoomId, t as isMatrixInviteAutoJoinTarget } from "./target-ids-HhcaKX1n.mjs";
|
|
7
7
|
import { a as MATRIX_REACTION_EVENT_TYPE, n as withMatrixSendCurrentness } from "./send-currentness-DGxiiBn9.mjs";
|
|
8
8
|
import { c as isStrictDirectMembership, f as resolveMatrixReplyToEventId, h as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, i as promoteMatrixDirectRoomCandidate, p as resolveMatrixThreadRootId, s as hasDirectMatrixMemberFlag, u as readJoinedMatrixMembers, v as RelationType } from "./direct-management-Dp1giZ34.mjs";
|
|
9
9
|
import { n as getMatrixMonitorTaskSignal, t as createMatrixMonitorTaskRunner } from "./task-runner-DY3aKiQa.mjs";
|
|
10
|
-
import { T as setBoundedMap, b as parsePollStart, c as formatMatrixMessageText, d as resolveMatrixReplacementContent, g as formatPollAsText, l as isLikelyBareFilename, r as sendMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollEventType, y as isPollStartType } from "./send-
|
|
10
|
+
import { T as setBoundedMap, b as parsePollStart, c as formatMatrixMessageText, d as resolveMatrixReplacementContent, g as formatPollAsText, l as isLikelyBareFilename, r as sendMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollEventType, y as isPollStartType } from "./send-CCT72yQb.mjs";
|
|
11
11
|
import { n as getMatrixEventProjection } from "./event-helpers-CxNgMQqH.mjs";
|
|
12
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
12
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-DZvpe83d.mjs";
|
|
13
13
|
import { a as isMatrixAccessTokenInvalidatedError } from "./client-support-B_Mp4Qk9.mjs";
|
|
14
|
-
import { a as isMatrixStartupAbortError, c as resolveMatrixAuth, l as resolveMatrixAuthContext, n as acquireSharedMatrixClient, o as throwIfMatrixStartupAborted, s as backfillMatrixAuthDeviceIdAfterStartup } from "./client-
|
|
15
|
-
import { i as readMatrixMessages, l as fetchMatrixPollSnapshot } from "./messages-
|
|
14
|
+
import { a as isMatrixStartupAbortError, c as resolveMatrixAuth, l as resolveMatrixAuthContext, n as acquireSharedMatrixClient, o as throwIfMatrixStartupAborted, s as backfillMatrixAuthDeviceIdAfterStartup } from "./client-CnPiPhTg.mjs";
|
|
15
|
+
import { i as readMatrixMessages, l as fetchMatrixPollSnapshot } from "./messages-zsGFORuZ.mjs";
|
|
16
16
|
import { a as isMatrixMediaSizeLimitError, i as MatrixMediaSizeLimitError } from "./http-client-B_ohXrBm.mjs";
|
|
17
|
-
import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-
|
|
18
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
17
|
+
import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-yjH1XHCr.mjs";
|
|
18
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-DwRQnBpN.mjs";
|
|
19
19
|
import { n as emitMatrixLog } from "./logger-CuAzdD8Q.mjs";
|
|
20
20
|
import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-Br3Lv9Hm.mjs";
|
|
21
21
|
import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState, t as isMatrixDisconnectedSyncState } from "./sync-state-CWbp0QSY.mjs";
|
|
22
|
-
import { r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-
|
|
22
|
+
import { r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-B6-Yo6I5.mjs";
|
|
23
23
|
import { channelBlockedPatch, channelReadyPatch, channelStoppedPatch, createTransportActivityStatusPatch } from "openclaw/plugin-sdk/gateway-runtime";
|
|
24
24
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
25
25
|
import { createChannelDeliveryAccumulator, createChannelIngressError, createChannelIngressMonitor, createChannelProgressDraftCompositor, createLivePreviewLifecycle, createPreviewMessageReceipt, createReplyPrefixOptions, createTypingCallbacks, logTypingFailure, resolveChannelStreamingBlockEnabled, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
|
|
@@ -1489,11 +1489,11 @@ function formatMatrixToolProgressMarkdownCode(text) {
|
|
|
1489
1489
|
}
|
|
1490
1490
|
//#endregion
|
|
1491
1491
|
//#region extensions/matrix/src/matrix/monitor/handler-runtime.ts
|
|
1492
|
-
const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-
|
|
1492
|
+
const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-CCT72yQb.mjs").then((n) => n.s));
|
|
1493
1493
|
const loadAcpBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/acp-binding-runtime"));
|
|
1494
1494
|
const loadSessionBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/session-binding-runtime"));
|
|
1495
|
-
const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-
|
|
1496
|
-
const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-
|
|
1495
|
+
const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-DYJrx8eq.mjs"));
|
|
1496
|
+
const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-BAf9CYmE.mjs"));
|
|
1497
1497
|
async function matrixTextWouldActivateMentions(client, text) {
|
|
1498
1498
|
const { resolveMatrixMentionsForBody } = await loadMatrixSendModule();
|
|
1499
1499
|
const mentions = await resolveMatrixMentionsForBody({
|
|
@@ -3576,10 +3576,10 @@ function shouldPromoteRecentInviteRoom(params) {
|
|
|
3576
3576
|
//#endregion
|
|
3577
3577
|
//#region extensions/matrix/src/matrix/monitor/startup.ts
|
|
3578
3578
|
const loadMatrixStartupMaintenanceDeps = createLazyRuntimeModule(() => Promise.all([
|
|
3579
|
-
import("./setup-core-
|
|
3579
|
+
import("./setup-core-5sswwYZt.mjs").then((n) => n.f),
|
|
3580
3580
|
import("./device-health-Ck2YpEVN.mjs").then((n) => n.t),
|
|
3581
|
-
import("./setup-core-
|
|
3582
|
-
import("./startup-verification-
|
|
3581
|
+
import("./setup-core-5sswwYZt.mjs").then((n) => n.u),
|
|
3582
|
+
import("./startup-verification-zrBugJBv.mjs")
|
|
3583
3583
|
]).then(([configUpdateModule, deviceHealthModule, profileModule, startupVerificationModule]) => ({
|
|
3584
3584
|
updateMatrixAccountConfig: configUpdateModule.updateMatrixAccountConfig,
|
|
3585
3585
|
listStaleOpenClawMatrixDevices: deviceHealthModule.listStaleOpenClawMatrixDevices,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
|
|
2
2
|
import { i as requiresExplicitMatrixDefaultAccount, u as resolveMatrixEnvAuthReadiness } from "./account-selection-UUPhMBmu.mjs";
|
|
3
3
|
import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
4
|
-
import { a as createMatrixSetupDmPolicy, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, n as finishMatrixSetupAfterConfigWrite, o as moveSingleMatrixAccountConfigToNamedAccount, p as updateMatrixAccountConfig, v as resolveMatrixAccountAsync } from "./setup-core-
|
|
4
|
+
import { a as createMatrixSetupDmPolicy, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, n as finishMatrixSetupAfterConfigWrite, o as moveSingleMatrixAccountConfigToNamedAccount, p as updateMatrixAccountConfig, v as resolveMatrixAccountAsync } from "./setup-core-5sswwYZt.mjs";
|
|
5
5
|
import { r as isMatrixRoomId, t as isMatrixInviteAutoJoinTarget } from "./target-ids-HhcaKX1n.mjs";
|
|
6
6
|
import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-By_2hsXr.mjs";
|
|
7
7
|
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-D-W_QQjz.mjs";
|
|
@@ -87,7 +87,7 @@ async function promptMatrixAllowFrom(params) {
|
|
|
87
87
|
pending.push(part);
|
|
88
88
|
}
|
|
89
89
|
if (pending.length > 0) {
|
|
90
|
-
const { resolveMatrixTargets } = await import("./resolve-targets-
|
|
90
|
+
const { resolveMatrixTargets } = await import("./resolve-targets-DwRQnBpN.mjs").then((n) => n.n);
|
|
91
91
|
const results = await resolveMatrixTargets({
|
|
92
92
|
cfg,
|
|
93
93
|
accountId,
|
|
@@ -192,7 +192,7 @@ async function runMatrixConfigure(params) {
|
|
|
192
192
|
resolvedIds.push(cleaned);
|
|
193
193
|
continue;
|
|
194
194
|
}
|
|
195
|
-
const { listMatrixDirectoryGroupsLive } = await import("./directory-live-
|
|
195
|
+
const { listMatrixDirectoryGroupsLive } = await import("./directory-live-Brv_PC6z.mjs").then((n) => n.t);
|
|
196
196
|
const matches = await listMatrixDirectoryGroupsLive({
|
|
197
197
|
cfg: accessCfg,
|
|
198
198
|
accountId: selectedAccountId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as matrixPresentationCapabilities } from "./channel-
|
|
2
|
-
import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-
|
|
1
|
+
import { r as matrixPresentationCapabilities } from "./channel-CZJeLUuu.mjs";
|
|
2
|
+
import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-CCT72yQb.mjs";
|
|
3
3
|
import { createMessageReceiptFromOutboundResults, createReplyToFanout, resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-outbound";
|
|
4
4
|
import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
|
|
2
|
-
import { d as syncMatrixOwnProfile, p as updateMatrixAccountConfig } from "./setup-core-
|
|
2
|
+
import { d as syncMatrixOwnProfile, p as updateMatrixAccountConfig } from "./setup-core-5sswwYZt.mjs";
|
|
3
3
|
import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
|
|
4
|
-
import { l as resolveMatrixAuthContext } from "./client-
|
|
5
|
-
import { n as withResolvedActionClient } from "./client-
|
|
4
|
+
import { l as resolveMatrixAuthContext } from "./client-CnPiPhTg.mjs";
|
|
5
|
+
import { n as withResolvedActionClient } from "./client-CsgjDjyA.mjs";
|
|
6
6
|
import { buildOutboundMediaLoadOptions } from "openclaw/plugin-sdk/media-runtime";
|
|
7
7
|
import { resolveOutboundMediaAccessForConfig } from "openclaw/plugin-sdk/outbound-media";
|
|
8
8
|
//#region extensions/matrix/src/matrix/actions/profile.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
2
|
-
import { a as resolveMatrixInboundRouteAsync, o as resolveMatrixThreadRouting } from "./channel-
|
|
2
|
+
import { a as resolveMatrixInboundRouteAsync, o as resolveMatrixThreadRouting } from "./channel-CZJeLUuu.mjs";
|
|
3
3
|
import { c as extractMatrixReactionAnnotation } from "./send-currentness-DGxiiBn9.mjs";
|
|
4
4
|
import { p as resolveMatrixThreadRootId } from "./direct-management-Dp1giZ34.mjs";
|
|
5
5
|
import { i as resolveMatrixApprovalReactionTargetWithPersistence, o as unregisterMatrixApprovalReactionTargetsForApproval } from "./approval-reactions-BazmsDbe.mjs";
|
|
@@ -8,9 +8,9 @@ import { isApprovalNotFoundError } from "openclaw/plugin-sdk/error-runtime";
|
|
|
8
8
|
import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
|
|
9
9
|
import { getSessionBindingService } from "openclaw/plugin-sdk/session-binding-runtime";
|
|
10
10
|
//#region extensions/matrix/src/matrix/monitor/reaction-events.ts
|
|
11
|
-
const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./channel-
|
|
11
|
+
const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./channel-CZJeLUuu.mjs").then((n) => n.s));
|
|
12
12
|
const loadExecApprovalResolver = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/approval-gateway-runtime"));
|
|
13
|
-
const loadMatrixSend = createLazyRuntimeModule(() => import("./send-
|
|
13
|
+
const loadMatrixSend = createLazyRuntimeModule(() => import("./send-CCT72yQb.mjs").then((n) => n.s));
|
|
14
14
|
function buildMatrixApprovalTerminalText(result) {
|
|
15
15
|
const approval = result.approval;
|
|
16
16
|
const terminalLabel = approval.status === "allowed" ? approval.decision === "allow-always" ? "Allowed always" : "Allowed once" : approval.status === "denied" ? "Denied" : approval.status === "expired" ? "Expired" : "Cancelled";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
|
|
2
2
|
import { i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId } from "./target-ids-HhcaKX1n.mjs";
|
|
3
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
3
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-Brv_PC6z.mjs";
|
|
4
4
|
import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
//#region extensions/matrix/src/resolve-targets.ts
|
|
6
6
|
var resolve_targets_exports = /* @__PURE__ */ __exportAll({ resolveMatrixTargets: () => resolveMatrixTargets });
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
|
|
2
1
|
import { extractErrorCode } from "openclaw/plugin-sdk/error-runtime";
|
|
3
2
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
3
|
import path from "node:path";
|
|
5
|
-
import os from "node:os";
|
|
6
4
|
import fs from "node:fs/promises";
|
|
7
5
|
//#region extensions/matrix/src/matrix/chunked-state.ts
|
|
8
6
|
function chunkMatrixStateJson(value, maxBytes, maxChunks, limitMessage) {
|
|
@@ -49,40 +47,6 @@ async function pruneMatrixStateChunks(store, retainedKeys, chunkKeyPrefix) {
|
|
|
49
47
|
for (const row of await store.entries()) if (row.key.startsWith(chunkKeyPrefix) && !nextChunkKeys.has(row.key)) await store.delete(row.key);
|
|
50
48
|
}
|
|
51
49
|
//#endregion
|
|
52
|
-
//#region extensions/matrix/src/matrix/sqlite-state.ts
|
|
53
|
-
function resolveStateDirOverride(options) {
|
|
54
|
-
if (!options) return;
|
|
55
|
-
return options.stateDir || getMatrixRuntime().state.resolveStateDir(options.env ?? process.env, os.homedir);
|
|
56
|
-
}
|
|
57
|
-
function resolveMatrixSqliteStateKey(options) {
|
|
58
|
-
return resolveStateDirOverride(options) ?? "";
|
|
59
|
-
}
|
|
60
|
-
function resolveMatrixSqliteStateEnv(options) {
|
|
61
|
-
const stateDir = resolveStateDirOverride(options);
|
|
62
|
-
if (!stateDir) return options?.env;
|
|
63
|
-
return {
|
|
64
|
-
...options?.env ?? process.env,
|
|
65
|
-
OPENCLAW_STATE_DIR: stateDir
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
async function updateMatrixKeyedState(store, key, update, onUndefined = "keep") {
|
|
69
|
-
let observation = await store.observe(key);
|
|
70
|
-
for (;;) {
|
|
71
|
-
const value = update(observation.value);
|
|
72
|
-
if (value === void 0 && onUndefined === "skip") return false;
|
|
73
|
-
const result = await store.compareAndApply(key, observation.comparison, value === void 0 ? {
|
|
74
|
-
operation: "update",
|
|
75
|
-
action: "keep"
|
|
76
|
-
} : {
|
|
77
|
-
operation: "update",
|
|
78
|
-
action: "set",
|
|
79
|
-
value
|
|
80
|
-
});
|
|
81
|
-
if (result.status !== "conflict") return true;
|
|
82
|
-
observation = result.current;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
//#endregion
|
|
86
50
|
//#region extensions/matrix/src/matrix/retired-state.ts
|
|
87
51
|
const RETIRED_MATRIX_STATE_FILENAMES = /* @__PURE__ */ new Set([
|
|
88
52
|
"thread-bindings.json",
|
|
@@ -110,4 +74,4 @@ async function assertMatrixSupportedStateFile(filePath) {
|
|
|
110
74
|
throw new Error(describeRetiredMatrixState(filePath));
|
|
111
75
|
}
|
|
112
76
|
//#endregion
|
|
113
|
-
export { describeRetiredMatrixState as a,
|
|
77
|
+
export { describeRetiredMatrixState as a, readMatrixStateChunks as c, assertMatrixSupportedStateRoot as i, writeMatrixStateChunks as l, RETIRED_MATRIX_STATE_REMEDIATION as n, chunkMatrixStateJson as o, assertMatrixSupportedStateFile as r, pruneMatrixStateChunks as s, RETIRED_MATRIX_STATE_FILENAMES as t };
|