@openclaw/matrix 2026.9.2 → 2026.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/{account-selection-DA-jfx22.js → account-selection-Bbtc483D.js} +9 -1
  2. package/dist/{accounts-DR1c4xF_.js → accounts-GwSAk9vY.js} +2 -2
  3. package/dist/api.js +6 -6
  4. package/dist/{approval-handler.runtime-BJCD4dLf.js → approval-handler.runtime-tJLn5JFB.js} +6 -6
  5. package/dist/{approval-ids-Bst7HM_o.js → approval-ids-DJZ9ZTuS.js} +1 -1
  6. package/dist/{approval-reaction-auth-DhH8QOSe.js → approval-reaction-auth-Cd0sKHFc.js} +2 -2
  7. package/dist/{channel-Bs8VLb6q.js → channel-BpYiqmx-.js} +10 -39
  8. package/dist/channel-plugin-api.js +1 -1
  9. package/dist/{channel.runtime-CCJRhdH5.js → channel.runtime-dfEvRdLQ.js} +6 -11
  10. package/dist/{channel.setup-DhmDXwPp.js → channel.setup-oxd8RsIr.js} +3 -3
  11. package/dist/{cli-IvDUuiDH.js → cli-_49Vsqs4.js} +9 -9
  12. package/dist/{cli-metadata-BGryAl2e.js → cli-metadata-D19lmKmz.js} +1 -1
  13. package/dist/cli-metadata.js +1 -1
  14. package/dist/{client-oNOlldJI.js → client-BXQCQDfY.js} +2 -2
  15. package/dist/{client-Dj4mcf-s.js → client-COLiUdWe.js} +6 -6
  16. package/dist/{client-bootstrap-n1Rqc8Go.js → client-bootstrap-CQwf9qrm.js} +1 -6
  17. package/dist/contract-api.js +2 -2
  18. package/dist/{credentials-DJj2xs3q.js → credentials-DysXbkv2.js} +2 -2
  19. package/dist/{credentials-read-mexhw-Ur.js → credentials-read-WWpqi88V.js} +1 -1
  20. package/dist/{credentials-write.runtime-DQt-kgJq.js → credentials-write.runtime-D22lPwRO.js} +1 -1
  21. package/dist/{crypto-runtime-m1eplj3b.js → crypto-runtime-BvunIYVn.js} +2 -2
  22. package/dist/{crypto-snapshot-doctor.runtime-D0v841D_.js → crypto-snapshot-doctor.runtime-DxgUMXUy.js} +2 -2
  23. package/dist/{directory-live-DLUgWBhA.js → directory-live-DABCxf8j.js} +2 -2
  24. package/dist/doctor-contract-api.js +41 -21
  25. package/dist/{draft-stream-DglwxWzJ.js → draft-stream-DSwgyyBi.js} +16 -5
  26. package/dist/{encryption-guidance-BNcZNQZI.js → encryption-guidance-mDyxJV9U.js} +1 -1
  27. package/dist/{event-helpers-XRfAbOIh.js → event-helpers-CspuhE9k.js} +9 -1
  28. package/dist/helper-api.js +3 -3
  29. package/dist/{http-client-DOmFvKvB.js → http-client-BfPeF4CE.js} +1 -1
  30. package/dist/{idb-persistence-CU7CNLlX.js → idb-persistence-DBdwHSWg.js} +1 -1
  31. package/dist/index.js +1 -1
  32. package/dist/{messages-Czn8lNEh.js → messages-H4mi9Cap.js} +6 -99
  33. package/dist/{monitor-DouG43FJ.js → monitor-3Fw96uiE.js} +61 -92
  34. package/dist/{outbound-Co_tJyE6.js → outbound-UPI45TD_.js} +1 -1
  35. package/dist/plugin-entry.handlers.runtime.js +1 -1
  36. package/dist/probe.runtime-DdXTrrmo.js +2 -0
  37. package/dist/{profile-update-CAl8nZNG.js → profile-update-DWEg8Ylt.js} +1 -1
  38. package/dist/{reaction-events-C_7G7bvI.js → reaction-events-D-iSW0iM.js} +5 -7
  39. package/dist/{resolve-targets-B64O69Nd.js → resolve-targets-BpnALDzR.js} +1 -1
  40. package/dist/{resolver.runtime-TRmePJDV.js → resolver.runtime-B83WkznZ.js} +1 -1
  41. package/dist/{room-info-6viLR3NH.js → room-info-CjnbX52D.js} +7 -4
  42. package/dist/runtime-api.js +2 -2
  43. package/dist/{sdk-C1yfda1L.js → sdk-CX9b0N8Q.js} +13 -6
  44. package/dist/{send-B5XChnvB.js → send-B9l1lKau.js} +196 -88
  45. package/dist/session-binding-contract-api.js +1 -1
  46. package/dist/{setup-bootstrap-S_loyUyM.js → setup-bootstrap-CSI1L1lm.js} +2 -2
  47. package/dist/{setup-core-XkIfQ65J.js → setup-core-DuTlyqRz.js} +3 -3
  48. package/dist/setup-plugin-api.js +1 -1
  49. package/dist/{setup-surface-B2yZ8KGc.js → setup-surface-fZing1WZ.js} +6 -6
  50. package/dist/{startup-verification-1Ney1mmI.js → startup-verification-BTSf31hS.js} +2 -1
  51. package/dist/storage-CV-pfV_2.js +320 -0
  52. package/dist/{storage-BVf4uucD.js → storage-metadata-DYArLcq1.js} +14 -319
  53. package/dist/{storage-paths-gUmSydsW.js → storage-paths-DVCANXTc.js} +13 -1
  54. package/dist/{sync-cache-state-d-A_OhbU.js → sync-cache-state-C-mhj3xb.js} +9 -3
  55. package/dist/{thread-bindings-BkBnn4te.js → thread-bindings-CRyf5on_.js} +3 -2
  56. package/dist/{tool-actions.runtime-a5L5xGSP.js → tool-actions.runtime-D5-hTkDu.js} +10 -10
  57. package/dist/types-DzSc7Sqm.js +32 -0
  58. package/dist/{verification-XJtTc5DI.js → verification-B_aqtbx-.js} +2 -2
  59. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/package.json +1 -1
  60. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm.d.ts +69 -4
  61. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.cjs +526 -432
  62. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.js +358 -265
  63. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm +0 -0
  64. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm.d.ts +8 -7
  65. package/openclaw.plugin.json +23 -1
  66. package/package.json +5 -5
  67. package/dist/probe.runtime-B1YPxG9x.js +0 -2
  68. package/dist/runtime-BefyhPWv.js +0 -6
