@openclaw/matrix 2026.7.1-beta.1 → 2026.7.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +4 -4
- package/dist/{approval-handler.runtime-GpL8SxX2.js → approval-handler.runtime-DzpLXVdc.js} +4 -4
- package/dist/{approval-ids-DIKCZewR.js → approval-ids-R834n6m3.js} +1 -1
- package/dist/{approval-reaction-auth-DhBxqiQQ.js → approval-reaction-auth-eAqCXUFG.js} +2 -2
- package/dist/{channel-CGc6D4tf.js → channel-KcNo9qtl.js} +11 -15
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-CPu_uwsn.js → channel.runtime-DtsGVgZj.js} +7 -10
- package/dist/{cli-BfwYmyEc.js → cli-Clvpw_8I.js} +10 -17
- package/dist/{cli-metadata-FO-fJqf0.js → cli-metadata-D3N0Avnt.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-CVluBRDh.js → client-BQz5GcYr.js} +2 -2
- package/dist/{client-Cb5ILtpE.js → client-D-5GVz_D.js} +2 -2
- package/dist/{client-bootstrap-1cbA9aSs.js → client-bootstrap-CBJciU5u.js} +6 -9
- package/dist/{config-schema-DFRmUTAG.js → config-schema-Dn-fHID8.js} +1 -1
- package/dist/contract-api.js +2 -2
- package/dist/{create-client-8YNurIAr.js → create-client-DhGid8FE.js} +6 -9
- package/dist/{credentials-write.runtime-cZhhyGAZ.js → credentials-write.runtime-5PDPPG9f.js} +2 -5
- package/dist/{crypto-runtime-hMMmqNr1.js → crypto-runtime-B7kyrTL0.js} +7 -5
- package/dist/{directory-live-pjbvjDz2.js → directory-live-Ctu4whZK.js} +2 -2
- package/dist/{draft-stream-Djasj65z.js → draft-stream-j71tSUu-.js} +1 -1
- package/dist/index.js +3 -6
- package/dist/{media-text-CUFW_BP5.js → media-text-XO4VaezT.js} +1 -1
- package/dist/{messages-C1dIZHKy.js → messages-nQLGGa1r.js} +3 -3
- package/dist/{monitor-BMGnvIbg.js → monitor-k3Sko8qt.js} +35 -65
- package/dist/plugin-entry.handlers.runtime.js +2 -5
- package/dist/probe.runtime-BED7DXis.js +3 -0
- package/dist/{profile-update-BaEk4COs.js → profile-update-DIOAhezh.js} +2 -2
- package/dist/{reaction-events-n69MjKzG.js → reaction-events-BDsbR82F.js} +3 -10
- package/dist/{resolve-targets-DyGW9WzC.js → resolve-targets-BbrinjHd.js} +1 -1
- package/dist/{resolver.runtime-DhZV369r.js → resolver.runtime-B3N7k_6-.js} +1 -1
- package/dist/{sdk-DOxaiBRE.js → sdk-eyqOqjmn.js} +6 -9
- package/dist/{send-C0NwpZ-c.js → send-D0hpevF-.js} +2 -5
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/{setup-bootstrap-DbWPVINS.js → setup-bootstrap-Ihb_DM2a.js} +2 -2
- package/dist/{setup-core-DVkrIoax.js → setup-core-D2BQs8w1.js} +1 -1
- package/dist/setup-plugin-api.js +3 -3
- package/dist/{setup-surface-CN7DEvpg.js → setup-surface-1qf1LZIP.js} +4 -4
- package/dist/{shared-iLI-9tb9.js → shared-BGcaBMK3.js} +14 -30
- package/dist/subagent-hooks-api.js +2 -5
- package/dist/{thread-bindings-D73QFTXW.js → thread-bindings-BnuBS0VH.js} +1 -1
- package/dist/{tool-actions.runtime-BCCPq_aO.js → tool-actions.runtime-BeUveYxV.js} +6 -6
- package/dist/{verification-C0KvXyHK.js → verification-CNw2K4uT.js} +1 -1
- package/npm-shrinkwrap.json +3 -3
- package/package.json +4 -4
- package/dist/probe.runtime-DFt7PIoE.js +0 -3
package/dist/api.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as resolveMatrixDefaultOrOnlyAccountId, i as resolveMatrixChannelConfig, n as requiresExplicitMatrixDefaultAccount, r as resolveConfiguredMatrixAccountIds, t as findMatrixAccountEntry } from "./account-selection-Bv_ZuOu4.js";
|
|
2
2
|
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./env-vars-KzaYveuy.js";
|
|
3
3
|
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-BWo_ZEMC.js";
|
|
4
|
-
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
5
|
-
import { t as matrixPlugin } from "./channel-
|
|
4
|
+
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-D2BQs8w1.js";
|
|
5
|
+
import { t as matrixPlugin } from "./channel-KcNo9qtl.js";
|
|
6
6
|
import { d as setMatrixThreadBindingIdleTimeoutBySessionKey, n as getMatrixThreadBindingManager, p as setMatrixThreadBindingMaxAgeBySessionKey, s as resetMatrixThreadBindingsForTests } from "./thread-bindings-shared-CKnY4LSd.js";
|
|
7
|
-
import { n as matrixOnboardingAdapter } from "./setup-surface-
|
|
8
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
7
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-1qf1LZIP.js";
|
|
8
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-BnuBS0VH.js";
|
|
9
9
|
//#region extensions/matrix/api.ts
|
|
10
10
|
const matrixSessionBindingAdapterChannels = ["matrix"];
|
|
11
11
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as resolveMatrixAccount } from "./setup-core-
|
|
2
|
-
import { _ as shouldHandleMatrixApprovalRequest, g as isMatrixAnyApprovalClientEnabled } from "./channel-
|
|
1
|
+
import { g as resolveMatrixAccount } from "./setup-core-D2BQs8w1.js";
|
|
2
|
+
import { _ as shouldHandleMatrixApprovalRequest, g as isMatrixAnyApprovalClientEnabled } from "./channel-KcNo9qtl.js";
|
|
3
3
|
import { a as resolveMatrixTargetIdentity } from "./target-ids-B-5aQxwn.js";
|
|
4
|
-
import { a as sendMessageMatrix, i as reactMatrixMessage, p as repairMatrixDirectRooms, s as sendSingleTextMessageMatrix } from "./send-
|
|
4
|
+
import { a as sendMessageMatrix, i as reactMatrixMessage, p as repairMatrixDirectRooms, s as sendSingleTextMessageMatrix } from "./send-D0hpevF-.js";
|
|
5
5
|
import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-BRGQgOu2.js";
|
|
6
|
-
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-
|
|
6
|
+
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-nQLGGa1r.js";
|
|
7
7
|
import { listMessageReceiptPlatformIds, resolveMessageReceiptPrimaryId } from "openclaw/plugin-sdk/channel-outbound";
|
|
8
8
|
import { normalizeUniqueStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
9
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as normalizeMatrixUserId } from "./config-schema-
|
|
1
|
+
import { a as normalizeMatrixUserId } from "./config-schema-Dn-fHID8.js";
|
|
2
2
|
//#region extensions/matrix/src/approval-ids.ts
|
|
3
3
|
function normalizeMatrixApproverId(value) {
|
|
4
4
|
return normalizeMatrixUserId(String(value)) || void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as resolveMatrixAccount } from "./setup-core-
|
|
2
|
-
import { t as normalizeMatrixApproverId } from "./approval-ids-
|
|
1
|
+
import { g as resolveMatrixAccount } from "./setup-core-D2BQs8w1.js";
|
|
2
|
+
import { t as normalizeMatrixApproverId } from "./approval-ids-R834n6m3.js";
|
|
3
3
|
import { resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
4
4
|
//#region extensions/matrix/src/approval-reaction-auth.ts
|
|
5
5
|
function normalizeMatrixExecApproverId(value) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-Bv_ZuOu4.js";
|
|
2
2
|
import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
|
|
3
|
-
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, n as matrixSetupAdapter, p as listMatrixAccountIds, t as createMatrixSetupWizardProxy, u as namedAccountPromotionKeys } from "./setup-core-
|
|
4
|
-
import { a as normalizeMatrixUserId, n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-
|
|
5
|
-
import { t as normalizeMatrixApproverId } from "./approval-ids-
|
|
3
|
+
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, n as matrixSetupAdapter, p as listMatrixAccountIds, t as createMatrixSetupWizardProxy, u as namedAccountPromotionKeys } from "./setup-core-D2BQs8w1.js";
|
|
4
|
+
import { a as normalizeMatrixUserId, n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-Dn-fHID8.js";
|
|
5
|
+
import { t as normalizeMatrixApproverId } from "./approval-ids-R834n6m3.js";
|
|
6
6
|
import { a as resolveMatrixTargetIdentity, i as resolveMatrixDirectUserId, n as normalizeMatrixMessagingTarget, r as normalizeMatrixResolvableTarget } from "./target-ids-B-5aQxwn.js";
|
|
7
7
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
8
8
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-Dq8OZWHF.js";
|
|
@@ -11,6 +11,7 @@ import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries
|
|
|
11
11
|
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-Ctlb_rZl.js";
|
|
12
12
|
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-YcCrSjbE.js";
|
|
13
13
|
import { n as resolveMatrixInboundConversation } from "./thread-binding-api-DRbBZlhS.js";
|
|
14
|
+
import { createLazyRuntimeModule, createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
14
15
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
15
16
|
import { adaptScopedAccountAccessor, createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
16
17
|
import { buildChannelOutboundSessionRoute, buildThreadAwareOutboundSessionRoute, createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
@@ -18,7 +19,6 @@ import { createChannelMessageAdapterFromOutbound, createReplyPrefixOptions, crea
|
|
|
18
19
|
import { createAllowlistProviderOpenWarningCollector, projectAccountConfigWarningCollector } from "openclaw/plugin-sdk/channel-policy";
|
|
19
20
|
import { createScopedAccountReplyToModeResolver } from "openclaw/plugin-sdk/conversation-runtime";
|
|
20
21
|
import { createChannelDirectoryAdapter, createResolvedDirectoryEntriesLister, createRuntimeDirectoryLiveAdapter } from "openclaw/plugin-sdk/directory-runtime";
|
|
21
|
-
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
22
22
|
import { buildProbeChannelStatusSummary, collectStatusIssuesFromLastError, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
23
23
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
24
24
|
import { chunkTextForOutbound, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
@@ -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-BeUveYxV.js");
|
|
133
133
|
const { action, params, cfg, accountId, mediaLocalRoots } = ctx;
|
|
134
134
|
const dispatch = async (actionParams) => await handleMatrixAction({
|
|
135
135
|
...actionParams,
|
|
@@ -594,7 +594,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
|
|
|
594
594
|
accountId,
|
|
595
595
|
request
|
|
596
596
|
}),
|
|
597
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
597
|
+
load: async () => (await import("./approval-handler.runtime-DzpLXVdc.js")).matrixApprovalNativeRuntime
|
|
598
598
|
})
|
|
599
599
|
});
|
|
600
600
|
const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
|
|
@@ -756,7 +756,7 @@ function resolveMatrixGroupToolPolicy(params) {
|
|
|
756
756
|
}
|
|
757
757
|
//#endregion
|
|
758
758
|
//#region extensions/matrix/src/resolver.ts
|
|
759
|
-
const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-
|
|
759
|
+
const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-B3N7k_6-.js"), "matrixResolverRuntime");
|
|
760
760
|
const matrixResolverAdapter = { resolveTargets: async ({ cfg, accountId, inputs, kind, runtime }) => (await loadMatrixChannelRuntime$1()).resolveMatrixTargets({
|
|
761
761
|
cfg,
|
|
762
762
|
accountId,
|
|
@@ -944,13 +944,9 @@ async function runMatrixStartupMaintenance(params) {
|
|
|
944
944
|
//#endregion
|
|
945
945
|
//#region extensions/matrix/src/channel.ts
|
|
946
946
|
let matrixStartupLock = Promise.resolve();
|
|
947
|
-
const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-
|
|
948
|
-
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
949
|
-
|
|
950
|
-
const loadMatrixDoctorModule = async () => {
|
|
951
|
-
matrixDoctorModulePromise ??= import("./doctor-BRSDNU5C.js");
|
|
952
|
-
return await matrixDoctorModulePromise;
|
|
953
|
-
};
|
|
947
|
+
const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-1qf1LZIP.js").then((n) => n.t), "matrixSetupWizard");
|
|
948
|
+
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DtsGVgZj.js"), "matrixChannelRuntime");
|
|
949
|
+
const loadMatrixDoctorModule = createLazyRuntimeModule(() => import("./doctor-BRSDNU5C.js"));
|
|
954
950
|
const meta = {
|
|
955
951
|
id: "matrix",
|
|
956
952
|
label: "Matrix",
|
|
@@ -1322,7 +1318,7 @@ const matrixPlugin = createChatChannelPlugin({
|
|
|
1322
1318
|
await previousLock;
|
|
1323
1319
|
let monitorMatrixProvider;
|
|
1324
1320
|
try {
|
|
1325
|
-
monitorMatrixProvider = (await import("./monitor-
|
|
1321
|
+
monitorMatrixProvider = (await import("./monitor-k3Sko8qt.js")).monitorMatrixProvider;
|
|
1326
1322
|
} finally {
|
|
1327
1323
|
releaseLock();
|
|
1328
1324
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as matrixPlugin } from "./channel-
|
|
1
|
+
import { t as matrixPlugin } from "./channel-KcNo9qtl.js";
|
|
2
2
|
export { matrixPlugin };
|
|
@@ -1,21 +1,18 @@
|
|
|
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-D0hpevF-.js";
|
|
2
2
|
import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
|
|
3
|
-
import { f as resolveMatrixAuth } from "./shared-
|
|
4
|
-
import "./client-
|
|
5
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
3
|
+
import { f as resolveMatrixAuth } from "./shared-BGcaBMK3.js";
|
|
4
|
+
import "./client-D-5GVz_D.js";
|
|
5
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-Ctu4whZK.js";
|
|
6
6
|
import { f as resolveOutboundSendDep, n as chunkTextForOutbound } from "./runtime-api-CsBoesCU.js";
|
|
7
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
7
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-BbrinjHd.js";
|
|
8
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
8
9
|
import { createReplyToFanout } from "openclaw/plugin-sdk/channel-outbound";
|
|
9
10
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
10
11
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
11
12
|
import { renderMessagePresentationFallbackText } from "openclaw/plugin-sdk/interactive-runtime";
|
|
12
13
|
import { resolvePayloadMediaUrls } from "openclaw/plugin-sdk/reply-payload";
|
|
13
14
|
//#region extensions/matrix/src/matrix/probe.ts
|
|
14
|
-
|
|
15
|
-
async function loadMatrixProbeRuntimeDeps() {
|
|
16
|
-
matrixProbeRuntimeDepsPromise ??= import("./probe.runtime-DFt7PIoE.js").then((runtimeModule) => ({ createMatrixClient: runtimeModule.createMatrixClient }));
|
|
17
|
-
return await matrixProbeRuntimeDepsPromise;
|
|
18
|
-
}
|
|
15
|
+
const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./probe.runtime-BED7DXis.js").then((runtimeModule) => ({ createMatrixClient: runtimeModule.createMatrixClient })));
|
|
19
16
|
async function probeMatrix(params) {
|
|
20
17
|
const started = Date.now();
|
|
21
18
|
const result = {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
|
|
2
2
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
3
|
-
import { c as resolveMatrixConfigPath, g as resolveMatrixAccount, l as updateMatrixAccountConfig, n as matrixSetupAdapter } from "./setup-core-
|
|
3
|
+
import { c as resolveMatrixConfigPath, g as resolveMatrixAccount, l as updateMatrixAccountConfig, n as matrixSetupAdapter } from "./setup-core-D2BQs8w1.js";
|
|
4
4
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
5
|
-
import { n as withResolvedActionClient } from "./client-
|
|
6
|
-
import { p as resolveMatrixAuthContext } from "./shared-
|
|
7
|
-
import "./client-
|
|
5
|
+
import { n as withResolvedActionClient } from "./client-BQz5GcYr.js";
|
|
6
|
+
import { p as resolveMatrixAuthContext } from "./shared-BGcaBMK3.js";
|
|
7
|
+
import "./client-D-5GVz_D.js";
|
|
8
8
|
import { i as formatZonedTimestamp } from "./runtime-api-CsBoesCU.js";
|
|
9
9
|
import { isOpenClawManagedMatrixDevice, summarizeMatrixDeviceHealth } from "./device-health-D4LBxuPq.js";
|
|
10
|
-
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-
|
|
11
|
-
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-
|
|
10
|
+
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-DIOAhezh.js";
|
|
11
|
+
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-CNw2K4uT.js";
|
|
12
12
|
import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Dm_YMVFT.js";
|
|
13
13
|
import { setMatrixSdkConsoleLogging, setMatrixSdkLogMode } from "./logging-QH-48Gr6.js";
|
|
14
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
14
15
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
15
16
|
import { parseStrictInteger, timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
16
17
|
//#region extensions/matrix/src/matrix/actions/devices.ts
|
|
@@ -35,16 +36,8 @@ async function pruneMatrixStaleGatewayDevices(opts = {}) {
|
|
|
35
36
|
//#endregion
|
|
36
37
|
//#region extensions/matrix/src/cli.ts
|
|
37
38
|
let matrixCliExitScheduled = false;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
function loadMatrixActionClientModule() {
|
|
41
|
-
matrixActionClientModulePromise ??= import("./client-CVluBRDh.js").then((n) => n.t);
|
|
42
|
-
return matrixActionClientModulePromise;
|
|
43
|
-
}
|
|
44
|
-
function loadMatrixDirectManagementModule() {
|
|
45
|
-
matrixDirectManagementModulePromise ??= import("./send-C0NwpZ-c.js").then((n) => n.d);
|
|
46
|
-
return matrixDirectManagementModulePromise;
|
|
47
|
-
}
|
|
39
|
+
const loadMatrixActionClientModule = createLazyRuntimeModule(() => import("./client-BQz5GcYr.js").then((n) => n.t));
|
|
40
|
+
const loadMatrixDirectManagementModule = createLazyRuntimeModule(() => import("./send-D0hpevF-.js").then((n) => n.d));
|
|
48
41
|
function scheduleMatrixCliExit() {
|
|
49
42
|
if (matrixCliExitScheduled || process.env.VITEST) return;
|
|
50
43
|
matrixCliExitScheduled = true;
|
|
@@ -212,7 +205,7 @@ async function addMatrixAccount(params) {
|
|
|
212
205
|
backupVersion: null
|
|
213
206
|
};
|
|
214
207
|
if (accountConfig.encryption === true) {
|
|
215
|
-
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-
|
|
208
|
+
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-Ihb_DM2a.js");
|
|
216
209
|
verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
|
|
217
210
|
previousCfg: cfg,
|
|
218
211
|
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-Clvpw_8I.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-D3N0Avnt.js";
|
|
2
2
|
export { cli_metadata_default as default, registerMatrixCliMetadata };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { u as resolveMatrixRoomId } from "./send-
|
|
3
|
-
import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-
|
|
2
|
+
import { u as resolveMatrixRoomId } from "./send-D0hpevF-.js";
|
|
3
|
+
import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-CBJciU5u.js";
|
|
4
4
|
//#region extensions/matrix/src/matrix/actions/client.ts
|
|
5
5
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
withResolvedActionClient: () => withResolvedActionClient,
|
|
@@ -3,8 +3,8 @@ import { t as getMatrixScopedEnvVarNames } from "./env-vars-KzaYveuy.js";
|
|
|
3
3
|
import { i as resolveScopedMatrixEnvConfig, r as resolveMatrixEnvAuthReadiness, t as hasReadyMatrixEnvAuth } from "./env-auth-DIzOApj0.js";
|
|
4
4
|
import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
|
|
5
5
|
import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
|
|
6
|
-
import { d as backfillMatrixAuthDeviceIdAfterStartup, f as resolveMatrixAuth, i as resolveSharedMatrixClient, m as resolveMatrixConfigForAccount, n as releaseSharedClientInstance, o as stopSharedClientForAccount, p as resolveMatrixAuthContext, r as removeSharedClientInstance, s as stopSharedClientInstance, t as acquireSharedMatrixClient } from "./shared-
|
|
7
|
-
import { t as createMatrixClient } from "./create-client-
|
|
6
|
+
import { d as backfillMatrixAuthDeviceIdAfterStartup, f as resolveMatrixAuth, i as resolveSharedMatrixClient, m as resolveMatrixConfigForAccount, n as releaseSharedClientInstance, o as stopSharedClientForAccount, p as resolveMatrixAuthContext, r as removeSharedClientInstance, s as stopSharedClientInstance, t as acquireSharedMatrixClient } from "./shared-BGcaBMK3.js";
|
|
7
|
+
import { t as createMatrixClient } from "./create-client-DhGid8FE.js";
|
|
8
8
|
//#region extensions/matrix/src/matrix/client.ts
|
|
9
9
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
10
10
|
acquireSharedMatrixClient: () => acquireSharedMatrixClient,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
2
|
import { t as getActiveMatrixClient } from "./active-client-DXvz2gCo.js";
|
|
3
3
|
import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
|
|
4
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
4
5
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
5
6
|
//#region extensions/matrix/src/matrix/client-bootstrap.ts
|
|
6
7
|
var client_bootstrap_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -8,15 +9,11 @@ var client_bootstrap_exports = /* @__PURE__ */ __exportAll({
|
|
|
8
9
|
stopResolvedRuntimeMatrixClient: () => stopResolvedRuntimeMatrixClient,
|
|
9
10
|
withResolvedRuntimeMatrixClient: () => withResolvedRuntimeMatrixClient
|
|
10
11
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
releaseSharedClientInstance: sharedModule.releaseSharedClientInstance
|
|
17
|
-
}));
|
|
18
|
-
return await matrixSharedClientRuntimeDepsPromise;
|
|
19
|
-
}
|
|
12
|
+
const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => Promise.all([import("./client-D-5GVz_D.js").then((n) => n.t), import("./shared-BGcaBMK3.js").then((n) => n.a)]).then(([clientModule, sharedModule]) => ({
|
|
13
|
+
acquireSharedMatrixClient: clientModule.acquireSharedMatrixClient,
|
|
14
|
+
resolveMatrixAuthContext: clientModule.resolveMatrixAuthContext,
|
|
15
|
+
releaseSharedClientInstance: sharedModule.releaseSharedClientInstance
|
|
16
|
+
})));
|
|
20
17
|
async function ensureResolvedClientReadiness(params) {
|
|
21
18
|
if (params.readiness === "started") {
|
|
22
19
|
await params.client.start();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
|
|
2
|
-
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, p as listMatrixAccountIds } from "./setup-core-
|
|
2
|
+
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, p as listMatrixAccountIds } from "./setup-core-D2BQs8w1.js";
|
|
3
3
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
4
4
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1 } from "openclaw/plugin-sdk/account-id";
|
package/dist/contract-api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, n as matrixSetupAdapter, u as namedAccountPromotionKeys } from "./setup-core-
|
|
2
|
-
import { n as matrixOnboardingAdapter } from "./setup-surface-
|
|
1
|
+
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, n as matrixSetupAdapter, u as namedAccountPromotionKeys } from "./setup-core-D2BQs8w1.js";
|
|
2
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-1qf1LZIP.js";
|
|
3
3
|
export { matrixSetupAdapter, matrixOnboardingAdapter as matrixSetupWizard, namedAccountPromotionKeys, resolveSingleAccountPromotionTarget, singleAccountKeysToMove };
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
2
|
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
|
|
3
3
|
import { d as writeStorageMeta, l as resolveMatrixStoragePaths, r as maybeMigrateLegacyStorage } from "./storage-t5S-5c_5.js";
|
|
4
|
-
import "./shared-
|
|
4
|
+
import "./shared-BGcaBMK3.js";
|
|
5
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
5
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
7
|
import fs from "node:fs";
|
|
7
8
|
import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
8
9
|
//#region extensions/matrix/src/matrix/client/create-client.ts
|
|
9
10
|
var create_client_exports = /* @__PURE__ */ __exportAll({ createMatrixClient: () => createMatrixClient });
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
15
|
-
}));
|
|
16
|
-
return await matrixCreateClientRuntimeDepsPromise;
|
|
17
|
-
}
|
|
11
|
+
const loadMatrixCreateClientRuntimeDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-eyqOqjmn.js"), import("./logging-QH-48Gr6.js")]).then(([sdkModule, loggingModule]) => ({
|
|
12
|
+
MatrixClient: sdkModule.MatrixClient,
|
|
13
|
+
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
14
|
+
})));
|
|
18
15
|
async function createMatrixClient(params) {
|
|
19
16
|
const { MatrixClient, ensureMatrixSdkLoggingConfigured } = await loadMatrixCreateClientRuntimeDeps();
|
|
20
17
|
ensureMatrixSdkLoggingConfigured();
|
package/dist/{credentials-write.runtime-cZhhyGAZ.js → credentials-write.runtime-5PDPPG9f.js}
RENAMED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
1
2
|
//#region extensions/matrix/src/matrix/credentials-write.runtime.ts
|
|
2
|
-
|
|
3
|
-
function loadMatrixCredentialsRuntime() {
|
|
4
|
-
matrixCredentialsRuntimePromise ??= import("./credentials-G8lNmiME.js");
|
|
5
|
-
return matrixCredentialsRuntimePromise;
|
|
6
|
-
}
|
|
3
|
+
const loadMatrixCredentialsRuntime = createLazyRuntimeModule(() => import("./credentials-G8lNmiME.js"));
|
|
7
4
|
async function saveMatrixCredentials(...args) {
|
|
8
5
|
return (await loadMatrixCredentialsRuntime()).saveMatrixCredentials(...args);
|
|
9
6
|
}
|
|
@@ -3,6 +3,7 @@ import { t as ensureMatrixCryptoRuntime } from "./deps-D3bkh48_.js";
|
|
|
3
3
|
import { n as LogService, r as noop } from "./logger-D0GCSDQq.js";
|
|
4
4
|
import { i as restoreIdbFromDisk, n as persistIdbToDisk } from "./idb-persistence-BGY1CJ7J.js";
|
|
5
5
|
import { n as isRepairableSecretStorageAccessError } from "./recovery-key-store-BGk8c_gf.js";
|
|
6
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
6
7
|
import { resolveDateTimestampMs, resolveTimestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
7
8
|
import { MatrixEventEvent } from "matrix-js-sdk/lib/matrix.js";
|
|
8
9
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
@@ -337,13 +338,14 @@ var MatrixCryptoBootstrapper = class {
|
|
|
337
338
|
};
|
|
338
339
|
//#endregion
|
|
339
340
|
//#region extensions/matrix/src/matrix/sdk/crypto-facade.ts
|
|
340
|
-
|
|
341
|
+
const matrixCryptoNodeRuntimeLoader = createLazyRuntimeModule(() => import("./crypto-node.runtime-6Aj_ltHQ.js"));
|
|
341
342
|
async function loadMatrixCryptoNodeRuntime() {
|
|
342
|
-
|
|
343
|
-
|
|
343
|
+
try {
|
|
344
|
+
return await matrixCryptoNodeRuntimeLoader();
|
|
345
|
+
} catch (error) {
|
|
346
|
+
matrixCryptoNodeRuntimeLoader.clear();
|
|
344
347
|
throw error;
|
|
345
|
-
}
|
|
346
|
-
return await matrixCryptoNodeRuntimePromise;
|
|
348
|
+
}
|
|
347
349
|
}
|
|
348
350
|
async function loadMatrixCryptoNodeBindings() {
|
|
349
351
|
await ensureMatrixCryptoRuntime();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
2
|
import { n as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
|
|
3
|
-
import { f as resolveMatrixAuth } from "./shared-
|
|
4
|
-
import "./client-
|
|
3
|
+
import { f as resolveMatrixAuth } from "./shared-BGcaBMK3.js";
|
|
4
|
+
import "./client-D-5GVz_D.js";
|
|
5
5
|
import { t as MatrixAuthedHttpClient } from "./http-client-nSmFiVgk.js";
|
|
6
6
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
//#region extensions/matrix/src/directory-live.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix, y as MsgType } from "./send-
|
|
1
|
+
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix, y as MsgType } from "./send-D0hpevF-.js";
|
|
2
2
|
import { createDraftStreamLoop } from "openclaw/plugin-sdk/channel-outbound";
|
|
3
3
|
//#region extensions/matrix/src/matrix/draft-stream.ts
|
|
4
4
|
const DEFAULT_THROTTLE_MS = 1e3;
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { n as registerMatrixCliMetadata } from "./cli-metadata-
|
|
1
|
+
import { n as registerMatrixCliMetadata } from "./cli-metadata-D3N0Avnt.js";
|
|
2
2
|
import { registerMatrixSubagentHooks } from "./subagent-hooks-api.js";
|
|
3
3
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
4
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
4
5
|
//#region extensions/matrix/index.ts
|
|
5
|
-
|
|
6
|
-
function loadMatrixHandlersRuntimeModule() {
|
|
7
|
-
matrixHandlersRuntimePromise ??= import("./plugin-entry.handlers.runtime.js");
|
|
8
|
-
return matrixHandlersRuntimePromise;
|
|
9
|
-
}
|
|
6
|
+
const loadMatrixHandlersRuntimeModule = createLazyRuntimeModule(() => import("./plugin-entry.handlers.runtime.js"));
|
|
10
7
|
function registerMatrixFullRuntime(api) {
|
|
11
8
|
api.registerGatewayMethod("matrix.verify.recoveryKey", async (ctx) => {
|
|
12
9
|
const { handleVerifyRecoveryKey } = await loadMatrixHandlersRuntimeModule();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as formatPollResultsAsText, D as parsePollStartContent, O as resolvePollReferenceEventId, S as formatPollAsText, T as isPollStartType, w as isPollEventType, x as buildPollResultsSummary } from "./send-
|
|
1
|
+
import { C as formatPollResultsAsText, D as parsePollStartContent, O as resolvePollReferenceEventId, S as formatPollAsText, T as isPollStartType, w as isPollEventType, x as buildPollResultsSummary } from "./send-D0hpevF-.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-C47hvAF8.js";
|
|
2
|
-
import { T as isPollStartType, a as sendMessageMatrix, n as editMessageMatrix, w as isPollEventType } from "./send-
|
|
2
|
+
import { T as isPollStartType, a as sendMessageMatrix, n as editMessageMatrix, w as isPollEventType } from "./send-D0hpevF-.js";
|
|
3
3
|
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-DkrQdBSZ.js";
|
|
4
|
-
import { a as resolveMatrixMessageAttachment, l as resolveMatrixPollRootEventId, o as resolveMatrixMessageBody, s as fetchMatrixPollMessageSummary } from "./media-text-
|
|
5
|
-
import { r as withResolvedRoomAction } from "./client-
|
|
4
|
+
import { a as resolveMatrixMessageAttachment, l as resolveMatrixPollRootEventId, o as resolveMatrixMessageBody, s as fetchMatrixPollMessageSummary } from "./media-text-XO4VaezT.js";
|
|
5
|
+
import { r as withResolvedRoomAction } from "./client-BQz5GcYr.js";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import { resolveIntegerOption } from "openclaw/plugin-sdk/number-runtime";
|
|
8
8
|
//#region extensions/matrix/src/matrix/actions/limits.ts
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig, i as resolveMatrixAccountAllowlistConfig } from "./account-config-BZWN9tGS.js";
|
|
2
2
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
3
|
-
import { m as resolveConfiguredMatrixBotUserIds } from "./setup-core-
|
|
4
|
-
import { a as buildAllowlistResolutionSummary, c as createTypingCallbacks, d as logInboundDrop, f as logTypingFailure, h as toLocationContext, i as addAllowlistUserEntriesFromConfigEntry, l as formatLocationText, m as summarizeMapping, n as resolveMatrixStoredSessionMeta, o as canonicalizeAllowlistWithResolvedIds, p as patchAllowlistUsersInConfigEntries, r as resolveMatrixRoomConfig, s as createReplyPrefixOptions, u as getAgentScopedMediaLocalRoots } from "./channel-
|
|
5
|
-
import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./config-schema-
|
|
3
|
+
import { m as resolveConfiguredMatrixBotUserIds } from "./setup-core-D2BQs8w1.js";
|
|
4
|
+
import { a as buildAllowlistResolutionSummary, c as createTypingCallbacks, d as logInboundDrop, f as logTypingFailure, h as toLocationContext, i as addAllowlistUserEntriesFromConfigEntry, l as formatLocationText, m as summarizeMapping, n as resolveMatrixStoredSessionMeta, o as canonicalizeAllowlistWithResolvedIds, p as patchAllowlistUsersInConfigEntries, r as resolveMatrixRoomConfig, s as createReplyPrefixOptions, u as getAgentScopedMediaLocalRoots } from "./channel-KcNo9qtl.js";
|
|
5
|
+
import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./config-schema-Dn-fHID8.js";
|
|
6
6
|
import { t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
|
|
7
7
|
import { r as isMatrixNotFoundError, t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
8
8
|
import { O as resolveMatrixSqliteStateEnv } from "./crypto-state-store-DK2tcEyP.js";
|
|
9
9
|
import { c as resolveMatrixStateFilePath } from "./storage-t5S-5c_5.js";
|
|
10
|
-
import { D as parsePollStartContent, S as formatPollAsText, T as isPollStartType, _ as readJoinedMatrixMembers, a as sendMessageMatrix, f as promoteMatrixDirectRoomCandidate, g as isStrictDirectMembership, h as hasDirectMatrixMemberFlag, t as chunkMatrixText, v as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, w as isPollEventType } from "./send-
|
|
11
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
10
|
+
import { D as parsePollStartContent, S as formatPollAsText, T as isPollStartType, _ as readJoinedMatrixMembers, a as sendMessageMatrix, f as promoteMatrixDirectRoomCandidate, g as isStrictDirectMembership, h as hasDirectMatrixMemberFlag, t as chunkMatrixText, v as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, w as isPollEventType } from "./send-D0hpevF-.js";
|
|
11
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-BnuBS0VH.js";
|
|
12
12
|
import { n as LogService } from "./logger-D0GCSDQq.js";
|
|
13
|
-
import { a as resolveMatrixMessageAttachment, c as fetchMatrixPollSnapshot, i as isLikelyBareFilename, n as formatMatrixMediaUnavailableText, o as resolveMatrixMessageBody, r as formatMatrixMessageText, t as formatMatrixMediaTooLargeText } from "./media-text-
|
|
13
|
+
import { a as resolveMatrixMessageAttachment, c as fetchMatrixPollSnapshot, i as isLikelyBareFilename, n as formatMatrixMediaUnavailableText, o as resolveMatrixMessageBody, r as formatMatrixMessageText, t as formatMatrixMediaTooLargeText } from "./media-text-XO4VaezT.js";
|
|
14
14
|
import { n as setActiveMatrixClient } from "./active-client-DXvz2gCo.js";
|
|
15
15
|
import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
|
|
16
|
-
import { d as backfillMatrixAuthDeviceIdAfterStartup, f as resolveMatrixAuth, i as resolveSharedMatrixClient, l as isMatrixStartupAbortError, n as releaseSharedClientInstance, p as resolveMatrixAuthContext, u as throwIfMatrixStartupAborted } from "./shared-
|
|
17
|
-
import "./client-
|
|
16
|
+
import { d as backfillMatrixAuthDeviceIdAfterStartup, f as resolveMatrixAuth, i as resolveSharedMatrixClient, l as isMatrixStartupAbortError, n as releaseSharedClientInstance, p as resolveMatrixAuthContext, u as throwIfMatrixStartupAborted } from "./shared-BGcaBMK3.js";
|
|
17
|
+
import "./client-D-5GVz_D.js";
|
|
18
18
|
import { i as isMatrixMediaSizeLimitError, r as MatrixMediaSizeLimitError } from "./http-client-nSmFiVgk.js";
|
|
19
19
|
import { d as resolveDefaultGroupPolicy, h as warnMissingProviderGroupPolicyFallbackOnce, m as resolveThreadBindingMaxAgeMsForChannel, p as resolveThreadBindingIdleTimeoutMsForChannel, t as GROUP_POLICY_BLOCKED_LABEL, u as resolveAllowlistProviderRuntimeGroupPolicy } from "./runtime-api-CsBoesCU.js";
|
|
20
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
20
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-BbrinjHd.js";
|
|
21
21
|
import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-Bg3IRYoX.js";
|
|
22
22
|
import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState, t as isMatrixDisconnectedSyncState } from "./sync-state-CWbp0QSY.js";
|
|
23
23
|
import { a as EventType, i as resolveMatrixThreadRouting, n as resolveMatrixReplyToEventId, o as RelationType, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-DY6at4qJ.js";
|
|
24
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
24
25
|
import { buildChannelProgressDraftLineForEntry, createChannelProgressDraftGate, createPreviewMessageReceipt, defineFinalizableLivePreviewAdapter, deliverWithFinalizableLivePreviewAdapter, formatChannelProgressDraftLine, formatChannelProgressDraftText, isChannelProgressDraftWorkToolName, mergeChannelProgressDraftLine, normalizeChannelProgressDraftLineIdentity, resolveChannelProgressDraftMaxLines, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
|
|
25
26
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedEntries, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
26
27
|
import path from "node:path";
|
|
@@ -819,14 +820,10 @@ const matrixVerificationConstants = {
|
|
|
819
820
|
const MAX_TRACKED_VERIFICATION_EVENTS = 1024;
|
|
820
821
|
const SAS_NOTICE_RETRY_DELAY_MS = 750;
|
|
821
822
|
const VERIFICATION_EVENT_STARTUP_GRACE_MS = 3e4;
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
isStrictDirectRoom: directRoomModule.isStrictDirectRoom
|
|
827
|
-
}));
|
|
828
|
-
return await matrixDirectRoomDepsPromise;
|
|
829
|
-
}
|
|
823
|
+
const loadMatrixDirectRoomDeps = createLazyRuntimeModule(() => Promise.all([import("./send-D0hpevF-.js").then((n) => n.d), import("./send-D0hpevF-.js").then((n) => n.m)]).then(([directManagementModule, directRoomModule]) => ({
|
|
824
|
+
inspectMatrixDirectRooms: directManagementModule.inspectMatrixDirectRooms,
|
|
825
|
+
isStrictDirectRoom: directRoomModule.isStrictDirectRoom
|
|
826
|
+
})));
|
|
830
827
|
function trimMaybeString(input) {
|
|
831
828
|
if (typeof input !== "string") return null;
|
|
832
829
|
const trimmed = input.trim();
|
|
@@ -1668,11 +1665,7 @@ function resolveMentions(params) {
|
|
|
1668
1665
|
//#endregion
|
|
1669
1666
|
//#region extensions/matrix/src/matrix/monitor/preflight-audio.ts
|
|
1670
1667
|
const MATRIX_DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
|
|
1671
|
-
|
|
1672
|
-
function loadMatrixPreflightAudioRuntime() {
|
|
1673
|
-
matrixPreflightAudioRuntimePromise ??= import("./preflight-audio.runtime-BZxxQsxY.js");
|
|
1674
|
-
return matrixPreflightAudioRuntimePromise;
|
|
1675
|
-
}
|
|
1668
|
+
const loadMatrixPreflightAudioRuntime = createLazyRuntimeModule(() => import("./preflight-audio.runtime-BZxxQsxY.js"));
|
|
1676
1669
|
function formatMatrixAudioTranscript(transcript) {
|
|
1677
1670
|
return `[Audio transcript (machine-generated, untrusted)]: ${JSON.stringify(transcript)}`;
|
|
1678
1671
|
}
|
|
@@ -2229,31 +2222,11 @@ function createMatrixThreadContextResolver(params) {
|
|
|
2229
2222
|
const ALLOW_FROM_STORE_CACHE_TTL_MS = 3e4;
|
|
2230
2223
|
const PAIRING_REPLY_COOLDOWN_MS = 5 * 6e4;
|
|
2231
2224
|
const MATRIX_TOOL_PROGRESS_MAX_CHARS = 300;
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
function loadMatrixSendModule() {
|
|
2238
|
-
matrixSendModulePromise ??= import("./send-C0NwpZ-c.js").then((n) => n.l);
|
|
2239
|
-
return matrixSendModulePromise;
|
|
2240
|
-
}
|
|
2241
|
-
function loadAcpBindingRuntime() {
|
|
2242
|
-
acpBindingRuntimePromise ??= import("openclaw/plugin-sdk/acp-binding-runtime");
|
|
2243
|
-
return acpBindingRuntimePromise;
|
|
2244
|
-
}
|
|
2245
|
-
function loadSessionBindingRuntime() {
|
|
2246
|
-
sessionBindingRuntimePromise ??= import("openclaw/plugin-sdk/session-binding-runtime");
|
|
2247
|
-
return sessionBindingRuntimePromise;
|
|
2248
|
-
}
|
|
2249
|
-
function loadMatrixReactionEvents() {
|
|
2250
|
-
matrixReactionEventsPromise ??= import("./reaction-events-n69MjKzG.js");
|
|
2251
|
-
return matrixReactionEventsPromise;
|
|
2252
|
-
}
|
|
2253
|
-
function loadMatrixDraftStream() {
|
|
2254
|
-
matrixDraftStreamPromise ??= import("./draft-stream-Djasj65z.js");
|
|
2255
|
-
return matrixDraftStreamPromise;
|
|
2256
|
-
}
|
|
2225
|
+
const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-D0hpevF-.js").then((n) => n.l));
|
|
2226
|
+
const loadAcpBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/acp-binding-runtime"));
|
|
2227
|
+
const loadSessionBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/session-binding-runtime"));
|
|
2228
|
+
const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-BDsbR82F.js"));
|
|
2229
|
+
const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-j71tSUu-.js"));
|
|
2257
2230
|
async function matrixTextWouldActivateMentions(client, text) {
|
|
2258
2231
|
const { resolveMatrixMentionsForBody } = await loadMatrixSendModule();
|
|
2259
2232
|
const mentions = await resolveMatrixMentionsForBody({
|
|
@@ -3199,7 +3172,8 @@ function createMatrixRoomMessageHandler(params) {
|
|
|
3199
3172
|
access: {
|
|
3200
3173
|
...isRoom ? { mentions: {
|
|
3201
3174
|
canDetectMention: true,
|
|
3202
|
-
wasMentioned
|
|
3175
|
+
wasMentioned,
|
|
3176
|
+
requireMention: shouldRequireMention
|
|
3203
3177
|
} } : {},
|
|
3204
3178
|
commands: { authorized: commandAuthorized }
|
|
3205
3179
|
},
|
|
@@ -4146,23 +4120,19 @@ function createMatrixRoomInfoResolver(client) {
|
|
|
4146
4120
|
}
|
|
4147
4121
|
//#endregion
|
|
4148
4122
|
//#region extensions/matrix/src/matrix/monitor/startup.ts
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
ensureMatrixStartupVerification: startupVerificationModule.ensureMatrixStartupVerification
|
|
4163
|
-
}));
|
|
4164
|
-
return await matrixStartupMaintenanceDepsPromise;
|
|
4165
|
-
}
|
|
4123
|
+
const loadMatrixStartupMaintenanceDeps = createLazyRuntimeModule(() => Promise.all([
|
|
4124
|
+
import("./setup-core-D2BQs8w1.js").then((n) => n.s),
|
|
4125
|
+
import("./device-health-D4LBxuPq.js"),
|
|
4126
|
+
import("./setup-core-D2BQs8w1.js").then((n) => n.a),
|
|
4127
|
+
import("./legacy-crypto-restore-B0gcIEkE.js"),
|
|
4128
|
+
import("./startup-verification-Bd31KqLv.js")
|
|
4129
|
+
]).then(([configUpdateModule, deviceHealthModule, profileModule, legacyCryptoRestoreModule, startupVerificationModule]) => ({
|
|
4130
|
+
updateMatrixAccountConfig: configUpdateModule.updateMatrixAccountConfig,
|
|
4131
|
+
summarizeMatrixDeviceHealth: deviceHealthModule.summarizeMatrixDeviceHealth,
|
|
4132
|
+
syncMatrixOwnProfile: profileModule.syncMatrixOwnProfile,
|
|
4133
|
+
maybeRestoreLegacyMatrixBackup: legacyCryptoRestoreModule.maybeRestoreLegacyMatrixBackup,
|
|
4134
|
+
ensureMatrixStartupVerification: startupVerificationModule.ensureMatrixStartupVerification
|
|
4135
|
+
})));
|
|
4166
4136
|
async function runMatrixStartupMaintenance(params, deps) {
|
|
4167
4137
|
const runtimeDeps = deps ?? await loadMatrixStartupMaintenanceDeps();
|
|
4168
4138
|
throwIfMatrixStartupAborted(params.abortSignal);
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
2
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
2
3
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
4
|
//#region extensions/matrix/src/plugin-entry.runtime.ts
|
|
4
|
-
|
|
5
|
-
function loadMatrixVerificationRuntime() {
|
|
6
|
-
matrixVerificationRuntimePromise ??= import("./verification-C0KvXyHK.js").then((n) => n.y);
|
|
7
|
-
return matrixVerificationRuntimePromise;
|
|
8
|
-
}
|
|
5
|
+
const loadMatrixVerificationRuntime = createLazyRuntimeModule(() => import("./verification-CNw2K4uT.js").then((n) => n.y));
|
|
9
6
|
function sendError(respond, err) {
|
|
10
7
|
respond(false, { error: formatMatrixErrorMessage(err) });
|
|
11
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
|
-
import { c as resolveMatrixConfigPath, l as updateMatrixAccountConfig, o as syncMatrixOwnProfile } from "./setup-core-
|
|
3
|
-
import { n as withResolvedActionClient } from "./client-
|
|
2
|
+
import { c as resolveMatrixConfigPath, l as updateMatrixAccountConfig, o as syncMatrixOwnProfile } from "./setup-core-D2BQs8w1.js";
|
|
3
|
+
import { n as withResolvedActionClient } from "./client-BQz5GcYr.js";
|
|
4
4
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
5
5
|
//#region extensions/matrix/src/matrix/actions/profile.ts
|
|
6
6
|
async function updateMatrixOwnProfile(opts = {}) {
|
|
@@ -2,18 +2,11 @@ import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
|
|
|
2
2
|
import { a as extractMatrixReactionAnnotation } from "./reaction-common-DkrQdBSZ.js";
|
|
3
3
|
import { a as unregisterMatrixApprovalReactionTarget, i as resolveMatrixApprovalReactionTargetWithPersistence } from "./approval-reactions-BRGQgOu2.js";
|
|
4
4
|
import { i as resolveMatrixThreadRouting, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-DY6at4qJ.js";
|
|
5
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
5
6
|
import { getSessionBindingService } from "openclaw/plugin-sdk/session-binding-runtime";
|
|
6
7
|
//#region extensions/matrix/src/matrix/monitor/reaction-events.ts
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function loadApprovalReactionAuth() {
|
|
10
|
-
approvalReactionAuthPromise ??= import("./approval-reaction-auth-DhBxqiQQ.js");
|
|
11
|
-
return approvalReactionAuthPromise;
|
|
12
|
-
}
|
|
13
|
-
function loadExecApprovalResolver() {
|
|
14
|
-
execApprovalResolverPromise ??= import("./exec-approval-resolver-f9j6staN.js");
|
|
15
|
-
return execApprovalResolverPromise;
|
|
16
|
-
}
|
|
8
|
+
const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./approval-reaction-auth-eAqCXUFG.js"));
|
|
9
|
+
const loadExecApprovalResolver = createLazyRuntimeModule(() => import("./exec-approval-resolver-f9j6staN.js"));
|
|
17
10
|
function resolveMatrixReactionNotificationMode(params) {
|
|
18
11
|
const matrixConfig = params.cfg.channels?.matrix;
|
|
19
12
|
return resolveMatrixAccountConfig({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
2
|
import { n as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
|
|
3
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
3
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-Ctu4whZK.js";
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
1
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-BbrinjHd.js";
|
|
2
2
|
//#region extensions/matrix/src/resolver.runtime.ts
|
|
3
3
|
const matrixResolverRuntime = { resolveMatrixTargets };
|
|
4
4
|
//#endregion
|
|
@@ -2,12 +2,13 @@ import { n as formatMatrixErrorReason, r as isMatrixNotFoundError, t as formatMa
|
|
|
2
2
|
import { n as LogService, r as noop, t as ConsoleLogger } from "./logger-D0GCSDQq.js";
|
|
3
3
|
import { t as SqliteBackedMatrixSyncStore } from "./file-sync-store-BWLVB01Y.js";
|
|
4
4
|
import { t as MATRIX_IDB_PERSIST_INTERVAL_MS } from "./idb-persistence-lock-DAJ49nZX.js";
|
|
5
|
-
import { c as createMatrixStartupAbortError, u as throwIfMatrixStartupAborted } from "./shared-
|
|
5
|
+
import { c as createMatrixStartupAbortError, u as throwIfMatrixStartupAborted } from "./shared-BGcaBMK3.js";
|
|
6
6
|
import { a as matrixEventToRaw, n as createMatrixGuardedFetch, o as parseMxc, t as MatrixAuthedHttpClient } from "./http-client-nSmFiVgk.js";
|
|
7
7
|
import { n as resolveMatrixRoomKeyBackupReadinessError } from "./backup-health-Dm_YMVFT.js";
|
|
8
8
|
import { createMatrixJsSdkClientLogger } from "./logging-QH-48Gr6.js";
|
|
9
9
|
import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState } from "./sync-state-CWbp0QSY.js";
|
|
10
10
|
import { n as isRepairableSecretStorageAccessError, t as MatrixRecoveryKeyStore } from "./recovery-key-store-BGk8c_gf.js";
|
|
11
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
11
12
|
import { normalizeNullableString, normalizeStringEntries, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
12
13
|
import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
|
|
13
14
|
import { ClientEvent, Filter, MatrixEventEvent, Preset, createClient } from "matrix-js-sdk/lib/matrix.js";
|
|
@@ -93,14 +94,10 @@ function createMatrixExplicitBootstrapOptions(params) {
|
|
|
93
94
|
};
|
|
94
95
|
}
|
|
95
96
|
let loadedMatrixCryptoRuntime = null;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
return runtime;
|
|
101
|
-
});
|
|
102
|
-
return await matrixCryptoRuntimePromise;
|
|
103
|
-
}
|
|
97
|
+
const loadMatrixCryptoRuntime = createLazyRuntimeModule(() => import("./crypto-runtime-B7kyrTL0.js").then((runtime) => {
|
|
98
|
+
loadedMatrixCryptoRuntime = runtime;
|
|
99
|
+
return runtime;
|
|
100
|
+
}));
|
|
104
101
|
const normalizeOptionalString$1 = normalizeNullableString;
|
|
105
102
|
function isUnsupportedAuthenticatedMediaEndpointError(err) {
|
|
106
103
|
const statusCode = err?.statusCode;
|
|
@@ -3,6 +3,7 @@ import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
|
|
|
3
3
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
4
4
|
import { r as normalizeMatrixResolvableTarget, t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
|
|
5
5
|
import { n as MATRIX_REACTION_EVENT_TYPE, r as buildMatrixReactionContent, t as MATRIX_ANNOTATION_RELATION_TYPE } from "./reaction-common-DkrQdBSZ.js";
|
|
6
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
6
7
|
import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
|
|
7
8
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
9
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
@@ -227,11 +228,7 @@ function buildPollResponseContent(pollEventId, answerIds) {
|
|
|
227
228
|
}
|
|
228
229
|
//#endregion
|
|
229
230
|
//#region extensions/matrix/src/matrix/send/client.ts
|
|
230
|
-
|
|
231
|
-
async function loadMatrixSendClientRuntime() {
|
|
232
|
-
matrixSendClientRuntimePromise ??= import("./client-bootstrap-1cbA9aSs.js").then((n) => n.t);
|
|
233
|
-
return await matrixSendClientRuntimePromise;
|
|
234
|
-
}
|
|
231
|
+
const loadMatrixSendClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-CBJciU5u.js").then((n) => n.t));
|
|
235
232
|
function resolveMediaMaxBytes(accountId, cfg) {
|
|
236
233
|
if (!cfg) throw new Error("Matrix media limits requires a resolved runtime config. Load and resolve config at the command or gateway boundary, then pass cfg through the runtime path.");
|
|
237
234
|
const matrixCfg = resolveMatrixAccountConfig({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { r as setMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
2
|
import { s as resetMatrixThreadBindingsForTests } from "./thread-bindings-shared-CKnY4LSd.js";
|
|
3
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
3
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-BnuBS0VH.js";
|
|
4
4
|
export { createMatrixThreadBindingManager, resetMatrixThreadBindingsForTests, setMatrixRuntime };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
|
|
2
|
-
import "./setup-core-
|
|
2
|
+
import "./setup-core-D2BQs8w1.js";
|
|
3
3
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
4
|
-
import { n as bootstrapMatrixVerification } from "./verification-
|
|
4
|
+
import { n as bootstrapMatrixVerification } from "./verification-CNw2K4uT.js";
|
|
5
5
|
//#region extensions/matrix/src/setup-bootstrap.ts
|
|
6
6
|
async function maybeBootstrapNewEncryptedMatrixAccount(params) {
|
|
7
7
|
const accountConfig = resolveMatrixAccountConfig({
|
|
@@ -670,7 +670,7 @@ const matrixSetupAdapter = {
|
|
|
670
670
|
input
|
|
671
671
|
}),
|
|
672
672
|
afterAccountConfigWritten: async ({ previousCfg, cfg, accountId, runtime }) => {
|
|
673
|
-
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-
|
|
673
|
+
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-Ihb_DM2a.js");
|
|
674
674
|
await runMatrixSetupBootstrapAfterConfigWrite({
|
|
675
675
|
previousCfg,
|
|
676
676
|
cfg,
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as resolveMatrixAccount, n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
2
|
-
import { r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-
|
|
1
|
+
import { g as resolveMatrixAccount, n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-D2BQs8w1.js";
|
|
2
|
+
import { r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-Dn-fHID8.js";
|
|
3
3
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
4
4
|
const matrixSetupPlugin = {
|
|
5
5
|
id: "matrix",
|
|
@@ -13,7 +13,7 @@ const matrixSetupPlugin = {
|
|
|
13
13
|
order: 70,
|
|
14
14
|
quickstartAllowFrom: true
|
|
15
15
|
},
|
|
16
|
-
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-
|
|
16
|
+
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-1qf1LZIP.js").then((n) => n.t)).matrixSetupWizard })),
|
|
17
17
|
setup: matrixSetupAdapter,
|
|
18
18
|
capabilities: {
|
|
19
19
|
chatTypes: [
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
|
2
2
|
import { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-Bv_ZuOu4.js";
|
|
3
3
|
import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
|
|
4
4
|
import { r as resolveMatrixEnvAuthReadiness } from "./env-auth-DIzOApj0.js";
|
|
5
|
-
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, i as moveSingleMatrixAccountConfigToNamedAccount, l as updateMatrixAccountConfig, p as listMatrixAccountIds, r as resolveMatrixSetupDmAllowFrom } from "./setup-core-
|
|
5
|
+
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, i as moveSingleMatrixAccountConfigToNamedAccount, l as updateMatrixAccountConfig, p as listMatrixAccountIds, r as resolveMatrixSetupDmAllowFrom } from "./setup-core-D2BQs8w1.js";
|
|
6
6
|
import { t as resolveMatrixConfigFieldPath } from "./config-paths-CnREYb1Y.js";
|
|
7
7
|
import { n as validateMatrixHomeserverUrl, r as isPrivateOrLoopbackHost, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
|
|
8
8
|
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-D3bkh48_.js";
|
|
@@ -105,7 +105,7 @@ async function promptMatrixAllowFrom(params) {
|
|
|
105
105
|
pending.push(part);
|
|
106
106
|
}
|
|
107
107
|
if (pending.length > 0) {
|
|
108
|
-
const { resolveMatrixTargets } = await import("./resolve-targets-
|
|
108
|
+
const { resolveMatrixTargets } = await import("./resolve-targets-BbrinjHd.js").then((n) => n.n);
|
|
109
109
|
const results = await resolveMatrixTargets({
|
|
110
110
|
cfg,
|
|
111
111
|
accountId,
|
|
@@ -233,7 +233,7 @@ async function configureMatrixAccessPrompts(params) {
|
|
|
233
233
|
resolvedIds.push(cleaned);
|
|
234
234
|
continue;
|
|
235
235
|
}
|
|
236
|
-
const { listMatrixDirectoryGroupsLive } = await import("./directory-live-
|
|
236
|
+
const { listMatrixDirectoryGroupsLive } = await import("./directory-live-Ctu4whZK.js").then((n) => n.t);
|
|
237
237
|
const matches = await listMatrixDirectoryGroupsLive({
|
|
238
238
|
cfg: next,
|
|
239
239
|
accountId: params.accountId,
|
|
@@ -508,7 +508,7 @@ const matrixOnboardingAdapter = {
|
|
|
508
508
|
});
|
|
509
509
|
},
|
|
510
510
|
afterConfigWritten: async ({ previousCfg, cfg, accountId, runtime }) => {
|
|
511
|
-
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-
|
|
511
|
+
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-Ihb_DM2a.js");
|
|
512
512
|
await runMatrixSetupBootstrapAfterConfigWrite({
|
|
513
513
|
previousCfg,
|
|
514
514
|
cfg,
|
|
@@ -7,6 +7,7 @@ import { t as resolveMatrixConfigFieldPath } from "./config-paths-CnREYb1Y.js";
|
|
|
7
7
|
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
|
|
8
8
|
import { s as repairCurrentTokenStorageMetaDeviceId } from "./storage-t5S-5c_5.js";
|
|
9
9
|
import { n as LogService } from "./logger-D0GCSDQq.js";
|
|
10
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
10
11
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, normalizeAccountId as normalizeAccountId$1, normalizeOptionalAccountId, normalizeOptionalAccountId as normalizeOptionalAccountId$1 } from "openclaw/plugin-sdk/account-id";
|
|
11
12
|
import { coerceSecretRef, normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/secret-input-runtime";
|
|
12
13
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
@@ -15,33 +16,20 @@ import { resolveOptionalIntegerOption } from "openclaw/plugin-sdk/number-runtime
|
|
|
15
16
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
16
17
|
import { retryAsync } from "openclaw/plugin-sdk/retry-runtime";
|
|
17
18
|
//#region extensions/matrix/src/matrix/client/config.ts
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
const loadDefaultMatrixAuthClientDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-eyqOqjmn.js"), import("./logging-QH-48Gr6.js")]).then(([sdkModule, loggingModule]) => ({
|
|
20
|
+
MatrixClient: sdkModule.MatrixClient,
|
|
21
|
+
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
22
|
+
})));
|
|
22
23
|
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;
|
|
23
24
|
async function loadMatrixAuthClientDeps() {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
loadMatrixCredentials: credentialsReadModule.loadMatrixCredentials,
|
|
33
|
-
credentialsMatchConfig: credentialsReadModule.credentialsMatchConfig
|
|
34
|
-
}));
|
|
35
|
-
return await matrixCredentialsReadDepsPromise;
|
|
36
|
-
}
|
|
37
|
-
async function loadMatrixCredentialsWriteRuntime() {
|
|
38
|
-
matrixCredentialsWriteRuntimePromise ??= import("./credentials-write.runtime-cZhhyGAZ.js");
|
|
39
|
-
return await matrixCredentialsWriteRuntimePromise;
|
|
40
|
-
}
|
|
41
|
-
async function loadMatrixSecretInputDeps() {
|
|
42
|
-
matrixSecretInputDepsPromise ??= import("./config-secret-input.runtime-CwsP3--c.js").then((runtime) => ({ resolveConfiguredSecretInputString: runtime.resolveConfiguredSecretInputString }));
|
|
43
|
-
return await matrixSecretInputDepsPromise;
|
|
44
|
-
}
|
|
25
|
+
return await loadDefaultMatrixAuthClientDeps();
|
|
26
|
+
}
|
|
27
|
+
const loadMatrixCredentialsReadDeps = createLazyRuntimeModule(() => import("./credentials-read-TzTOQPOM.js").then((n) => n.r).then((credentialsReadModule) => ({
|
|
28
|
+
loadMatrixCredentials: credentialsReadModule.loadMatrixCredentials,
|
|
29
|
+
credentialsMatchConfig: credentialsReadModule.credentialsMatchConfig
|
|
30
|
+
})));
|
|
31
|
+
const loadMatrixCredentialsWriteRuntime = createLazyRuntimeModule(() => import("./credentials-write.runtime-5PDPPG9f.js"));
|
|
32
|
+
const loadMatrixSecretInputDeps = createLazyRuntimeModule(() => import("./config-secret-input.runtime-CwsP3--c.js").then((runtime) => ({ resolveConfiguredSecretInputString: runtime.resolveConfiguredSecretInputString })));
|
|
45
33
|
function shouldRetryMatrixAuthRequest(err) {
|
|
46
34
|
return MATRIX_AUTH_REQUEST_RETRY_RE.test(formatErrorMessage(err));
|
|
47
35
|
}
|
|
@@ -499,11 +487,7 @@ var shared_exports = /* @__PURE__ */ __exportAll({
|
|
|
499
487
|
stopSharedClientForAccount: () => stopSharedClientForAccount,
|
|
500
488
|
stopSharedClientInstance: () => stopSharedClientInstance
|
|
501
489
|
});
|
|
502
|
-
|
|
503
|
-
async function loadMatrixCreateClientDeps() {
|
|
504
|
-
matrixCreateClientDepsPromise ??= import("./create-client-8YNurIAr.js").then((n) => n.n).then((runtime) => ({ createMatrixClient: runtime.createMatrixClient }));
|
|
505
|
-
return await matrixCreateClientDepsPromise;
|
|
506
|
-
}
|
|
490
|
+
const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-DhGid8FE.js").then((n) => n.n).then((runtime) => ({ createMatrixClient: runtime.createMatrixClient })));
|
|
507
491
|
const sharedClientStates = /* @__PURE__ */ new Map();
|
|
508
492
|
const sharedClientPromises = /* @__PURE__ */ new Map();
|
|
509
493
|
function serializeDispatcherPolicyKey(auth) {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
1
2
|
//#region extensions/matrix/subagent-hooks-api.ts
|
|
2
|
-
|
|
3
|
-
function loadMatrixSubagentHooksModule() {
|
|
4
|
-
matrixSubagentHooksPromise ??= import("./subagent-hooks-dkPAF6Et.js");
|
|
5
|
-
return matrixSubagentHooksPromise;
|
|
6
|
-
}
|
|
3
|
+
const loadMatrixSubagentHooksModule = createLazyRuntimeModule(() => import("./subagent-hooks-dkPAF6Et.js"));
|
|
7
4
|
function registerMatrixSubagentHooks(api) {
|
|
8
5
|
api.on("subagent_ended", async (event) => {
|
|
9
6
|
const { handleMatrixSubagentEnded } = await loadMatrixSubagentHooksModule();
|
|
@@ -2,7 +2,7 @@ import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
|
2
2
|
import { a as listBindingsForAccount, c as resolveBindingKey, f as setMatrixThreadBindingManagerEntry, h as toSessionBindingRecord, l as resolveEffectiveBindingExpiry, m as toMatrixBindingTargetKind, o as removeBindingRecord, r as getMatrixThreadBindingManagerEntry, t as deleteMatrixThreadBindingManagerEntry, u as setBindingRecord } from "./thread-bindings-shared-CKnY4LSd.js";
|
|
3
3
|
import { O as resolveMatrixSqliteStateEnv, k as resolveMatrixSqliteStateKey } from "./crypto-state-store-DK2tcEyP.js";
|
|
4
4
|
import { c as resolveMatrixStateFilePath, t as claimCurrentTokenStorageState } from "./storage-t5S-5c_5.js";
|
|
5
|
-
import { a as sendMessageMatrix } from "./send-
|
|
5
|
+
import { a as sendMessageMatrix } from "./send-D0hpevF-.js";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
|
|
2
|
-
import "./setup-core-
|
|
3
|
-
import { E as parsePollStart, T as isPollStartType, b as buildPollResponseContent, i as reactMatrixMessage, u as resolveMatrixRoomId } from "./send-
|
|
2
|
+
import "./setup-core-D2BQs8w1.js";
|
|
3
|
+
import { E as parsePollStart, T as isPollStartType, b as buildPollResponseContent, i as reactMatrixMessage, u as resolveMatrixRoomId } from "./send-D0hpevF-.js";
|
|
4
4
|
import { i as buildMatrixReactionRelationsPath, o as selectOwnMatrixReactionEventIds, s as summarizeMatrixReactionEvents } from "./reaction-common-DkrQdBSZ.js";
|
|
5
|
-
import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-
|
|
6
|
-
import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as sendMatrixMessage, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessages, s as EventType, t as deleteMatrixMessage } from "./messages-
|
|
5
|
+
import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-BQz5GcYr.js";
|
|
6
|
+
import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as sendMatrixMessage, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessages, s as EventType, t as deleteMatrixMessage } from "./messages-nQLGGa1r.js";
|
|
7
7
|
import { a as jsonResult, c as readStringArrayParam, l as readStringParam, o as readPositiveIntegerParam, r as createActionGate, s as readReactionParams } from "./runtime-api-CsBoesCU.js";
|
|
8
|
-
import { t as applyMatrixProfileUpdate } from "./profile-update-
|
|
9
|
-
import { _ as scanMatrixVerificationQr, a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, h as restoreMatrixRoomKeyBackup, i as confirmMatrixVerificationReciprocateQr, l as getMatrixVerificationSas, n as bootstrapMatrixVerification, o as generateMatrixVerificationQr, p as requestMatrixVerification, r as cancelMatrixVerification, s as getMatrixEncryptionStatus, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-
|
|
8
|
+
import { t as applyMatrixProfileUpdate } from "./profile-update-DIOAhezh.js";
|
|
9
|
+
import { _ as scanMatrixVerificationQr, a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, h as restoreMatrixRoomKeyBackup, i as confirmMatrixVerificationReciprocateQr, l as getMatrixVerificationSas, n as bootstrapMatrixVerification, o as generateMatrixVerificationQr, p as requestMatrixVerification, r as cancelMatrixVerification, s as getMatrixEncryptionStatus, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-CNw2K4uT.js";
|
|
10
10
|
import { normalizeOptionalLowercaseString, uniqueStrings, uniqueValues } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
11
11
|
//#region extensions/matrix/src/matrix/actions/polls.ts
|
|
12
12
|
function normalizeOptionIndexes(indexes) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-
|
|
2
|
+
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-BQz5GcYr.js";
|
|
3
3
|
import { n as formatMatrixEncryptionUnavailableError } from "./encryption-guidance-Bg3IRYoX.js";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/matrix",
|
|
3
|
-
"version": "2026.7.1-beta.
|
|
3
|
+
"version": "2026.7.1-beta.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/matrix",
|
|
9
|
-
"version": "2026.7.1-beta.
|
|
9
|
+
"version": "2026.7.1-beta.2",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@matrix-org/matrix-sdk-crypto-nodejs": "0.6.0",
|
|
12
12
|
"@matrix-org/matrix-sdk-crypto-wasm": "18.3.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"zod": "4.4.3"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"openclaw": ">=2026.7.1-beta.
|
|
21
|
+
"openclaw": ">=2026.7.1-beta.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependenciesMeta": {
|
|
24
24
|
"openclaw": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/matrix",
|
|
3
|
-
"version": "2026.7.1-beta.
|
|
3
|
+
"version": "2026.7.1-beta.2",
|
|
4
4
|
"description": "OpenClaw Matrix channel plugin for rooms and direct messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"zod": "4.4.3"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"openclaw": ">=2026.7.1-beta.
|
|
21
|
+
"openclaw": ">=2026.7.1-beta.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependenciesMeta": {
|
|
24
24
|
"openclaw": {
|
|
@@ -84,10 +84,10 @@
|
|
|
84
84
|
"allowInvalidConfigRecovery": true
|
|
85
85
|
},
|
|
86
86
|
"compat": {
|
|
87
|
-
"pluginApi": ">=2026.7.1-beta.
|
|
87
|
+
"pluginApi": ">=2026.7.1-beta.2"
|
|
88
88
|
},
|
|
89
89
|
"build": {
|
|
90
|
-
"openclawVersion": "2026.7.1-beta.
|
|
90
|
+
"openclawVersion": "2026.7.1-beta.2"
|
|
91
91
|
},
|
|
92
92
|
"release": {
|
|
93
93
|
"publishToClawHub": true,
|