@openclaw/matrix 2026.10.10-beta.5 → 2026.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/.setup/{account-config-CRsKoMqJ.mjs → account-config-CVM2a28p.mjs} +1 -2
  2. package/dist/.setup/{account-selection-Bs_jCAaG.mjs → account-selection-BPFpdMIw.mjs} +5 -8
  3. package/dist/.setup/{approval-handler.runtime-6u08WKWh.mjs → approval-handler.runtime-BvuXpzus.mjs} +8 -9
  4. package/dist/.setup/{approval-reactions-D2pEUrFS.mjs → approval-reactions-DMDBJos0.mjs} +2 -3
  5. package/dist/.setup/{backup-health-Dm_YMVFT.mjs → backup-health-BxH69np2.mjs} +1 -2
  6. package/dist/.setup/{channel-CqkLHNdp.mjs → channel-DYRabwmj.mjs} +30 -43
  7. package/dist/.setup/{channel.runtime-BfZdvlho.mjs → channel.runtime-C0VWk0Ch.mjs} +8 -10
  8. package/dist/.setup/{channel.setup-ClA7V_Ba.mjs → channel.setup-Dp7V9AgV.mjs} +7 -11
  9. package/dist/.setup/{cli-metadata-COWLWR3E.mjs → cli-metadata-DemZndyG.mjs} +3 -5
  10. package/dist/.setup/{cli-BLgMlO3I.mjs → cli-umlumhB6.mjs} +28 -39
  11. package/dist/.setup/{client-C4Gibhzl.mjs → client-BIsYqIzM.mjs} +19 -25
  12. package/dist/.setup/{client-C7pZ6gAl.mjs → client-DL_aELCJ.mjs} +4 -5
  13. package/dist/.setup/{client-bootstrap-kOIDV4z_.mjs → client-bootstrap-kdsygurH.mjs} +2 -3
  14. package/dist/.setup/{client-support-D-xHScuo.mjs → client-support-CFofPPPm.mjs} +3 -5
  15. package/dist/.setup/{config-paths-CnREYb1Y.mjs → config-paths-DBpHxDyc.mjs} +1 -2
  16. package/dist/.setup/{create-client-BS8UYx6N.mjs → create-client-BFkMM7SP.mjs} +8 -9
  17. package/dist/.setup/{credentials-CPnJZaZB.mjs → credentials-B3MlOOom.mjs} +5 -6
  18. package/dist/.setup/{credentials-read-D2ULV55A.mjs → credentials-read-BOuCoy-p.mjs} +5 -6
  19. package/dist/.setup/{credentials-state-B3cuUFwZ.mjs → credentials-state-jxq29yQw.mjs} +1 -2
  20. package/dist/.setup/{crypto-node.runtime-6Aj_ltHQ.mjs → crypto-node.runtime-E_hqXGxm.mjs} +1 -2
  21. package/dist/.setup/{crypto-runtime-D8yY7kjD.mjs → crypto-runtime-s3ogwLRO.mjs} +12 -19
  22. package/dist/.setup/{crypto-state-store-D4wrCvFs.mjs → crypto-state-store-CM57gchf.mjs} +3 -4
  23. package/dist/.setup/{crypto-store-ownership-Z_Y5WRKr.mjs → crypto-store-ownership-Bratn-Np.mjs} +3 -4
  24. package/dist/.setup/{crypto-unsafe-state-doctor-C8szCYmf.mjs → crypto-unsafe-state-doctor-ClzRgr8z.mjs} +7 -8
  25. package/dist/.setup/{deps-L_1bUAGL.mjs → deps-O7rEnklr.mjs} +1 -2
  26. package/dist/.setup/{device-health-Be60VF1w.mjs → device-health-CmvwmCHB.mjs} +2 -3
  27. package/dist/.setup/{direct-management-B3wYhx_M.mjs → direct-management-BOYMqZJQ.mjs} +7 -11
  28. package/dist/.setup/{directory-live-BpSz-FQB.mjs → directory-live-tItssg9q.mjs} +5 -6
  29. package/dist/.setup/doctor-contract-GiXgCj7k.mjs +37 -0
  30. package/dist/.setup/{draft-stream-K6Lu-JEI.mjs → draft-stream-Buru5huX.mjs} +3 -4
  31. package/dist/.setup/{encryption-guidance-D5_IsDIy.mjs → encryption-guidance-CLloQ6H7.mjs} +3 -4
  32. package/dist/.setup/{env-vars-aEBngJPa.mjs → env-vars-Bh1iOXJ1.mjs} +1 -2
  33. package/dist/.setup/{errors-Bw4EHwKX.mjs → errors-CL3YJV8U.mjs} +1 -2
  34. package/dist/.setup/{event-helpers-CxNgMQqH.mjs → event-helpers-DDUjVVf7.mjs} +1 -2
  35. package/dist/.setup/{exec-approvals-DtNw0e04.mjs → exec-approvals-CWeSpE6V.mjs} +6 -9
  36. package/dist/.setup/{file-sync-store-CUH8EAJq.mjs → file-sync-store-D1sEtAap.mjs} +5 -6
  37. package/dist/.setup/{http-client-ByR4STVQ.mjs → http-client-CxTmU1kT.mjs} +4 -7
  38. package/dist/.setup/{idb-persistence-BHTYPRe_.mjs → idb-persistence-BF0MZglD.mjs} +6 -7
  39. package/dist/.setup/{idb-persistence-lock-Bh3ZLIsE.mjs → idb-persistence-lock-CH2K6d_3.mjs} +1 -2
  40. package/dist/.setup/{inbound-dedupe-C-EBGY0B.mjs → inbound-dedupe-CZnOq0ja.mjs} +2 -3
  41. package/dist/.setup/{joined-room-encryption-BAD70N5n.mjs → joined-room-encryption-Dl7Sb9FF.mjs} +2 -3
  42. package/dist/.setup/{logger-CXQnpXCt.mjs → logger-BX5kXvh1.mjs} +2 -3
  43. package/dist/.setup/{logging-BKV8TYQq.mjs → logging-BWPjyW9s.mjs} +3 -4
  44. package/dist/.setup/{messages-O6G0-_xr.mjs → messages-Dt51OgyD.mjs} +9 -14
  45. package/dist/.setup/{monitor-BSEZMFyq.mjs → monitor-BrBbFO8h.mjs} +85 -94
  46. package/dist/.setup/{onboarding-DQLF7huY.mjs → onboarding-QfFvgZ85.mjs} +10 -11
  47. package/dist/.setup/{outbound-C0bqZr89.mjs → outbound-B8h2BwR2.mjs} +3 -4
  48. package/dist/.setup/{profile-update-BbfEg9Fx.mjs → profile-update-DiXtw0NM.mjs} +6 -8
  49. package/dist/.setup/{reaction-events-51DOeO0I.mjs → reaction-events-xTg2_wZJ.mjs} +8 -9
  50. package/dist/.setup/{resolve-targets-BJ5sIKeM.mjs → resolve-targets-vlr765on.mjs} +4 -5
  51. package/dist/.setup/{retired-state-DOCruzWd.mjs → retired-state-vIr2IB90.mjs} +4 -7
  52. package/dist/.setup/{room-info-DAJKw-I8.mjs → room-info-BSvDbUmt.mjs} +6 -8
  53. package/dist/.setup/{runtime-1kn1P6io.mjs → runtime-Ck8TjD7L.mjs} +1 -2
  54. package/dist/.setup/{doctor-contract-CsTNmbMa.mjs → runtime-doctor-migrations-CSvRANPN.mjs} +17 -58
  55. package/dist/.setup/{runtime-setter-api-i2MOXoT3.mjs → runtime-setter-api-CpwhcBQK.mjs} +1 -1
  56. package/dist/.setup/{sdk-ByU8So5S.mjs → sdk-BYR5_wri.mjs} +32 -47
  57. package/dist/.setup/{secret-contract-DxyzKSzf.mjs → secret-contract-AKnr45nw.mjs} +2 -3
  58. package/dist/.setup/{secret-contract-api-Dukgvike.mjs → secret-contract-api-DMSwMIxd.mjs} +1 -1
  59. package/dist/.setup/{send-CFx1h7xE.mjs → send-BMe_VcxP.mjs} +24 -40
  60. package/dist/.setup/{send-currentness-C2rMVVIQ.mjs → send-currentness-CAUVR-f3.mjs} +2 -4
  61. package/dist/.setup/{setup-bootstrap-DANlsW-o.mjs → setup-bootstrap-Ch6r7Szn.mjs} +4 -5
  62. package/dist/.setup/{setup-core-EQceJMZZ.mjs → setup-core-CRUekZa3.mjs} +13 -20
  63. package/dist/.setup/setup-plugin-api-BZPY4Dt2.mjs +2 -0
  64. package/dist/.setup/{startup-verification-UU8DUvi4.mjs → startup-verification-Cv_NoW_O.mjs} +4 -5
  65. package/dist/.setup/{state-layout-walk-BQMgMykU.mjs → state-layout-walk-BqCZTHpp.mjs} +2 -3
  66. package/dist/.setup/{storage-l8V0XsGM.mjs → storage-B94yQdJy.mjs} +17 -12
  67. package/dist/.setup/{storage-paths-B51JM-pC.mjs → storage-paths-e_Vq6cvw.mjs} +1 -2
  68. package/dist/.setup/{subagent-hooks-CSY4iwa_.mjs → subagent-hooks-CT-rdJmh.mjs} +2 -3
  69. package/dist/.setup/{sync-cache-state-Cnm4TCEI.mjs → sync-cache-state-B-FayxeA.mjs} +7 -6
  70. package/dist/.setup/{target-ids-HhcaKX1n.mjs → target-ids-DltG_ZHJ.mjs} +1 -2
  71. package/dist/.setup/{thread-binding-api-BvuaKpd0.mjs → thread-binding-api-OtSciHmZ.mjs} +2 -3
  72. package/dist/.setup/{thread-bindings-C0gv7BEN.mjs → thread-bindings-CB-jqrf4.mjs} +7 -9
  73. package/dist/.setup/{thread-bindings-shared-CPjUA0Ib.mjs → thread-bindings-shared-FMu_szTm.mjs} +1 -2
  74. package/dist/.setup/{tool-actions-DGYRJDEV.mjs → tool-actions-DjPJ6tpr.mjs} +18 -23
  75. package/dist/.setup/{url-validation-CF6pG6eE.mjs → url-validation-C77p4qT9.mjs} +1 -2
  76. package/dist/.setup/{verification-DUxuApWC.mjs → verification-BqjyjLoq.mjs} +4 -5
  77. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
  78. package/dist/api.js +8 -8
  79. package/dist/auth-presence.js +2 -3
  80. package/dist/channel-plugin-api.js +1 -1
  81. package/dist/cli-metadata.js +1 -1
  82. package/dist/contract-api.js +2 -2
  83. package/dist/doctor-contract-api.js +51 -23
  84. package/dist/helper-api.js +3 -3
  85. package/dist/index.js +3 -4
  86. package/dist/plugin-entry.handlers.runtime.js +3 -4
  87. package/dist/runtime-api.js +7 -8
  88. package/dist/runtime-setter-api.js +1 -1
  89. package/dist/secret-contract-api.js +1 -1
  90. package/dist/session-binding-contract-api.js +2 -2
  91. package/dist/setup-entry.js +4 -5
  92. package/dist/setup-plugin-api.js +1 -1
  93. package/dist/subagent-hooks-api.js +2 -3
  94. package/dist/thread-binding-api.js +1 -1
  95. package/dist/thread-bindings-runtime.js +1 -1
  96. package/node_modules/matrix-js-sdk/lib/http-api/utils.js +3 -1
  97. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js +7 -1
  98. package/node_modules/matrix-js-sdk/src/http-api/utils.ts +5 -1
  99. package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +7 -1
  100. package/package.json +4 -4
  101. package/dist/.setup/setup-plugin-api-f8mWghxf.mjs +0 -2