@@ -1,3 +1,4 @@
1
+ import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
1
2
  import { n as listMatrixEnvAccountIds, t as getMatrixScopedEnvVarNames } from "./env-vars-dGqak9dN.js";
2
3
  import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
3
4
  import { listCombinedAccountIds, listConfiguredAccountIds, resolveListedDefaultAccountId, resolveNormalizedAccountEntry } from "openclaw/plugin-sdk/account-core";
@@ -91,6 +92,13 @@ function resolveMatrixEnvAuthReadiness(accountId, env = process.env) {
91
92
  }
92
93
  //#endregion
93
94
  //#region extensions/matrix/src/account-selection.ts
95
+ var account_selection_exports = /* @__PURE__ */ __exportAll({
96
+ findMatrixAccountEntry: () => findMatrixAccountEntry,
97
+ requiresExplicitMatrixDefaultAccount: () => requiresExplicitMatrixDefaultAccount,
98
+ resolveConfiguredMatrixAccountIds: () => resolveConfiguredMatrixAccountIds,
99
+ resolveMatrixChannelConfig: () => resolveMatrixChannelConfig,
100
+ resolveMatrixDefaultOrOnlyAccountId: () => resolveMatrixDefaultOrOnlyAccountId
101
+ });
94
102
  function readConfiguredMatrixString(value) {
95
103
  return normalizeOptionalString(value) ?? "";
96
104
  }
@@ -192,4 +200,4 @@ function requiresExplicitMatrixDefaultAccount(cfg, env = process.env) {
192
200
  return !(configuredDefault && configuredAccountIds.includes(configuredDefault));
193
201
  }
194
202
  //#endregion
195
- export { resolveMatrixDefaultOrOnlyAccountId as a, resolveScopedMatrixEnvConfig as c, resolveMatrixChannelConfig as i, resolveMatrixAccountStringValues as l, requiresExplicitMatrixDefaultAccount as n, resolveGlobalMatrixEnvConfig as o, resolveConfiguredMatrixAccountIds as r, resolveMatrixEnvAuthReadiness as s, findMatrixAccountEntry as t };
203
+ export { resolveMatrixChannelConfig as a, resolveMatrixEnvAuthReadiness as c, resolveConfiguredMatrixAccountIds as i, resolveScopedMatrixEnvConfig as l, findMatrixAccountEntry as n, resolveMatrixDefaultOrOnlyAccountId as o, requiresExplicitMatrixDefaultAccount as r, resolveGlobalMatrixEnvConfig as s, account_selection_exports as t, resolveMatrixAccountStringValues as u };
@@ -1,6 +1,6 @@
1
- import { a as resolveMatrixDefaultOrOnlyAccountId, c as resolveScopedMatrixEnvConfig, l as resolveMatrixAccountStringValues, o as resolveGlobalMatrixEnvConfig, r as resolveConfiguredMatrixAccountIds } from "./account-selection-DA-jfx22.js";
1
+ import { i as resolveConfiguredMatrixAccountIds, l as resolveScopedMatrixEnvConfig, o as resolveMatrixDefaultOrOnlyAccountId, s as resolveGlobalMatrixEnvConfig, u as resolveMatrixAccountStringValues } from "./account-selection-Bbtc483D.js";
2
2
  import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig, t as findMatrixAccountConfig } from "./account-config-CRsKoMqJ.js";
3
- import { i as loadMatrixCredentials, n as credentialsMatchConfig } from "./credentials-read-mexhw-Ur.js";
3
+ import { i as loadMatrixCredentials, n as credentialsMatchConfig } from "./credentials-read-WWpqi88V.js";
4
4
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
6
6
  import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
package/dist/api.js CHANGED
@@ -1,9 +1,9 @@
1
- import { a as resolveMatrixDefaultOrOnlyAccountId, i as resolveMatrixChannelConfig, n as requiresExplicitMatrixDefaultAccount, r as resolveConfiguredMatrixAccountIds, t as findMatrixAccountEntry } from "./account-selection-DA-jfx22.js";
1
+ import { a as resolveMatrixChannelConfig, i as resolveConfiguredMatrixAccountIds, n as findMatrixAccountEntry, o as resolveMatrixDefaultOrOnlyAccountId, r as requiresExplicitMatrixDefaultAccount } from "./account-selection-Bbtc483D.js";
2
2
  import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./env-vars-dGqak9dN.js";
3
- import { a as resolveMatrixCredentialsPath, i as resolveMatrixCredentialsFilename, n as resolveMatrixAccountStorageRoot, o as resolveMatrixHomeserverKey, r as resolveMatrixCredentialsDir, s as sanitizeMatrixPathSegment, t as hashMatrixAccessToken } from "./storage-paths-gUmSydsW.js";
4
- import { t as matrixPlugin } from "./channel-Bs8VLb6q.js";
5
- import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-XkIfQ65J.js";
3
+ import { a as resolveMatrixCredentialsFilename, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./storage-paths-DVCANXTc.js";
4
+ import { t as matrixPlugin } from "./channel-BpYiqmx-.js";
5
+ import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-DuTlyqRz.js";
6
6
  import { f as setMatrixThreadBindingMaxAgeBySessionKey, n as getMatrixThreadBindingManager, u as setMatrixThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings-shared-oNPiyMWY.js";
7
- import { n as matrixOnboardingAdapter } from "./setup-surface-B2yZ8KGc.js";
8
- import { t as createMatrixThreadBindingManager } from "./thread-bindings-BkBnn4te.js";
7
+ import { n as matrixOnboardingAdapter } from "./setup-surface-fZing1WZ.js";
8
+ import { t as createMatrixThreadBindingManager } from "./thread-bindings-CRyf5on_.js";
9
9
  export { createMatrixSetupWizardProxy, createMatrixThreadBindingManager, findMatrixAccountEntry, getMatrixScopedEnvVarNames, getMatrixThreadBindingManager, hashMatrixAccessToken, listMatrixEnvAccountIds, matrixOnboardingAdapter, matrixOnboardingAdapter as matrixSetupWizard, matrixPlugin, matrixSetupAdapter, requiresExplicitMatrixDefaultAccount, resolveConfiguredMatrixAccountIds, resolveMatrixAccountStorageRoot, resolveMatrixChannelConfig, resolveMatrixCredentialsDir, resolveMatrixCredentialsFilename, resolveMatrixCredentialsPath, resolveMatrixDefaultOrOnlyAccountId, resolveMatrixEnvAccountToken, resolveMatrixHomeserverKey, sanitizeMatrixPathSegment, setMatrixThreadBindingIdleTimeoutBySessionKey, setMatrixThreadBindingMaxAgeBySessionKey };
@@ -1,16 +1,16 @@
1
- import { i as resolveMatrixAccount } from "./accounts-DR1c4xF_.js";
2
- import { C as shouldHandleMatrixApprovalRequest, S as isMatrixAnyApprovalClientEnabled } from "./channel-Bs8VLb6q.js";
1
+ import { i as resolveMatrixAccount } from "./accounts-GwSAk9vY.js";
2
+ import { v as isMatrixAnyApprovalClientEnabled, y as shouldHandleMatrixApprovalRequest } from "./channel-BpYiqmx-.js";
3
3
  import { o as resolveMatrixTargetIdentity } from "./target-ids-Nwx7cMVE.js";
4
- import { C as repairMatrixDirectRooms, a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-B5XChnvB.js";
4
+ import { a as sendSingleTextMessageMatrix, j as repairMatrixDirectRooms, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-B9l1lKau.js";
5
5
  import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-1fwEhoK9.js";
6
- import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-Czn8lNEh.js";
6
+ import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-H4mi9Cap.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";
10
10
  import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
11
11
  import { createChannelApprovalNativeRuntimeAdapter } from "openclaw/plugin-sdk/approval-handler-runtime";
12
12
  import { buildExecApprovalPendingReplyPayload, buildPluginApprovalPendingReplyPayload } from "openclaw/plugin-sdk/approval-reply-runtime";
13
- import { buildApprovalPendingReplyPayload, buildPluginApprovalResolvedReplyPayload } from "openclaw/plugin-sdk/approval-runtime";
13
+ import { buildApprovalPendingReplyPayload, buildPluginApprovalResolvedReplyPayload, formatChannelApprovalResolvedLabel } from "openclaw/plugin-sdk/approval-runtime";
14
14
  import { retryAsync } from "openclaw/plugin-sdk/retry-runtime";
15
15
  //#region extensions/matrix/src/approval-handler.runtime.ts
16
16
  const MATRIX_APPROVAL_METADATA_KEY = "com.openclaw.approval";
@@ -197,7 +197,7 @@ function buildResolvedApprovalText(view) {
197
197
  resolvedBy: view.resolvedBy ?? void 0,
198
198
  ts: 0
199
199
  } }).text ?? "";
200
- const decisionLabel = view.approvalKind === "system-agent" && view.terminalStatus === "cancelled" ? "Cancelled" : view.approvalKind === "system-agent" && view.applicationStatus === "applied" ? "Applied" : view.approvalKind === "system-agent" && view.applicationStatus === "not-applied" ? "Not applied" : view.decision === "allow-once" ? "Allowed once" : view.decision === "allow-always" ? "Allowed always" : "Denied";
200
+ const decisionLabel = formatChannelApprovalResolvedLabel(view);
201
201
  return [
202
202
  `${view.approvalKind === "system-agent" ? "OpenClaw change" : "Exec approval"}: ${decisionLabel}`,
203
203
  "",
@@ -1,4 +1,4 @@
1
- import { a as normalizeMatrixUserId } from "./channel.setup-DhmDXwPp.js";
1
+ import { a as normalizeMatrixUserId } from "./channel.setup-oxd8RsIr.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 { i as resolveMatrixAccount } from "./accounts-DR1c4xF_.js";
2
- import { t as normalizeMatrixApproverId } from "./approval-ids-Bst7HM_o.js";
1
+ import { i as resolveMatrixAccount } from "./accounts-GwSAk9vY.js";
2
+ import { t as normalizeMatrixApproverId } from "./approval-ids-DJZ9ZTuS.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,11 +1,10 @@
1
- import { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-DA-jfx22.js";
1
+ import { r as requiresExplicitMatrixDefaultAccount } from "./account-selection-Bbtc483D.js";
2
2
  import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.js";
3
- import { i as resolveMatrixAccount, r as resolveDefaultMatrixAccountId, t as listMatrixAccountIds } from "./accounts-DR1c4xF_.js";
4
- import { a as normalizeMatrixUserId, r as DEFAULT_ACCOUNT_ID$2, t as matrixPluginBase } from "./channel.setup-DhmDXwPp.js";
5
- import { t as normalizeMatrixApproverId } from "./approval-ids-Bst7HM_o.js";
3
+ import { i as resolveMatrixAccount, r as resolveDefaultMatrixAccountId, t as listMatrixAccountIds } from "./accounts-GwSAk9vY.js";
4
+ import { a as normalizeMatrixUserId, r as DEFAULT_ACCOUNT_ID$2, t as matrixPluginBase } from "./channel.setup-oxd8RsIr.js";
5
+ import { t as normalizeMatrixApproverId } from "./approval-ids-DJZ9ZTuS.js";
6
6
  import { a as resolveMatrixDirectUserId, i as normalizeMatrixResolvableTarget, n as isMatrixRoomId, o as resolveMatrixTargetIdentity, r as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-Nwx7cMVE.js";
7
7
  import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-HyWFZQVG.js";
8
- import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-DkrQdBSZ.js";
9
8
  import { f as setMatrixThreadBindingMaxAgeBySessionKey, u as setMatrixThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings-shared-oNPiyMWY.js";
10
9
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-CufozuyJ.js";
11
10
  import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./thread-binding-api-CzkeLZCU.js";
@@ -149,7 +148,7 @@ const matrixMessageActions = {
149
148
  return account && createActionGate(account.config.actions)("messages") ? payload : null;
150
149
  },
151
150
  handleAction: async (ctx) => {
152
- const { handleMatrixAction } = await import("./tool-actions.runtime-a5L5xGSP.js");
151
+ const { handleMatrixAction } = await import("./tool-actions.runtime-D5-hTkDu.js");
153
152
  const { action, params, cfg, accountId, mediaLocalRoots } = ctx;
154
153
  const dispatch = async (actionParams) => await handleMatrixAction({
155
154
  ...actionParams,
@@ -634,7 +633,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
634
633
  approvalKind,
635
634
  request
636
635
  }),
637
- load: async () => (await import("./approval-handler.runtime-BJCD4dLf.js")).matrixApprovalNativeRuntime
636
+ load: async () => (await import("./approval-handler.runtime-tJLn5JFB.js")).matrixApprovalNativeRuntime
638
637
  })
639
638
  });
640
639
  const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
@@ -859,19 +858,6 @@ function resolveMatrixGroupToolPolicy(params) {
859
858
  return resolveScopeToolsPolicy(resolveMatrixGroupScope(params));
860
859
  }
861
860
  //#endregion
862
- //#region extensions/matrix/src/matrix/monitor/types.ts
863
- const EventType = {
864
- RoomMessage: "m.room.message",
865
- RoomMessageEncrypted: "m.room.encrypted",
866
- RoomMember: "m.room.member",
867
- Location: "m.location",
868
- Reaction: MATRIX_REACTION_EVENT_TYPE
869
- };
870
- const RelationType = {
871
- Replace: "m.replace",
872
- Thread: "m.thread"
873
- };
874
- //#endregion
875
861
  //#region extensions/matrix/src/matrix/monitor/threads.ts
876
862
  function resolveMatrixThreadSessionKeys(params) {
877
863
  return resolveThreadSessionKeys({
@@ -879,10 +865,6 @@ function resolveMatrixThreadSessionKeys(params) {
879
865
  normalizeThreadId: (threadId) => threadId
880
866
  });
881
867
  }
882
- function resolveMatrixRelatedReplyToEventId(relates) {
883
- if (!relates || typeof relates !== "object") return;
884
- if ("m.in_reply_to" in relates && typeof relates["m.in_reply_to"] === "object" && relates["m.in_reply_to"] && "event_id" in relates["m.in_reply_to"] && typeof relates["m.in_reply_to"].event_id === "string") return relates["m.in_reply_to"].event_id;
885
- }
886
868
  function resolveMatrixThreadRouting(params) {
887
869
  const effectiveThreadReplies = params.isDirectMessage && params.dmThreadReplies !== void 0 ? params.dmThreadReplies : params.threadReplies;
888
870
  const messageId = params.messageId.trim();
@@ -890,17 +872,6 @@ function resolveMatrixThreadRouting(params) {
890
872
  const inboundThreadId = threadRootId && threadRootId !== messageId ? threadRootId : void 0;
891
873
  return { threadId: effectiveThreadReplies === "off" ? void 0 : effectiveThreadReplies === "inbound" ? inboundThreadId : inboundThreadId ?? (messageId || void 0) };
892
874
  }
893
- function resolveMatrixThreadRootId(params) {
894
- const relates = params.content["m.relates_to"];
895
- if (!relates || typeof relates !== "object") return;
896
- if ("rel_type" in relates && relates.rel_type === RelationType.Thread) {
897
- if ("event_id" in relates && typeof relates.event_id === "string") return relates.event_id;
898
- return resolveMatrixRelatedReplyToEventId(relates);
899
- }
900
- }
901
- function resolveMatrixReplyToEventId(content) {
902
- return resolveMatrixRelatedReplyToEventId(content["m.relates_to"]);
903
- }
904
875
  //#endregion
905
876
  //#region extensions/matrix/src/matrix/monitor/route.ts
906
877
  function resolveMatrixDmSessionKey(params) {
@@ -1042,7 +1013,7 @@ function resolveMatrixConversationRouteOwner(params) {
1042
1013
  }
1043
1014
  //#endregion
1044
1015
  //#region extensions/matrix/src/resolver.ts
1045
- const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-TRmePJDV.js"), "matrixResolverRuntime");
1016
+ const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-B83WkznZ.js"), "matrixResolverRuntime");
1046
1017
  const matrixResolverAdapter = { resolveTargets: async ({ cfg, accountId, inputs, kind, runtime }) => (await loadMatrixChannelRuntime$1()).resolveMatrixTargets({
1047
1018
  cfg,
1048
1019
  accountId,
@@ -1171,7 +1142,7 @@ function resolveMatrixOutboundSessionRoute(params) {
1171
1142
  //#endregion
1172
1143
  //#region extensions/matrix/src/channel.ts
1173
1144
  let matrixStartupLock = Promise.resolve();
1174
- const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CCJRhdH5.js"), "matrixChannelRuntime");
1145
+ const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-dfEvRdLQ.js"), "matrixChannelRuntime");
1175
1146
  const loadMatrixDoctorModule = createLazyRuntimeModule(() => import("./doctor-CJE8wO6y.js"));
1176
1147
  function buildMatrixTrafficStatusSummary(snapshot) {
1177
1148
  return {
@@ -1522,7 +1493,7 @@ const matrixPlugin = createChatChannelPlugin({
1522
1493
  await previousLock;
1523
1494
  let monitorMatrixProvider;
1524
1495
  try {
1525
- monitorMatrixProvider = (await import("./monitor-DouG43FJ.js")).monitorMatrixProvider;
1496
+ monitorMatrixProvider = (await import("./monitor-3Fw96uiE.js")).monitorMatrixProvider;
1526
1497
  } finally {
1527
1498
  releaseLock();
1528
1499
  }
@@ -1592,4 +1563,4 @@ const matrixPlugin = createChatChannelPlugin({
1592
1563
  outbound: matrixChannelOutbound
1593
1564
  });
1594
1565
  //#endregion
1595
- export { shouldHandleMatrixApprovalRequest as C, isMatrixAnyApprovalClientEnabled as S, logInboundDrop as _, resolveMatrixThreadRootId as a, summarizeMapping as b, RelationType as c, buildAllowlistResolutionSummary as d, canonicalizeAllowlistWithResolvedIds as f, getAgentScopedMediaLocalRoots as g, formatLocationText as h, resolveMatrixReplyToEventId as i, resolveMatrixRoomConfig as l, createTypingCallbacks as m, resolveMatrixStoredSessionMeta as n, resolveMatrixThreadRouting as o, createReplyPrefixOptions as p, resolveMatrixInboundRoute as r, EventType as s, matrixPlugin as t, addAllowlistUserEntriesFromConfigEntry as u, logTypingFailure as v, toLocationContext as x, patchAllowlistUsersInConfigEntries as y };
1566
+ export { toLocationContext as _, resolveMatrixRoomConfig as a, canonicalizeAllowlistWithResolvedIds as c, formatLocationText as d, getAgentScopedMediaLocalRoots as f, summarizeMapping as g, patchAllowlistUsersInConfigEntries as h, resolveMatrixThreadRouting as i, createReplyPrefixOptions as l, logTypingFailure as m, resolveMatrixStoredSessionMeta as n, addAllowlistUserEntriesFromConfigEntry as o, logInboundDrop as p, resolveMatrixInboundRoute as r, buildAllowlistResolutionSummary as s, matrixPlugin as t, createTypingCallbacks as u, isMatrixAnyApprovalClientEnabled as v, shouldHandleMatrixApprovalRequest as y };
@@ -1,2 +1,2 @@
1
- import { t as matrixPlugin } from "./channel-Bs8VLb6q.js";
1
+ import { t as matrixPlugin } from "./channel-BpYiqmx-.js";
2
2
  export { matrixPlugin };
@@ -1,15 +1,14 @@
1
- import { o as sendTypingMatrix, r as sendMessageMatrix, v as cleanupMatrixDeliveryPlans, y as reconcileMatrixUnknownSend } from "./send-B5XChnvB.js";
2
- import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
3
- import { l as resolveMatrixAuth } from "./client-Dj4mcf-s.js";
4
- import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-DLUgWBhA.js";
5
- import { t as matrixOutbound } from "./outbound-Co_tJyE6.js";
6
- import { t as resolveMatrixTargets } from "./resolve-targets-B64O69Nd.js";
1
+ import { D as reconcileMatrixUnknownSend, E as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-B9l1lKau.js";
2
+ import { l as resolveMatrixAuth } from "./client-COLiUdWe.js";
3
+ import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-DABCxf8j.js";
4
+ import { t as matrixOutbound } from "./outbound-UPI45TD_.js";
5
+ import { t as resolveMatrixTargets } from "./resolve-targets-BpnALDzR.js";
7
6
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
8
7
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
9
8
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
10
9
  import { runChannelProbe } from "openclaw/plugin-sdk/text-utility-runtime";
11
10
  //#region extensions/matrix/src/matrix/probe.ts
12
- const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./probe.runtime-B1YPxG9x.js").then((runtimeModule) => ({ createMatrixClient: runtimeModule.createMatrixClient })));
11
+ const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./probe.runtime-DdXTrrmo.js").then((runtimeModule) => ({ createMatrixClient: runtimeModule.createMatrixClient })));
13
12
  async function probeMatrix(params) {
14
13
  return await runChannelProbe(void 0, async () => {
15
14
  const result = {
@@ -17,10 +16,6 @@ async function probeMatrix(params) {
17
16
  status: null,
18
17
  error: null
19
18
  };
20
- if (isBunRuntime()) return {
21
- ...result,
22
- error: "Matrix probe requires Node (bun runtime not supported)"
23
- };
24
19
  if (!params.homeserver?.trim()) return {
25
20
  ...result,
26
21
  error: "missing homeserver"
@@ -1,6 +1,6 @@
1
1
  import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.js";
2
- import { i as resolveMatrixAccount, r as resolveDefaultMatrixAccountId, t as listMatrixAccountIds } from "./accounts-DR1c4xF_.js";
3
- import { r as matrixSetupContract, t as createMatrixSetupWizardProxy } from "./setup-core-XkIfQ65J.js";
2
+ import { i as resolveMatrixAccount, r as resolveDefaultMatrixAccountId, t as listMatrixAccountIds } from "./accounts-GwSAk9vY.js";
3
+ import { r as matrixSetupContract, t as createMatrixSetupWizardProxy } from "./setup-core-DuTlyqRz.js";
4
4
  import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
5
5
  import { createChannelConfigUiHints } from "openclaw/plugin-sdk/channel-core";
6
6
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -314,7 +314,7 @@ const matrixPluginBase = {
314
314
  order: 70,
315
315
  quickstartAllowFrom: true
316
316
  },
317
- setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-B2yZ8KGc.js").then((n) => n.t)).matrixSetupWizard })),
317
+ setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-fZing1WZ.js").then((n) => n.t)).matrixSetupWizard })),
318
318
  setupContract: matrixSetupContract,
319
319
  capabilities: {
320
320
  chatTypes: [
@@ -1,15 +1,15 @@
1
1
  import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CRsKoMqJ.js";
2
2
  import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
3
- import { i as resolveMatrixAccount } from "./accounts-DR1c4xF_.js";
3
+ import { i as resolveMatrixAccount } from "./accounts-GwSAk9vY.js";
4
4
  import { n as resolveMatrixConfigPath, r as updateMatrixAccountConfig } from "./config-update-BnX26jCO.js";
5
- import { n as matrixSetupAdapter } from "./setup-core-XkIfQ65J.js";
6
- import { n as withResolvedActionClient } from "./client-oNOlldJI.js";
7
- import { u as resolveMatrixAuthContext } from "./client-Dj4mcf-s.js";
5
+ import { n as matrixSetupAdapter } from "./setup-core-DuTlyqRz.js";
6
+ import { n as withResolvedActionClient } from "./client-BXQCQDfY.js";
7
+ import { u as resolveMatrixAuthContext } from "./client-COLiUdWe.js";
8
8
  import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Dm_YMVFT.js";
9
9
  import { i as setMatrixSdkLogMode, r as setMatrixSdkConsoleLogging } from "./logging-DRjvUOIh.js";
10
10
  import { n as isOpenClawManagedMatrixDevice, r as summarizeMatrixDeviceHealth } from "./device-health-B4-YXtJR.js";
11
- import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-CAl8nZNG.js";
12
- 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-XJtTc5DI.js";
11
+ import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-DWEg8Ylt.js";
12
+ 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-B_aqtbx-.js";
13
13
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
14
14
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
15
15
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
@@ -448,7 +448,7 @@ async function addMatrixAccount(params) {
448
448
  backupVersion: null
449
449
  };
450
450
  if (accountConfig.encryption === true) {
451
- const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-S_loyUyM.js");
451
+ const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-CSI1L1lm.js");
452
452
  verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
453
453
  previousCfg: cfg,
454
454
  cfg: updated,
@@ -636,8 +636,8 @@ function registerMatrixDeviceCommands(root) {
636
636
  }
637
637
  //#endregion
638
638
  //#region extensions/matrix/src/cli-direct.ts
639
- const loadMatrixActionClientModule = createLazyRuntimeModule(() => import("./client-oNOlldJI.js").then((n) => n.t));
640
- const loadMatrixDirectManagementModule = createLazyRuntimeModule(() => import("./send-B5XChnvB.js").then((n) => n.x));
639
+ const loadMatrixActionClientModule = createLazyRuntimeModule(() => import("./client-BXQCQDfY.js").then((n) => n.t));
640
+ const loadMatrixDirectManagementModule = createLazyRuntimeModule(() => import("./send-B9l1lKau.js").then((n) => n.k));
641
641
  function printDirectRoomCandidate(room) {
642
642
  const members = room.joinedMembers === null ? "unavailable" : room.joinedMembers.map((member) => formatMatrixCliText(member)).join(", ") || "none";
643
643
  console.log(`- ${formatMatrixCliText(room.roomId)} [${room.source}] strict=${room.strict ? "yes" : "no"} joined=${members}`);
@@ -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-IvDUuiDH.js");
5
+ const { registerMatrixCli } = await import("./cli-_49Vsqs4.js");
6
6
  registerMatrixCli({ program });
7
7
  }, { descriptors: [{
8
8
  name: "matrix",
@@ -1,2 +1,2 @@
1
- import { n as registerMatrixCliMetadata, t as cli_metadata_default } from "./cli-metadata-BGryAl2e.js";
1
+ import { n as registerMatrixCliMetadata, t as cli_metadata_default } from "./cli-metadata-D19lmKmz.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 { b as resolveMatrixRoomId } from "./send-B5XChnvB.js";
3
- import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-n1Rqc8Go.js";
2
+ import { O as resolveMatrixRoomId } from "./send-B9l1lKau.js";
3
+ import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-CQwf9qrm.js";
4
4
  //#region extensions/matrix/src/matrix/actions/client.ts
5
5
  var client_exports = /* @__PURE__ */ __exportAll({
6
6
  withResolvedActionClient: () => withResolvedActionClient,
@@ -1,10 +1,10 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { a as resolveMatrixDefaultOrOnlyAccountId, c as resolveScopedMatrixEnvConfig, l as resolveMatrixAccountStringValues, n as requiresExplicitMatrixDefaultAccount, o as resolveGlobalMatrixEnvConfig } from "./account-selection-DA-jfx22.js";
2
+ import { l as resolveScopedMatrixEnvConfig, o as resolveMatrixDefaultOrOnlyAccountId, r as requiresExplicitMatrixDefaultAccount, s as resolveGlobalMatrixEnvConfig, u as resolveMatrixAccountStringValues } from "./account-selection-Bbtc483D.js";
3
3
  import { t as getMatrixScopedEnvVarNames } from "./env-vars-dGqak9dN.js";
4
4
  import { o as resolveMatrixBaseConfig, r as listNormalizedMatrixAccountIds, t as findMatrixAccountConfig } from "./account-config-CRsKoMqJ.js";
5
5
  import { t as resolveMatrixConfigFieldPath } from "./config-paths-CnREYb1Y.js";
6
6
  import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
7
- import { d as writeStorageMeta, l as resolveMatrixStoragePaths, r as maybeMigrateLegacyStorage, s as repairCurrentTokenStorageMetaDeviceId } from "./storage-BVf4uucD.js";
7
+ import { i as repairCurrentTokenStorageMetaDeviceId, n as maybeMigrateLegacyStorage, o as resolveMatrixStoragePaths, s as writeStorageMeta } from "./storage-CV-pfV_2.js";
8
8
  import { n as LogService } from "./logger-B_71hN6W.js";
9
9
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
10
10
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -20,13 +20,13 @@ import { sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
20
20
  import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
21
21
  import { AsyncLocalStorage } from "node:async_hooks";
22
22
  //#region extensions/matrix/src/matrix/client/config.ts
23
- const loadMatrixAuthClientDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-C1yfda1L.js").then((n) => n.t), import("./logging-DRjvUOIh.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
23
+ const loadMatrixAuthClientDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-CX9b0N8Q.js").then((n) => n.t), import("./logging-DRjvUOIh.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
24
24
  MatrixClient: sdkModule.MatrixClient,
25
25
  ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
26
26
  })));
27
27
  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;
28
- const loadMatrixCredentialsReadDeps = createLazyRuntimeModule(() => import("./credentials-read-mexhw-Ur.js").then((n) => n.r));
29
- const loadMatrixCredentialsWriteRuntime = createLazyRuntimeModule(() => import("./credentials-write.runtime-DQt-kgJq.js"));
28
+ const loadMatrixCredentialsReadDeps = createLazyRuntimeModule(() => import("./credentials-read-WWpqi88V.js").then((n) => n.r));
29
+ const loadMatrixCredentialsWriteRuntime = createLazyRuntimeModule(() => import("./credentials-write.runtime-D22lPwRO.js"));
30
30
  const loadMatrixSecretInputDeps = createLazyRuntimeModule(() => import("./config-secret-input.runtime-CwsP3--c.js"));
31
31
  function shouldRetryMatrixAuthRequest(err) {
32
32
  return MATRIX_AUTH_REQUEST_RETRY_RE.test(formatErrorMessage(err));
@@ -416,7 +416,7 @@ async function backfillMatrixAuthDeviceIdAfterStartup(params) {
416
416
  //#endregion
417
417
  //#region extensions/matrix/src/matrix/client/create-client.ts
418
418
  var create_client_exports = /* @__PURE__ */ __exportAll({ createMatrixClient: () => createMatrixClient });
419
- const loadMatrixCreateClientRuntimeDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-C1yfda1L.js").then((n) => n.t), import("./logging-DRjvUOIh.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
419
+ const loadMatrixCreateClientRuntimeDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-CX9b0N8Q.js").then((n) => n.t), import("./logging-DRjvUOIh.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
420
420
  MatrixClient: sdkModule.MatrixClient,
421
421
  ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
422
422
  })));
@@ -1,5 +1,4 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
3
2
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
4
3
  import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
5
4
  //#region extensions/matrix/src/matrix/client-bootstrap.ts
@@ -7,7 +6,7 @@ var client_bootstrap_exports = /* @__PURE__ */ __exportAll({
7
6
  resolveRuntimeMatrixClientWithReadiness: () => resolveRuntimeMatrixClientWithReadiness,
8
7
  withResolvedRuntimeMatrixClient: () => withResolvedRuntimeMatrixClient
9
8
  });
10
- const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-Dj4mcf-s.js").then((n) => n.t).then((clientModule) => ({
9
+ const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-COLiUdWe.js").then((n) => n.t).then((clientModule) => ({
11
10
  acquireSharedMatrixClient: clientModule.acquireSharedMatrixClient,
12
11
  resolveMatrixAuthContext: clientModule.resolveMatrixAuthContext
13
12
  })));
@@ -19,11 +18,7 @@ async function ensureResolvedClientReadiness(params) {
19
18
  }
20
19
  if (params.readiness === "prepared" || !params.readiness && params.preparedByDefault) await params.client.prepareForOneOff();
21
20
  }
22
- function ensureMatrixNodeRuntime() {
23
- if (isBunRuntime()) throw new Error("Matrix support requires Node (bun runtime not supported)");
24
- }
25
21
  async function resolveRuntimeMatrixClientWithReadiness(opts) {
26
- ensureMatrixNodeRuntime();
27
22
  if (opts.client) {
28
23
  await ensureResolvedClientReadiness({
29
24
  client: opts.client,
@@ -1,3 +1,3 @@
1
- import { c as singleAccountKeysToMove, n as matrixSetupAdapter, o as namedAccountPromotionKeys, s as resolveSingleAccountPromotionTarget } from "./setup-core-XkIfQ65J.js";
2
- import { n as matrixOnboardingAdapter } from "./setup-surface-B2yZ8KGc.js";
1
+ import { c as singleAccountKeysToMove, n as matrixSetupAdapter, o as namedAccountPromotionKeys, s as resolveSingleAccountPromotionTarget } from "./setup-core-DuTlyqRz.js";
2
+ import { n as matrixOnboardingAdapter } from "./setup-surface-fZing1WZ.js";
3
3
  export { matrixSetupAdapter, matrixOnboardingAdapter as matrixSetupWizard, namedAccountPromotionKeys, resolveSingleAccountPromotionTarget, singleAccountKeysToMove };
@@ -1,6 +1,6 @@
1
1
  import { i as normalizeMatrixStoredCredentials, n as isMatrixCredentialRevocation, r as matrixCredentialsStoreKey } from "./credentials-state-B3cuUFwZ.js";
2
- import { a as resolveMatrixCredentialsPath, r as resolveMatrixCredentialsDir } from "./storage-paths-gUmSydsW.js";
3
- import { a as openMatrixCredentialsStore, i as loadMatrixCredentials, n as credentialsMatchConfig, t as clearMatrixCredentials } from "./credentials-read-mexhw-Ur.js";
2
+ import { i as resolveMatrixCredentialsDir, o as resolveMatrixCredentialsPath } from "./storage-paths-DVCANXTc.js";
3
+ import { a as openMatrixCredentialsStore, i as loadMatrixCredentials, n as credentialsMatchConfig, t as clearMatrixCredentials } from "./credentials-read-WWpqi88V.js";
4
4
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
5
5
  //#region extensions/matrix/src/matrix/credentials.ts
6
6
  async function saveMatrixCredentials(credentials, env = process.env, accountId) {
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
2
  import { n as getOptionalMatrixRuntime } from "./runtime-6S3DNFNv.js";
3
3
  import { i as normalizeMatrixStoredCredentials, r as matrixCredentialsStoreKey, t as MATRIX_CREDENTIALS_NAMESPACE } from "./credentials-state-B3cuUFwZ.js";
4
- import { a as resolveMatrixCredentialsPath, r as resolveMatrixCredentialsDir } from "./storage-paths-gUmSydsW.js";
4
+ import { i as resolveMatrixCredentialsDir, o as resolveMatrixCredentialsPath } from "./storage-paths-DVCANXTc.js";
5
5
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
6
6
  import { createPluginStateSyncKeyedStore } from "openclaw/plugin-sdk/plugin-state-store-runtime";
7
7
  //#region extensions/matrix/src/matrix/credentials-read.ts
@@ -1,6 +1,6 @@
1
1
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
2
2
  //#region extensions/matrix/src/matrix/credentials-write.runtime.ts
3
- const loadMatrixCredentialsRuntime = createLazyRuntimeModule(() => import("./credentials-DJj2xs3q.js"));
3
+ const loadMatrixCredentialsRuntime = createLazyRuntimeModule(() => import("./credentials-DysXbkv2.js"));
4
4
  async function saveMatrixCredentials(...args) {
5
5
  return (await loadMatrixCredentialsRuntime()).saveMatrixCredentials(...args);
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import { t as ensureMatrixCryptoRuntime } from "./deps-mtxF2mHI.js";
2
2
  import { n as LogService, r as noop } from "./logger-B_71hN6W.js";
3
- import { i as restoreIdbFromDisk, n as persistIdbToDisk } from "./idb-persistence-CU7CNLlX.js";
4
- import { n as isRepairableSecretStorageAccessError } from "./sdk-C1yfda1L.js";
3
+ import { i as restoreIdbFromDisk, n as persistIdbToDisk } from "./idb-persistence-DBdwHSWg.js";
4
+ import { n as isRepairableSecretStorageAccessError } from "./sdk-CX9b0N8Q.js";
5
5
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
6
6
  import { formatErrorMessage, toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
7
7
  import { resolveDateTimestampMs, resolveTimestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
@@ -1,6 +1,6 @@
1
- import { O as writeMatrixIdbSnapshotJsonToStore, T as readMatrixIdbSnapshotJsonFromStore, f as MATRIX_IDB_SNAPSHOT_FILENAME, v as openMatrixIdbSnapshotStoreOptions } from "./storage-BVf4uucD.js";
1
+ import { T as writeMatrixIdbSnapshotJsonToStore, m as openMatrixIdbSnapshotStoreOptions, o as MATRIX_IDB_SNAPSHOT_FILENAME, x as readMatrixIdbSnapshotJsonFromStore } from "./storage-metadata-DYArLcq1.js";
2
2
  import { n as MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS } from "./idb-persistence-lock-B3fZXyF_.js";
3
- import { r as readLegacyMatrixIdbSnapshotStateUnlocked, t as isValidMatrixIdbSnapshotJson } from "./idb-persistence-CU7CNLlX.js";
3
+ import { r as readLegacyMatrixIdbSnapshotStateUnlocked, t as isValidMatrixIdbSnapshotJson } from "./idb-persistence-DBdwHSWg.js";
4
4
  import { randomUUID } from "node:crypto";
5
5
  import path from "node:path";
6
6
  import fs from "node:fs";
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
2
  import { r as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-Nwx7cMVE.js";
3
- import { l as resolveMatrixAuth } from "./client-Dj4mcf-s.js";
4
- import { t as MatrixAuthedHttpClient } from "./http-client-DOmFvKvB.js";
3
+ import { l as resolveMatrixAuth } from "./client-COLiUdWe.js";
4
+ import { t as MatrixAuthedHttpClient } from "./http-client-BfPeF4CE.js";
5
5
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  //#region extensions/matrix/src/directory-live.ts
7
7
  var directory_live_exports = /* @__PURE__ */ __exportAll({