@@ -1,22 +1,22 @@
1
- import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { a as resolveMatrixAccountConfig, i as resolveMatrixAccountAllowlistConfig } from "./account-config-CRsKoMqJ.mjs";
3
- import { h as resolveConfiguredMatrixBotUserIds } from "./setup-core-EQceJMZZ.mjs";
4
- import { a as resolveMatrixThreadRouting, i as resolveMatrixInboundRouteAsync, n as resolveMatrixStoredSessionMeta, o as resolveMatrixRoomConfig } from "./channel-CqkLHNdp.mjs";
5
- import { a as resolveMatrixAllowListMatch, i as normalizeMatrixUserId, r as normalizeMatrixAllowList } from "./channel.setup-ClA7V_Ba.mjs";
6
- import { n as isMatrixQualifiedUserId, r as isMatrixRoomId, t as isMatrixInviteAutoJoinTarget } from "./target-ids-HhcaKX1n.mjs";
7
- import { a as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-C2rMVVIQ.mjs";
8
- import { c as isStrictDirectMembership, f as resolveMatrixReplyToEventId, h as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, i as promoteMatrixDirectRoomCandidate, p as resolveMatrixThreadRootId, s as hasDirectMatrixMemberFlag, u as readJoinedMatrixMembers, v as RelationType } from "./direct-management-B3wYhx_M.mjs";
9
- import { _ as isPollEventType, c as formatMatrixMessageText, d as resolveMatrixReplacementContent, h as formatPollAsText, l as isLikelyBareFilename, r as sendMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollStartType, w as setBoundedMap, y as parsePollStart } from "./send-CFx1h7xE.mjs";
10
- import { t as createMatrixThreadBindingManager } from "./thread-bindings-C0gv7BEN.mjs";
11
- import { a as isMatrixStartupAbortError, c as getMatrixMonitorTaskSignal, d as resolveMatrixAuthContext, l as backfillMatrixAuthDeviceIdAfterStartup, n as acquireSharedMatrixClient, o as throwIfMatrixStartupAborted, s as createMatrixMonitorTaskRunner, u as resolveMatrixAuth } from "./client-C4Gibhzl.mjs";
12
- import { i as readMatrixMessages, l as fetchMatrixPollSnapshot } from "./messages-O6G0-_xr.mjs";
13
- import { i as isMatrixMediaSizeLimitError, r as MatrixMediaSizeLimitError } from "./http-client-ByR4STVQ.mjs";
14
- import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-C0bqZr89.mjs";
15
- import { t as resolveMatrixTargets } from "./resolve-targets-BJ5sIKeM.mjs";
16
- import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-D5_IsDIy.mjs";
17
- import { createMatrixInboundEventDeduper } from "./inbound-dedupe-C-EBGY0B.mjs";
18
- import { a as isMatrixAccessTokenInvalidatedError, d as isMatrixDisconnectedSyncState, f as isMatrixReadySyncState, p as isMatrixTerminalSyncState } from "./client-support-D-xHScuo.mjs";
19
- import { r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-DAJKw-I8.mjs";
1
+ import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
+ import { a as resolveMatrixAccountConfig, i as resolveMatrixAccountAllowlistConfig } from "./account-config-CVM2a28p.mjs";
3
+ import { h as resolveConfiguredMatrixBotUserIds } from "./setup-core-CRUekZa3.mjs";
4
+ import { a as resolveMatrixThreadRouting, i as resolveMatrixInboundRouteAsync, n as resolveMatrixStoredSessionMeta, o as resolveMatrixRoomConfig } from "./channel-DYRabwmj.mjs";
5
+ import { a as resolveMatrixAllowListMatch, i as normalizeMatrixUserId, r as normalizeMatrixAllowList } from "./channel.setup-Dp7V9AgV.mjs";
6
+ import { n as isMatrixQualifiedUserId, r as isMatrixRoomId, t as isMatrixInviteAutoJoinTarget } from "./target-ids-DltG_ZHJ.mjs";
7
+ import { a as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-CAUVR-f3.mjs";
8
+ import { c as isStrictDirectMembership, f as resolveMatrixReplyToEventId, h as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, i as promoteMatrixDirectRoomCandidate, p as resolveMatrixThreadRootId, s as hasDirectMatrixMemberFlag, u as readJoinedMatrixMembers, v as RelationType } from "./direct-management-BOYMqZJQ.mjs";
9
+ import { _ as isPollEventType, c as formatMatrixMessageText, d as resolveMatrixReplacementContent, h as formatPollAsText, l as isLikelyBareFilename, r as sendMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollStartType, w as setBoundedMap, y as parsePollStart } from "./send-BMe_VcxP.mjs";
10
+ import { t as createMatrixThreadBindingManager } from "./thread-bindings-CB-jqrf4.mjs";
11
+ import { a as isMatrixStartupAbortError, c as getMatrixMonitorTaskSignal, d as resolveMatrixAuthContext, l as backfillMatrixAuthDeviceIdAfterStartup, n as acquireSharedMatrixClient, o as throwIfMatrixStartupAborted, s as createMatrixMonitorTaskRunner, u as resolveMatrixAuth } from "./client-BIsYqIzM.mjs";
12
+ import { i as readMatrixMessages, l as fetchMatrixPollSnapshot } from "./messages-Dt51OgyD.mjs";
13
+ import { i as isMatrixMediaSizeLimitError, r as MatrixMediaSizeLimitError } from "./http-client-CxTmU1kT.mjs";
14
+ import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-B8h2BwR2.mjs";
15
+ import { t as resolveMatrixTargets } from "./resolve-targets-vlr765on.mjs";
16
+ import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-CLloQ6H7.mjs";
17
+ import { createMatrixInboundEventDeduper } from "./inbound-dedupe-CZnOq0ja.mjs";
18
+ import { a as isMatrixAccessTokenInvalidatedError, d as isMatrixDisconnectedSyncState, f as isMatrixReadySyncState, p as isMatrixTerminalSyncState } from "./client-support-CFofPPPm.mjs";
19
+ import { r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-BSvDbUmt.mjs";
20
20
  import { channelBlockedPatch, channelReadyPatch, channelStoppedPatch, createTransportActivityStatusPatch } from "openclaw/plugin-sdk/gateway-runtime";
21
21
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
22
22
  import { createChannelDeliveryAccumulator, createChannelProgressDraftCompositor, createLivePreviewLifecycle, createPreviewMessageReceipt, createReplyPrefixOptions, createTypingCallbacks, logTypingFailure, resolveChannelStreamingBlockEnabled, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
@@ -50,7 +50,7 @@ import { createChannelPreflightAudio, formatAudioTranscriptForAgent } from "open
50
50
  import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
51
51
  import { buildInboundHistoryFromEntries } from "openclaw/plugin-sdk/reply-history";
52
52
  import { decodeHtmlEntities } from "openclaw/plugin-sdk/html-entity-runtime";
53
- //#region extensions/matrix/src/matrix/monitor/auto-join.ts
53
+ // extensions/matrix/src/matrix/monitor/auto-join.ts
54
54
  function registerMatrixAutoJoin(params) {
55
55
  const { client, accountConfig, runtime } = params;
56
56
  const core = getMatrixRuntime();
@@ -109,8 +109,7 @@ function registerMatrixAutoJoin(params) {
109
109
  client.off("room.invite", onInvite);
110
110
  };
111
111
  }
112
- //#endregion
113
- //#region extensions/matrix/src/matrix/monitor/config.ts
112
+ // extensions/matrix/src/matrix/monitor/config.ts
114
113
  function normalizeMatrixUserLookupEntry(raw) {
115
114
  return raw.replace(/^matrix:/i, "").replace(/^user:/i, "").trim();
116
115
  }
@@ -400,8 +399,7 @@ async function resolveMatrixMonitorConfig(params) {
400
399
  roomsConfig
401
400
  };
402
401
  }
403
- //#endregion
404
- //#region extensions/matrix/src/matrix/monitor/direct.ts
402
+ // extensions/matrix/src/matrix/monitor/direct.ts
405
403
  const DM_CACHE_TTL_MS = 3e4;
406
404
  const RECENT_INVITE_TTL_MS = 3e4;
407
405
  const MAX_DM_ROOMS = 1024;
@@ -597,8 +595,7 @@ function createDirectRoomTracker(client, opts = {}) {
597
595
  }
598
596
  };
599
597
  }
600
- //#endregion
601
- //#region extensions/matrix/src/matrix/monitor/types.ts
598
+ // extensions/matrix/src/matrix/monitor/types.ts
602
599
  const EventType = {
603
600
  RoomMessage: "m.room.message",
604
601
  RoomMessageEncrypted: "m.room.encrypted",
@@ -606,8 +603,7 @@ const EventType = {
606
603
  Location: "m.location",
607
604
  Reaction: MATRIX_REACTION_EVENT_TYPE
608
605
  };
609
- //#endregion
610
- //#region extensions/matrix/src/matrix/monitor/access-state.ts
606
+ // extensions/matrix/src/matrix/monitor/access-state.ts
611
607
  function normalizeMatrixEntry(raw) {
612
608
  return normalizeMatrixAllowList([raw ?? ""])[0] ?? null;
613
609
  }
@@ -713,8 +709,7 @@ async function resolveMatrixMonitorCommandAccess(state, params) {
713
709
  }
714
710
  })).commandAccess;
715
711
  }
716
- //#endregion
717
- //#region extensions/matrix/src/matrix/monitor/verification-utils.ts
712
+ // extensions/matrix/src/matrix/monitor/verification-utils.ts
718
713
  const VERIFICATION_EVENT_PREFIX = "m.key.verification.";
719
714
  const VERIFICATION_REQUEST_MSGTYPE = "m.key.verification.request";
720
715
  const VERIFICATION_NOTICE_PREFIXES = [
@@ -742,12 +737,11 @@ const matrixVerificationConstants = {
742
737
  eventPrefix: VERIFICATION_EVENT_PREFIX,
743
738
  requestMsgtype: VERIFICATION_REQUEST_MSGTYPE
744
739
  };
745
- //#endregion
746
- //#region extensions/matrix/src/matrix/monitor/verification-events.ts
740
+ // extensions/matrix/src/matrix/monitor/verification-events.ts
747
741
  const MAX_TRACKED_VERIFICATION_EVENTS = 1024;
748
742
  const SAS_NOTICE_RETRY_DELAY_MS = 750;
749
743
  const VERIFICATION_EVENT_STARTUP_GRACE_MS = 3e4;
750
- const loadMatrixDirectRoomDeps = createLazyRuntimeModule(() => Promise.all([import("./direct-management-B3wYhx_M.mjs").then((n) => n.t), import("./direct-management-B3wYhx_M.mjs").then((n) => n.o)]).then(([directManagementModule, directRoomModule]) => ({
744
+ const loadMatrixDirectRoomDeps = createLazyRuntimeModule(() => Promise.all([import("./direct-management-BOYMqZJQ.mjs").then((n) => n.t), import("./direct-management-BOYMqZJQ.mjs").then((n) => n.o)]).then(([directManagementModule, directRoomModule]) => ({
751
745
  inspectMatrixDirectRooms: directManagementModule.inspectMatrixDirectRooms,
752
746
  isStrictDirectRoom: directRoomModule.isStrictDirectRoom
753
747
  })));
@@ -1045,8 +1039,7 @@ function createMatrixVerificationEventRouter(params) {
1045
1039
  routeVerificationSummary
1046
1040
  };
1047
1041
  }
1048
- //#endregion
1049
- //#region extensions/matrix/src/matrix/monitor/events.ts
1042
+ // extensions/matrix/src/matrix/monitor/events.ts
1050
1043
  const MATRIX_POST_HEALTHY_SYNC_DECRYPT_FAILURE_WINDOW_MS = 12e4;
1051
1044
  const MATRIX_POST_HEALTHY_SYNC_DECRYPT_FAILURE_THRESHOLD = 3;
1052
1045
  const MATRIX_POST_HEALTHY_SYNC_DECRYPT_FAILURE_SAMPLE_LIMIT = 3;
@@ -1346,8 +1339,7 @@ function registerMatrixMonitorEvents(params) {
1346
1339
  client.off("room.event", onRoomEvent);
1347
1340
  };
1348
1341
  }
1349
- //#endregion
1350
- //#region extensions/matrix/src/matrix/monitor/context-summary.ts
1342
+ // extensions/matrix/src/matrix/monitor/context-summary.ts
1351
1343
  const MAX_CONTEXT_BODY_LENGTH = 500;
1352
1344
  function truncateMatrixContextBody(value) {
1353
1345
  if (value.length <= MAX_CONTEXT_BODY_LENGTH) return value;
@@ -1365,8 +1357,7 @@ function summarizeMatrixMessageContextEvent(event) {
1365
1357
  msgtype: normalizeOptionalString(content.msgtype)
1366
1358
  });
1367
1359
  }
1368
- //#endregion
1369
- //#region extensions/matrix/src/matrix/monitor/event-context.ts
1360
+ // extensions/matrix/src/matrix/monitor/event-context.ts
1370
1361
  function createMatrixEventContextResolver(params) {
1371
1362
  const cache = /* @__PURE__ */ new Map();
1372
1363
  const isThread = params.kind === "thread";
@@ -1413,8 +1404,7 @@ function createMatrixEventContextResolver(params) {
1413
1404
  return context;
1414
1405
  };
1415
1406
  }
1416
- //#endregion
1417
- //#region extensions/matrix/src/matrix/monitor/ack-config.ts
1407
+ // extensions/matrix/src/matrix/monitor/ack-config.ts
1418
1408
  function resolveMatrixAckReactionConfig(params) {
1419
1409
  const matrixConfig = params.cfg.channels?.matrix;
1420
1410
  const accountConfig = resolveMatrixAccountConfig({
@@ -1429,8 +1419,7 @@ function resolveMatrixAckReactionConfig(params) {
1429
1419
  ackReactionScope: accountConfig.ackReactionScope ?? matrixConfig?.ackReactionScope ?? params.cfg.messages?.ackReactionScope ?? "group-mentions"
1430
1420
  };
1431
1421
  }
1432
- //#endregion
1433
- //#region extensions/matrix/src/matrix/monitor/preflight-audio.ts
1422
+ // extensions/matrix/src/matrix/monitor/preflight-audio.ts
1434
1423
  function isMatrixAudioContent(params) {
1435
1424
  if (params.msgtype === "m.audio") return true;
1436
1425
  if (params.msgtype === "m.file" && typeof params.mimetype === "string") return params.mimetype.toLowerCase().startsWith("audio/");
@@ -1462,8 +1451,7 @@ async function resolveMatrixPreflightAudioTranscript(params) {
1462
1451
  abortSignal: params.abortSignal
1463
1452
  });
1464
1453
  }
1465
- //#endregion
1466
- //#region extensions/matrix/src/matrix/monitor/handler-helpers.ts
1454
+ // extensions/matrix/src/matrix/monitor/handler-helpers.ts
1467
1455
  const MATRIX_TOOL_PROGRESS_MAX_CHARS = 300;
1468
1456
  const MAX_TRACKED_SHARED_DM_CONTEXT_NOTICES = 512;
1469
1457
  function resolveMatrixMentionPrecheckText(params) {
@@ -1572,13 +1560,12 @@ function resolveMatrixAllowBotsMode(value) {
1572
1560
  function formatMatrixToolProgressMarkdownCode(text) {
1573
1561
  return `\`${(text.length <= MATRIX_TOOL_PROGRESS_MAX_CHARS ? text : `${truncateUtf16Safe(text, 299).trimEnd()}...`).replaceAll("`", "'")}\``;
1574
1562
  }
1575
- //#endregion
1576
- //#region extensions/matrix/src/matrix/monitor/handler-runtime.ts
1577
- const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-CFx1h7xE.mjs").then((n) => n.s));
1563
+ // extensions/matrix/src/matrix/monitor/handler-runtime.ts
1564
+ const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-BMe_VcxP.mjs").then((n) => n.s));
1578
1565
  const loadAcpBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/acp-binding-runtime"));
1579
1566
  const loadSessionBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/session-binding-runtime"));
1580
- const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-51DOeO0I.mjs"));
1581
- const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-K6Lu-JEI.mjs"));
1567
+ const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-xTg2_wZJ.mjs"));
1568
+ const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-Buru5huX.mjs"));
1582
1569
  async function matrixTextWouldActivateMentions(client, text) {
1583
1570
  const { resolveMatrixMentionsForBody } = await loadMatrixSendModule();
1584
1571
  const mentions = await resolveMatrixMentionsForBody({
@@ -1587,8 +1574,7 @@ async function matrixTextWouldActivateMentions(client, text) {
1587
1574
  });
1588
1575
  return mentions.room === true || (mentions.user_ids?.length ?? 0) > 0;
1589
1576
  }
1590
- //#endregion
1591
- //#region extensions/matrix/src/matrix/monitor/handler-context.ts
1577
+ // extensions/matrix/src/matrix/monitor/handler-context.ts
1592
1578
  async function resolveMatrixInboundContext(config) {
1593
1579
  const { handler, ingress, roomId, event, eventTs, resolveThreadContext, resolveReplyContext, senderId, sharedDmContextNoticeRooms } = config;
1594
1580
  const { client, core, accountId, runtime, logVerboseMessage, groupPolicy, getRoomInfo, historyLimit, dmSessionScope, resolveStorePath: resolveStorePathImpl, createChannelInboundEnvelopeBuilderAsync: createChannelInboundEnvelopeBuilderImpl, finalizeInboundContext } = handler;
@@ -1788,8 +1774,7 @@ async function resolveMatrixInboundContext(config) {
1788
1774
  sharedDmContextNotice
1789
1775
  };
1790
1776
  }
1791
- //#endregion
1792
- //#region extensions/matrix/src/matrix/monitor/handler-draft-controller.ts
1777
+ // extensions/matrix/src/matrix/monitor/handler-draft-controller.ts
1793
1778
  async function createMatrixDraftController(params) {
1794
1779
  const { streaming, previewToolProgressEnabled, replyToMode, messageId, threadTarget, accountConfig, cfg, accountId, roomId, client, logVerboseMessage } = params;
1795
1780
  const draftStreamingEnabled = streaming !== "off";
@@ -1928,8 +1913,7 @@ async function createMatrixDraftController(params) {
1928
1913
  }
1929
1914
  };
1930
1915
  }
1931
- //#endregion
1932
- //#region extensions/matrix/src/matrix/monitor/room-history.ts
1916
+ // extensions/matrix/src/matrix/monitor/room-history.ts
1933
1917
  /** Maximum entries retained per room (hard cap to bound memory). */
1934
1918
  const DEFAULT_MAX_QUEUE_SIZE = 200;
1935
1919
  /** Maximum number of rooms to retain queues for (FIFO eviction beyond this). */
@@ -2118,8 +2102,7 @@ function createRoomHistoryTracker(maxQueueSize = DEFAULT_MAX_QUEUE_SIZE, maxRoom
2118
2102
  }
2119
2103
  };
2120
2104
  }
2121
- //#endregion
2122
- //#region extensions/matrix/src/matrix/monitor/handler-ingress-access.ts
2105
+ // extensions/matrix/src/matrix/monitor/handler-ingress-access.ts
2123
2106
  async function resolveMatrixIngressAccess(config) {
2124
2107
  const { handler, params: paramsLocal, roomId, event, eventTs, senderId, isReactionEvent, readStoreAllowFrom, shouldSendPairingReply, resolveLiveAccountAllowlists, roomHistoryTracker, commitInboundEventIfClaimed } = config;
2125
2108
  const { core, cfg, accountId, accountConfig, client, logVerboseMessage, groupPolicy, dmEnabled, dmPolicy, dmThreadReplies, threadReplies, roomsConfig, accountAllowBots, configuredBotUserIds, needsRoomAliasesForConfig, getRoomInfo, getMemberDisplayName } = handler;
@@ -2326,8 +2309,7 @@ async function resolveMatrixIngressAccess(config) {
2326
2309
  effectiveRoomUsers
2327
2310
  };
2328
2311
  }
2329
- //#endregion
2330
- //#region src/channels/mention-gating.ts
2312
+ // src/channels/mention-gating.ts
2331
2313
  function resolveBotThreadMentionPolicy(params) {
2332
2314
  if (!params.isBotOwnedThread || params.requireMentionInBotThreads === void 0) return {
2333
2315
  requireMention: params.requireMention,
@@ -2338,8 +2320,7 @@ function resolveBotThreadMentionPolicy(params) {
2338
2320
  implicitMentionKinds: params.requireMentionInBotThreads ? params.implicitMentionKinds?.filter((kind) => kind === "native") : params.implicitMentionKinds
2339
2321
  };
2340
2322
  }
2341
- //#endregion
2342
- //#region extensions/matrix/src/matrix/monitor/media.ts
2323
+ // extensions/matrix/src/matrix/monitor/media.ts
2343
2324
  const MATRIX_MEDIA_DOWNLOAD_IDLE_TIMEOUT_MS = 3e4;
2344
2325
  async function downloadMatrixMedia(params) {
2345
2326
  if (typeof params.sizeBytes === "number" && params.sizeBytes > params.maxBytes) throw new MatrixMediaSizeLimitError();
@@ -2365,8 +2346,7 @@ async function downloadMatrixMedia(params) {
2365
2346
  placeholder: "[matrix media]"
2366
2347
  };
2367
2348
  }
2368
- //#endregion
2369
- //#region extensions/matrix/src/matrix/monitor/mentions.ts
2349
+ // extensions/matrix/src/matrix/monitor/mentions.ts
2370
2350
  const MATRIX_HTML_ENTITY_RE = /&(?:#x?[0-9a-f]+|amp|apos|gt|lt|nbsp|quot);/gi;
2371
2351
  function decodeVisibleHtmlEntities(value) {
2372
2352
  return value.replace(MATRIX_HTML_ENTITY_RE, (entity) => {
@@ -2491,8 +2471,7 @@ function resolveMentions(params) {
2491
2471
  hasExplicitMention: explicitMention
2492
2472
  };
2493
2473
  }
2494
- //#endregion
2495
- //#region extensions/matrix/src/matrix/monitor/handler-ingress-content.ts
2474
+ // extensions/matrix/src/matrix/monitor/handler-ingress-content.ts
2496
2475
  async function resolveMatrixIngressContent(config) {
2497
2476
  const { handler, params: paramsLocal, access, roomId, event, eventType, isPollEvent, eventTs, senderId, roomHistoryTracker, resolveThreadContext, commitInboundEventIfClaimed } = config;
2498
2477
  const { client, core, accountId, accountConfig, logger, logVerboseMessage, historyLimit, mediaMaxBytes, dmSessionScope, getMemberDisplayName } = handler;
@@ -2789,8 +2768,7 @@ async function resolveMatrixIngressContent(config) {
2789
2768
  threadContext
2790
2769
  };
2791
2770
  }
2792
- //#endregion
2793
- //#region extensions/matrix/src/matrix/monitor/location.ts
2771
+ // extensions/matrix/src/matrix/monitor/location.ts
2794
2772
  function decodeGeoUriParamValue(value) {
2795
2773
  try {
2796
2774
  return decodeURIComponent(value);
@@ -2847,8 +2825,7 @@ function resolveMatrixLocation(params) {
2847
2825
  context: toLocationContext(location)
2848
2826
  };
2849
2827
  }
2850
- //#endregion
2851
- //#region extensions/matrix/src/matrix/monitor/handler-ingress-prefix.ts
2828
+ // extensions/matrix/src/matrix/monitor/handler-ingress-prefix.ts
2852
2829
  async function readMatrixIngressPrefix(config) {
2853
2830
  const { client, senderId, dropPreStartupMessages, eventTs, eventAge, startupMs, event, eventType, eventId, inboundDeduper, roomId, logVerboseMessage, directTracker, claimInboundReplay } = config;
2854
2831
  const selfUserId = await client.getUserId();
@@ -2894,8 +2871,7 @@ async function readMatrixIngressPrefix(config) {
2894
2871
  selfUserId
2895
2872
  };
2896
2873
  }
2897
- //#endregion
2898
- //#region extensions/matrix/src/matrix/monitor/replies.ts
2874
+ // extensions/matrix/src/matrix/monitor/replies.ts
2899
2875
  function joinMatrixVisibleContent(contents) {
2900
2876
  return contents.filter((content) => Boolean(content)).join("\n");
2901
2877
  }
@@ -2990,8 +2966,7 @@ async function deliverMatrixReplies(params) {
2990
2966
  }
2991
2967
  return accepted.result();
2992
2968
  }
2993
- //#endregion
2994
- //#region extensions/matrix/src/matrix/monitor/handler-reply-dispatcher.ts
2969
+ // extensions/matrix/src/matrix/monitor/handler-reply-dispatcher.ts
2995
2970
  function createMatrixReplyDispatcher(config) {
2996
2971
  const { cfg, prefixOptions, humanDelay, typingCallbacks, streaming, draftStream, draftController, client, roomId, runtime, replyToMode, threadTarget, replyToEventId, accountId, mediaLocalRoots, logVerboseMessage } = config;
2997
2972
  const quietDraftStreaming = streaming === "quiet" || streaming === "progress";
@@ -3121,8 +3096,7 @@ function createMatrixReplyDispatcher(config) {
3121
3096
  nonFinalReplyDeliveryFailed: () => nonFinalReplyDeliveryFailed
3122
3097
  };
3123
3098
  }
3124
- //#endregion
3125
- //#region extensions/matrix/src/matrix/monitor/handler-state.ts
3099
+ // extensions/matrix/src/matrix/monitor/handler-state.ts
3126
3100
  const ALLOW_FROM_STORE_CACHE_TTL_MS = 3e4;
3127
3101
  const PAIRING_REPLY_COOLDOWN_MS = 3e5;
3128
3102
  const MAX_TRACKED_PAIRING_REPLY_SENDERS = 512;
@@ -3209,8 +3183,7 @@ function createMatrixHandlerState(config) {
3209
3183
  shouldSendPairingReply
3210
3184
  };
3211
3185
  }
3212
- //#endregion
3213
- //#region extensions/matrix/src/matrix/monitor/handler.ts
3186
+ // extensions/matrix/src/matrix/monitor/handler.ts
3214
3187
  const SESSION_RESTART_RECOVERY_TOMBSTONE_ERROR_CODE = "SESSION_RESTART_RECOVERY_TOMBSTONE";
3215
3188
  const RESTART_RECOVERY_TOMBSTONE_NOTICE = "This session ended during gateway restart recovery and cannot accept more messages. Send /new or /reset to start a replacement session.";
3216
3189
  function createMatrixRoomMessageHandler(params) {
@@ -3582,8 +3555,7 @@ function createMatrixRoomMessageHandler(params) {
3582
3555
  }
3583
3556
  };
3584
3557
  }
3585
- //#endregion
3586
- //#region extensions/matrix/src/matrix/monitor/recent-invite.ts
3558
+ // extensions/matrix/src/matrix/monitor/recent-invite.ts
3587
3559
  function shouldPromoteRecentInviteRoom(params) {
3588
3560
  if (!params.roomInfo.nameResolved || !params.roomInfo.aliasesResolved) return false;
3589
3561
  const roomAliases = [params.roomInfo.canonicalAlias ?? "", ...params.roomInfo.altAliases].filter(Boolean);
@@ -3594,13 +3566,12 @@ function shouldPromoteRecentInviteRoom(params) {
3594
3566
  aliases: roomAliases
3595
3567
  }).matchSource === void 0;
3596
3568
  }
3597
- //#endregion
3598
- //#region extensions/matrix/src/matrix/monitor/startup.ts
3569
+ // extensions/matrix/src/matrix/monitor/startup.ts
3599
3570
  const loadMatrixStartupMaintenanceDeps = createLazyRuntimeModule(() => Promise.all([
3600
- import("./setup-core-EQceJMZZ.mjs").then((n) => n.f),
3601
- import("./device-health-Be60VF1w.mjs").then((n) => n.t),
3602
- import("./setup-core-EQceJMZZ.mjs").then((n) => n.u),
3603
- import("./startup-verification-UU8DUvi4.mjs")
3571
+ import("./setup-core-CRUekZa3.mjs").then((n) => n.f),
3572
+ import("./device-health-CmvwmCHB.mjs").then((n) => n.t),
3573
+ import("./setup-core-CRUekZa3.mjs").then((n) => n.u),
3574
+ import("./startup-verification-Cv_NoW_O.mjs")
3604
3575
  ]).then(([configUpdateModule, deviceHealthModule, profileModule, startupVerificationModule]) => ({
3605
3576
  updateMatrixAccountConfig: configUpdateModule.updateMatrixAccountConfig,
3606
3577
  summarizeMatrixDeviceHealth: deviceHealthModule.summarizeMatrixDeviceHealth,
@@ -3662,8 +3633,7 @@ async function runMatrixStartupMaintenance(params, deps) {
3662
3633
  params.logger.debug?.("Failed to resolve matrix verification status (non-fatal)", { error: String(err) });
3663
3634
  }
3664
3635
  }
3665
- //#endregion
3666
- //#region extensions/matrix/src/matrix/monitor/status.ts
3636
+ // extensions/matrix/src/matrix/monitor/status.ts
3667
3637
  function cloneLastDisconnect(value) {
3668
3638
  if (!value || typeof value === "string") return value ?? null;
3669
3639
  return { ...value };
@@ -3690,7 +3660,17 @@ function createMatrixMonitorStatusController(params) {
3690
3660
  lastDisconnect: cloneLastDisconnect(status.lastDisconnect)
3691
3661
  });
3692
3662
  };
3663
+ let startupComplete = params.deferReadyUntilStartupComplete !== true;
3664
+ let pendingReadyAt = null;
3665
+ let pendingTransportActivity = false;
3693
3666
  const noteConnected = (at = Date.now(), options) => {
3667
+ if (!startupComplete) {
3668
+ pendingReadyAt = at;
3669
+ pendingTransportActivity ||= options?.transportActivity === true;
3670
+ status.lastEventAt = at;
3671
+ emit();
3672
+ return;
3673
+ }
3694
3674
  const lastConnectedAt = status.connected === true ? status.lastConnectedAt ?? at : at;
3695
3675
  Object.assign(status, channelReadyPatch({
3696
3676
  lastConnectedAt,
@@ -3703,6 +3683,8 @@ function createMatrixMonitorStatusController(params) {
3703
3683
  };
3704
3684
  const noteDisconnected = (paramsLocal) => {
3705
3685
  const at = paramsLocal.at ?? Date.now();
3686
+ pendingReadyAt = null;
3687
+ pendingTransportActivity = false;
3706
3688
  const tokenInvalidated = isMatrixAccessTokenInvalidatedError(paramsLocal.error);
3707
3689
  if (status.lifecycle === "blocked" && status.terminalDisconnect === true && !tokenInvalidated) {
3708
3690
  status.connected = false;
@@ -3728,6 +3710,16 @@ function createMatrixMonitorStatusController(params) {
3728
3710
  };
3729
3711
  emit();
3730
3712
  return {
3713
+ markStartupComplete(at = Date.now()) {
3714
+ startupComplete = true;
3715
+ if (pendingReadyAt !== null) {
3716
+ const readyAt = Math.max(pendingReadyAt, at);
3717
+ const transportActivity = pendingTransportActivity;
3718
+ pendingReadyAt = null;
3719
+ pendingTransportActivity = false;
3720
+ noteConnected(readyAt, { transportActivity });
3721
+ }
3722
+ },
3731
3723
  noteSyncState(state, error, at = Date.now()) {
3732
3724
  if (isMatrixReadySyncState(state)) {
3733
3725
  noteConnected(at, { transportActivity: state === "SYNCING" });
@@ -3765,8 +3757,7 @@ function createMatrixMonitorStatusController(params) {
3765
3757
  }
3766
3758
  };
3767
3759
  }
3768
- //#endregion
3769
- //#region extensions/matrix/src/matrix/monitor/sync-lifecycle.ts
3760
+ // extensions/matrix/src/matrix/monitor/sync-lifecycle.ts
3770
3761
  function formatSyncLifecycleError(state, error) {
3771
3762
  if (error instanceof Error) return error;
3772
3763
  const message = typeof error === "string" && error.trim() ? error.trim() : void 0;
@@ -3819,8 +3810,7 @@ function createMatrixMonitorSyncLifecycle(params) {
3819
3810
  }
3820
3811
  };
3821
3812
  }
3822
- //#endregion
3823
- //#region extensions/matrix/src/matrix/monitor/index.ts
3813
+ // extensions/matrix/src/matrix/monitor/index.ts
3824
3814
  function resolveMatrixStreamingMode(streaming) {
3825
3815
  const mode = streaming?.mode;
3826
3816
  if (mode === "partial" || mode === "quiet" || mode === "progress") return mode;
@@ -3912,7 +3902,8 @@ async function monitorMatrixProvider(opts = {}) {
3912
3902
  const statusController = createMatrixMonitorStatusController({
3913
3903
  accountId: auth.accountId,
3914
3904
  baseUrl: auth.homeserver,
3915
- statusSink: opts.setStatus
3905
+ statusSink: opts.setStatus,
3906
+ deferReadyUntilStartupComplete: true
3916
3907
  });
3917
3908
  let cleanedUp = false;
3918
3909
  let cleanupPromise = null;
@@ -4195,6 +4186,7 @@ async function monitorMatrixProvider(opts = {}) {
4195
4186
  await cleanup("stop");
4196
4187
  return;
4197
4188
  }
4189
+ statusController.markStartupComplete();
4198
4190
  await Promise.race([waitUntilAbort(monitorLifecycleSignal, async () => {
4199
4191
  try {
4200
4192
  logVerboseMessage("matrix: stopping client");
@@ -4214,5 +4206,4 @@ async function monitorMatrixProvider(opts = {}) {
4214
4206
  throw err;
4215
4207
  }
4216
4208
  }
4217
- //#endregion
4218
4209
  export { monitorMatrixProvider };
@@ -1,15 +1,15 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
2
- import { i as requiresExplicitMatrixDefaultAccount, u as resolveMatrixEnvAuthReadiness } from "./account-selection-Bs_jCAaG.mjs";
3
- import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
4
- import { a as createMatrixSetupDmPolicy, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, n as finishMatrixSetupAfterConfigWrite, o as moveSingleMatrixAccountConfigToNamedAccount, p as updateMatrixAccountConfig, v as resolveMatrixAccountAsync } from "./setup-core-EQceJMZZ.mjs";
5
- import { r as isMatrixRoomId, t as isMatrixInviteAutoJoinTarget } from "./target-ids-HhcaKX1n.mjs";
6
- import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-CF6pG6eE.mjs";
7
- import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-L_1bUAGL.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
+ import { i as requiresExplicitMatrixDefaultAccount, u as resolveMatrixEnvAuthReadiness } from "./account-selection-BPFpdMIw.mjs";
3
+ import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
4
+ import { a as createMatrixSetupDmPolicy, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, n as finishMatrixSetupAfterConfigWrite, o as moveSingleMatrixAccountConfigToNamedAccount, p as updateMatrixAccountConfig, v as resolveMatrixAccountAsync } from "./setup-core-CRUekZa3.mjs";
5
+ import { r as isMatrixRoomId, t as isMatrixInviteAutoJoinTarget } from "./target-ids-DltG_ZHJ.mjs";
6
+ import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-C77p4qT9.mjs";
7
+ import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-O7rEnklr.mjs";
8
8
  import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
9
9
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedOptionalString, normalizeUniqueStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
10
10
  import { formatDocsLink, hasConfiguredSecretInput, mergeAllowFromEntries, normalizeAccountId as normalizeAccountId$1, promptAccountId, promptChannelAccessConfig, setSetupChannelEnabled, splitSetupEntries } from "openclaw/plugin-sdk/setup";
11
11
  import { isPrivateOrLoopbackHost } from "openclaw/plugin-sdk/ssrf-runtime";
12
- //#region extensions/matrix/src/onboarding.ts
12
+ // extensions/matrix/src/onboarding.ts
13
13
  var onboarding_exports = /* @__PURE__ */ __exportAll({ matrixOnboardingAdapter: () => matrixOnboardingAdapter });
14
14
  const channel = "matrix";
15
15
  const matrixInviteAutoJoinOptions = [
@@ -87,7 +87,7 @@ async function promptMatrixAllowFrom(params) {
87
87
  pending.push(part);
88
88
  }
89
89
  if (pending.length > 0) {
90
- const { resolveMatrixTargets } = await import("./resolve-targets-BJ5sIKeM.mjs").then((n) => n.n);
90
+ const { resolveMatrixTargets } = await import("./resolve-targets-vlr765on.mjs").then((n) => n.n);
91
91
  const results = await resolveMatrixTargets({
92
92
  cfg,
93
93
  accountId,
@@ -204,7 +204,7 @@ async function configureMatrixAccessPrompts(params) {
204
204
  resolvedIds.push(cleaned);
205
205
  continue;
206
206
  }
207
- const { listMatrixDirectoryGroupsLive } = await import("./directory-live-BpSz-FQB.mjs").then((n) => n.t);
207
+ const { listMatrixDirectoryGroupsLive } = await import("./directory-live-tItssg9q.mjs").then((n) => n.t);
208
208
  const matches = await listMatrixDirectoryGroupsLive({
209
209
  cfg: next,
210
210
  accountId: params.accountId,
@@ -454,5 +454,4 @@ const matrixOnboardingAdapter = {
454
454
  dmPolicy,
455
455
  disable: (cfg) => setSetupChannelEnabled(cfg, channel, false)
456
456
  };
457
- //#endregion
458
457
  export { onboarding_exports as n, matrixOnboardingAdapter as t };
@@ -1,12 +1,12 @@
1
- import { r as matrixPresentationCapabilities } from "./channel-CqkLHNdp.mjs";
2
- import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-CFx1h7xE.mjs";
1
+ import { r as matrixPresentationCapabilities } from "./channel-DYRabwmj.mjs";
2
+ import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-BMe_VcxP.mjs";
3
3
  import { createMessageReceiptFromOutboundResults, createReplyToFanout, resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-outbound";
4
4
  import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";
6
6
  import { attachChannelToResult } from "openclaw/plugin-sdk/channel-send-result";
7
7
  import { renderMessagePresentationFallbackText, renderPresentationForDelivery } from "openclaw/plugin-sdk/interactive-runtime";
8
8
  import { resolveSendableOutboundReplyParts, sendPayloadMediaSequence } from "openclaw/plugin-sdk/reply-payload";
9
- //#region extensions/matrix/src/outbound.ts
9
+ // extensions/matrix/src/outbound.ts
10
10
  const MATRIX_OPENCLAW_PRESENTATION_KEY = "com.openclaw.presentation";
11
11
  const MATRIX_OPENCLAW_PRESENTATION_TYPE = "message.presentation";
12
12
  const MATRIX_EMPTY_PRESENTATION_FALLBACK_TEXT = "---";
@@ -181,5 +181,4 @@ const matrixOutbound = {
181
181
  };
182
182
  }
183
183
  };
184
- //#endregion
185
184
  export { prepareMatrixReplyPayload as n, resolveMatrixExtraContent as r, matrixOutbound as t };
@@ -1,9 +1,9 @@
1
- import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { d as syncMatrixOwnProfile, p as updateMatrixAccountConfig } from "./setup-core-EQceJMZZ.mjs";
3
- import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
4
- import { n as withResolvedActionClient } from "./client-C7pZ6gAl.mjs";
1
+ import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
+ import { d as syncMatrixOwnProfile, p as updateMatrixAccountConfig } from "./setup-core-CRUekZa3.mjs";
3
+ import { n as resolveMatrixConfigPath } from "./config-paths-DBpHxDyc.mjs";
4
+ import { n as withResolvedActionClient } from "./client-DL_aELCJ.mjs";
5
5
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
6
- //#region extensions/matrix/src/matrix/actions/profile.ts
6
+ // extensions/matrix/src/matrix/actions/profile.ts
7
7
  async function updateMatrixOwnProfile(opts = {}) {
8
8
  const displayName = opts.displayName?.trim();
9
9
  const avatarUrl = opts.avatarUrl?.trim();
@@ -25,8 +25,7 @@ async function updateMatrixOwnProfile(opts = {}) {
25
25
  });
26
26
  }, "persist");
27
27
  }
28
- //#endregion
29
- //#region extensions/matrix/src/profile-update.ts
28
+ // extensions/matrix/src/profile-update.ts
30
29
  async function applyMatrixProfileUpdate(params) {
31
30
  const runtime = getMatrixRuntime();
32
31
  const persistedCfg = runtime.config.current();
@@ -61,5 +60,4 @@ async function applyMatrixProfileUpdate(params) {
61
60
  configPath: resolveMatrixConfigPath(updated, accountId)
62
61
  };
63
62
  }
64
- //#endregion
65
63
  export { updateMatrixOwnProfile as n, applyMatrixProfileUpdate as t };
@@ -1,16 +1,16 @@
1
- import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
- import { a as resolveMatrixThreadRouting, i as resolveMatrixInboundRouteAsync } from "./channel-CqkLHNdp.mjs";
3
- import { c as extractMatrixReactionAnnotation } from "./send-currentness-C2rMVVIQ.mjs";
4
- import { p as resolveMatrixThreadRootId } from "./direct-management-B3wYhx_M.mjs";
5
- import { i as resolveMatrixApprovalReactionTargetWithPersistence, o as unregisterMatrixApprovalReactionTargetsForApproval } from "./approval-reactions-D2pEUrFS.mjs";
1
+ import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
2
+ import { a as resolveMatrixThreadRouting, i as resolveMatrixInboundRouteAsync } from "./channel-DYRabwmj.mjs";
3
+ import { c as extractMatrixReactionAnnotation } from "./send-currentness-CAUVR-f3.mjs";
4
+ import { p as resolveMatrixThreadRootId } from "./direct-management-BOYMqZJQ.mjs";
5
+ import { i as resolveMatrixApprovalReactionTargetWithPersistence, o as unregisterMatrixApprovalReactionTargetsForApproval } from "./approval-reactions-DMDBJos0.mjs";
6
6
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
7
7
  import { isApprovalNotFoundError } from "openclaw/plugin-sdk/error-runtime";
8
8
  import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
9
9
  import { getSessionBindingService } from "openclaw/plugin-sdk/session-binding-runtime";
10
- //#region extensions/matrix/src/matrix/monitor/reaction-events.ts
11
- const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./channel-CqkLHNdp.mjs").then((n) => n.s));
10
+ // extensions/matrix/src/matrix/monitor/reaction-events.ts
11
+ const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./channel-DYRabwmj.mjs").then((n) => n.s));
12
12
  const loadExecApprovalResolver = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/approval-gateway-runtime"));
13
- const loadMatrixSend = createLazyRuntimeModule(() => import("./send-CFx1h7xE.mjs").then((n) => n.s));
13
+ const loadMatrixSend = createLazyRuntimeModule(() => import("./send-BMe_VcxP.mjs").then((n) => n.s));
14
14
  function buildMatrixApprovalTerminalText(result) {
15
15
  const approval = result.approval;
16
16
  const terminalLabel = approval.status === "allowed" ? approval.decision === "allow-always" ? "Allowed always" : "Allowed once" : approval.status === "denied" ? "Denied" : approval.status === "expired" ? "Expired" : "Cancelled";
@@ -164,5 +164,4 @@ async function handleInboundMatrixReaction(params) {
164
164
  });
165
165
  params.logVerboseMessage(`matrix: reaction event enqueued room=${params.roomId} target=${reaction.eventId} sender=${params.senderId} emoji=${reaction.key}`);
166
166
  }
167
- //#endregion
168
167
  export { handleInboundMatrixReaction };
@@ -1,8 +1,8 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
2
- import { i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId } from "./target-ids-HhcaKX1n.mjs";
3
- import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-BpSz-FQB.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
+ import { i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId } from "./target-ids-DltG_ZHJ.mjs";
3
+ import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-tItssg9q.mjs";
4
4
  import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
- //#region extensions/matrix/src/resolve-targets.ts
5
+ // extensions/matrix/src/resolve-targets.ts
6
6
  var resolve_targets_exports = /* @__PURE__ */ __exportAll({ resolveMatrixTargets: () => resolveMatrixTargets });
7
7
  function findExactDirectoryMatches(matches, query) {
8
8
  const normalized = normalizeOptionalLowercaseString(query);
@@ -77,5 +77,4 @@ async function resolveMatrixTargets(params) {
77
77
  }
78
78
  return results;
79
79
  }
80
- //#endregion
81
80
  export { resolve_targets_exports as n, resolveMatrixTargets as t };