@openclaw/matrix 2026.11.1 → 2026.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/.setup/{account-config-CVM2a28p.mjs → account-config-CRsKoMqJ.mjs} +2 -1
  2. package/dist/.setup/{account-selection-BPFpdMIw.mjs → account-selection-CWsL5zIU.mjs} +8 -5
  3. package/dist/.setup/{approval-handler.runtime-BvuXpzus.mjs → approval-handler.runtime-Co2elSYS.mjs} +9 -8
  4. package/dist/.setup/{approval-reactions-DMDBJos0.mjs → approval-reactions-D2pEUrFS.mjs} +3 -2
  5. package/dist/.setup/{backup-health-BxH69np2.mjs → backup-health-Dm_YMVFT.mjs} +2 -1
  6. package/dist/.setup/{channel-DYRabwmj.mjs → channel-OgoZc4uR.mjs} +44 -30
  7. package/dist/.setup/{channel.runtime-C0VWk0Ch.mjs → channel.runtime-BbPbs1Hp.mjs} +10 -8
  8. package/dist/.setup/{channel.setup-Dp7V9AgV.mjs → channel.setup-p6oll48W.mjs} +15 -7
  9. package/dist/.setup/{cli-umlumhB6.mjs → cli-C2XKMk1U.mjs} +39 -28
  10. package/dist/.setup/{cli-metadata-DemZndyG.mjs → cli-metadata-C60BW1oa.mjs} +5 -3
  11. package/dist/.setup/{client-BIsYqIzM.mjs → client-BEl7PU1_.mjs} +25 -19
  12. package/dist/.setup/{client-DL_aELCJ.mjs → client-Cxv-iMwp.mjs} +5 -4
  13. package/dist/.setup/{client-bootstrap-kdsygurH.mjs → client-bootstrap-D1vLveT2.mjs} +3 -2
  14. package/dist/.setup/{client-support-CFofPPPm.mjs → client-support-D-xHScuo.mjs} +5 -3
  15. package/dist/.setup/{config-paths-DBpHxDyc.mjs → config-paths-CnREYb1Y.mjs} +2 -1
  16. package/dist/.setup/{create-client-BFkMM7SP.mjs → create-client-CrY1E3hg.mjs} +9 -8
  17. package/dist/.setup/{credentials-read-BOuCoy-p.mjs → credentials-read-Dj7Hj87M.mjs} +6 -5
  18. package/dist/.setup/{credentials-state-jxq29yQw.mjs → credentials-state-B3cuUFwZ.mjs} +2 -1
  19. package/dist/.setup/{credentials-B3MlOOom.mjs → credentials-udso1z0C.mjs} +6 -5
  20. package/dist/.setup/{crypto-node.runtime-E_hqXGxm.mjs → crypto-node.runtime-6Aj_ltHQ.mjs} +2 -1
  21. package/dist/.setup/{crypto-runtime-s3ogwLRO.mjs → crypto-runtime-DqX7VD1W.mjs} +19 -12
  22. package/dist/.setup/{crypto-state-store-CM57gchf.mjs → crypto-state-store-DclM-fO5.mjs} +5 -3
  23. package/dist/.setup/{crypto-store-ownership-Bratn-Np.mjs → crypto-store-ownership-Dr-T40Rp.mjs} +4 -3
  24. package/dist/.setup/{crypto-unsafe-state-doctor-ClzRgr8z.mjs → crypto-unsafe-state-doctor-BG9qMu0B.mjs} +8 -7
  25. package/dist/.setup/{deps-O7rEnklr.mjs → deps-L_1bUAGL.mjs} +2 -1
  26. package/dist/.setup/{device-health-CmvwmCHB.mjs → device-health-D6_ECUVe.mjs} +3 -2
  27. package/dist/.setup/{direct-management-BOYMqZJQ.mjs → direct-management-ZcjZgYEl.mjs} +11 -7
  28. package/dist/.setup/{directory-live-tItssg9q.mjs → directory-live-_yaRaktv.mjs} +6 -5
  29. package/dist/.setup/{doctor-contract-GiXgCj7k.mjs → doctor-contract-BANpMUbP.mjs} +3 -2
  30. package/dist/.setup/{draft-stream-Buru5huX.mjs → draft-stream-vO_qjwJb.mjs} +4 -3
  31. package/dist/.setup/{encryption-guidance-CLloQ6H7.mjs → encryption-guidance-BLUoN4aV.mjs} +4 -3
  32. package/dist/.setup/{env-vars-Bh1iOXJ1.mjs → env-vars-aEBngJPa.mjs} +2 -1
  33. package/dist/.setup/{errors-CL3YJV8U.mjs → errors-Bw4EHwKX.mjs} +2 -1
  34. package/dist/.setup/{event-helpers-DDUjVVf7.mjs → event-helpers-CxNgMQqH.mjs} +2 -1
  35. package/dist/.setup/{exec-approvals-CWeSpE6V.mjs → exec-approvals-BFT-ee9F.mjs} +9 -6
  36. package/dist/.setup/{file-sync-store-D1sEtAap.mjs → file-sync-store-BxUPmUoJ.mjs} +6 -5
  37. package/dist/.setup/{http-client-CxTmU1kT.mjs → http-client-ByR4STVQ.mjs} +7 -4
  38. package/dist/.setup/{idb-persistence-BF0MZglD.mjs → idb-persistence-C2TsCHY2.mjs} +7 -6
  39. package/dist/.setup/{idb-persistence-lock-CH2K6d_3.mjs → idb-persistence-lock-Bh3ZLIsE.mjs} +2 -1
  40. package/dist/.setup/{inbound-dedupe-CZnOq0ja.mjs → inbound-dedupe-sW_gaR44.mjs} +3 -2
  41. package/dist/.setup/{joined-room-encryption-Dl7Sb9FF.mjs → joined-room-encryption-DBbLkdvv.mjs} +3 -2
  42. package/dist/.setup/{logger-BX5kXvh1.mjs → logger-CuAzdD8Q.mjs} +5 -4
  43. package/dist/.setup/{logging-BWPjyW9s.mjs → logging-CoaEyRtA.mjs} +22 -15
  44. package/dist/.setup/{messages-Dt51OgyD.mjs → messages-TuEa_BPZ.mjs} +14 -9
  45. package/dist/.setup/{monitor-BrBbFO8h.mjs → monitor-B7aj9WSD.mjs} +93 -60
  46. package/dist/.setup/{onboarding-QfFvgZ85.mjs → onboarding-DOLEjkg2.mjs} +11 -10
  47. package/dist/.setup/{outbound-B8h2BwR2.mjs → outbound-SIW3NaJ2.mjs} +4 -3
  48. package/dist/.setup/{profile-update-DiXtw0NM.mjs → profile-update-DiXSVBki.mjs} +8 -6
  49. package/dist/.setup/{reaction-events-xTg2_wZJ.mjs → reaction-events-C3DvaS9B.mjs} +9 -8
  50. package/dist/.setup/{resolve-targets-vlr765on.mjs → resolve-targets-Dd70hGcM.mjs} +5 -4
  51. package/dist/.setup/{retired-state-vIr2IB90.mjs → retired-state-C4UnLIg4.mjs} +5 -38
  52. package/dist/.setup/{room-info-BSvDbUmt.mjs → room-info-C13IUffQ.mjs} +8 -6
  53. package/dist/.setup/{runtime-Ck8TjD7L.mjs → runtime-1kn1P6io.mjs} +2 -1
  54. package/dist/.setup/{runtime-doctor-migrations-CSvRANPN.mjs → runtime-doctor-migrations-hxP-CXX7.mjs} +10 -5
  55. package/dist/.setup/runtime-setter-api-DtxDAM-x.mjs +3 -0
  56. package/dist/.setup/{sdk-BYR5_wri.mjs → sdk-DNW03GqJ.mjs} +47 -32
  57. package/dist/.setup/{secret-contract-AKnr45nw.mjs → secret-contract-DxyzKSzf.mjs} +3 -2
  58. package/dist/.setup/secret-contract-api-CiuSYjUy.mjs +3 -0
  59. package/dist/.setup/{send-BMe_VcxP.mjs → send-BGgwE5pV.mjs} +40 -24
  60. package/dist/.setup/{send-currentness-CAUVR-f3.mjs → send-currentness-C2rMVVIQ.mjs} +4 -2
  61. package/dist/.setup/{setup-bootstrap-Ch6r7Szn.mjs → setup-bootstrap-BCbltIf_.mjs} +5 -4
  62. package/dist/.setup/{setup-core-CRUekZa3.mjs → setup-core-Di6NtQ_J.mjs} +20 -13
  63. package/dist/.setup/setup-plugin-api-ORC_4yEA.mjs +3 -0
  64. package/dist/.setup/sqlite-state-LByPx4Yp.mjs +37 -0
  65. package/dist/.setup/{startup-verification-Cv_NoW_O.mjs → startup-verification-8xvGpdtK.mjs} +6 -4
  66. package/dist/.setup/{state-layout-walk-BqCZTHpp.mjs → state-layout-walk-BQMgMykU.mjs} +3 -2
  67. package/dist/.setup/{storage-B94yQdJy.mjs → storage-CN4dxdtV.mjs} +11 -8
  68. package/dist/.setup/{storage-paths-e_Vq6cvw.mjs → storage-paths-B51JM-pC.mjs} +2 -1
  69. package/dist/.setup/{subagent-hooks-CT-rdJmh.mjs → subagent-hooks-CSY4iwa_.mjs} +3 -2
  70. package/dist/.setup/{sync-cache-state-B-FayxeA.mjs → sync-cache-state-L1kwjhjj.mjs} +6 -4
  71. package/dist/.setup/{target-ids-DltG_ZHJ.mjs → target-ids-HhcaKX1n.mjs} +2 -1
  72. package/dist/.setup/{thread-binding-api-OtSciHmZ.mjs → thread-binding-api-BvuaKpd0.mjs} +3 -2
  73. package/dist/.setup/{thread-bindings-CB-jqrf4.mjs → thread-bindings-pNgPVdof.mjs} +10 -7
  74. package/dist/.setup/{thread-bindings-shared-FMu_szTm.mjs → thread-bindings-shared-CPjUA0Ib.mjs} +2 -1
  75. package/dist/.setup/{tool-actions-DjPJ6tpr.mjs → tool-actions-CFX8h2Vm.mjs} +23 -18
  76. package/dist/.setup/{url-validation-C77p4qT9.mjs → url-validation-CF6pG6eE.mjs} +2 -1
  77. package/dist/.setup/{verification-BqjyjLoq.mjs → verification-CuT5ZBDO.mjs} +5 -4
  78. package/dist/api.js +8 -8
  79. package/dist/auth-presence.js +3 -2
  80. package/dist/channel-plugin-api.js +2 -1
  81. package/dist/cli-metadata.js +2 -1
  82. package/dist/contract-api.js +2 -2
  83. package/dist/doctor-contract-api.js +18 -14
  84. package/dist/helper-api.js +3 -3
  85. package/dist/index.js +4 -3
  86. package/dist/plugin-entry.handlers.runtime.js +4 -3
  87. package/dist/runtime-api.js +8 -7
  88. package/dist/runtime-setter-api.js +2 -1
  89. package/dist/secret-contract-api.js +2 -1
  90. package/dist/session-binding-contract-api.js +2 -2
  91. package/dist/setup-entry.js +5 -4
  92. package/dist/setup-plugin-api.js +2 -1
  93. package/dist/subagent-hooks-api.js +3 -2
  94. package/dist/thread-binding-api.js +2 -1
  95. package/dist/thread-bindings-runtime.js +2 -1
  96. package/package.json +4 -4
  97. package/dist/.setup/runtime-setter-api-CpwhcBQK.mjs +0 -2
  98. package/dist/.setup/secret-contract-api-DMSwMIxd.mjs +0 -2
  99. package/dist/.setup/setup-plugin-api-BZPY4Dt2.mjs +0 -2
  100. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +0 -1
@@ -1,22 +1,22 @@
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";
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-Di6NtQ_J.mjs";
4
+ import { a as resolveMatrixThreadRouting, i as resolveMatrixInboundRouteAsync, n as resolveMatrixStoredSessionMeta, o as resolveMatrixRoomConfig } from "./channel-OgoZc4uR.mjs";
5
+ import { a as resolveMatrixAllowListMatch, i as normalizeMatrixUserId, r as normalizeMatrixAllowList } from "./channel.setup-p6oll48W.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-ZcjZgYEl.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-BGgwE5pV.mjs";
10
+ import { t as createMatrixThreadBindingManager } from "./thread-bindings-pNgPVdof.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-BEl7PU1_.mjs";
12
+ import { i as readMatrixMessages, l as fetchMatrixPollSnapshot } from "./messages-TuEa_BPZ.mjs";
13
+ import { i as isMatrixMediaSizeLimitError, r as MatrixMediaSizeLimitError } from "./http-client-ByR4STVQ.mjs";
14
+ import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-SIW3NaJ2.mjs";
15
+ import { t as resolveMatrixTargets } from "./resolve-targets-Dd70hGcM.mjs";
16
+ import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-BLUoN4aV.mjs";
17
+ import { createMatrixInboundEventDeduper } from "./inbound-dedupe-sW_gaR44.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-C13IUffQ.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
- // extensions/matrix/src/matrix/monitor/auto-join.ts
53
+ //#region 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,7 +109,8 @@ function registerMatrixAutoJoin(params) {
109
109
  client.off("room.invite", onInvite);
110
110
  };
111
111
  }
112
- // extensions/matrix/src/matrix/monitor/config.ts
112
+ //#endregion
113
+ //#region extensions/matrix/src/matrix/monitor/config.ts
113
114
  function normalizeMatrixUserLookupEntry(raw) {
114
115
  return raw.replace(/^matrix:/i, "").replace(/^user:/i, "").trim();
115
116
  }
@@ -399,7 +400,8 @@ async function resolveMatrixMonitorConfig(params) {
399
400
  roomsConfig
400
401
  };
401
402
  }
402
- // extensions/matrix/src/matrix/monitor/direct.ts
403
+ //#endregion
404
+ //#region extensions/matrix/src/matrix/monitor/direct.ts
403
405
  const DM_CACHE_TTL_MS = 3e4;
404
406
  const RECENT_INVITE_TTL_MS = 3e4;
405
407
  const MAX_DM_ROOMS = 1024;
@@ -595,7 +597,8 @@ function createDirectRoomTracker(client, opts = {}) {
595
597
  }
596
598
  };
597
599
  }
598
- // extensions/matrix/src/matrix/monitor/types.ts
600
+ //#endregion
601
+ //#region extensions/matrix/src/matrix/monitor/types.ts
599
602
  const EventType = {
600
603
  RoomMessage: "m.room.message",
601
604
  RoomMessageEncrypted: "m.room.encrypted",
@@ -603,7 +606,8 @@ const EventType = {
603
606
  Location: "m.location",
604
607
  Reaction: MATRIX_REACTION_EVENT_TYPE
605
608
  };
606
- // extensions/matrix/src/matrix/monitor/access-state.ts
609
+ //#endregion
610
+ //#region extensions/matrix/src/matrix/monitor/access-state.ts
607
611
  function normalizeMatrixEntry(raw) {
608
612
  return normalizeMatrixAllowList([raw ?? ""])[0] ?? null;
609
613
  }
@@ -709,7 +713,8 @@ async function resolveMatrixMonitorCommandAccess(state, params) {
709
713
  }
710
714
  })).commandAccess;
711
715
  }
712
- // extensions/matrix/src/matrix/monitor/verification-utils.ts
716
+ //#endregion
717
+ //#region extensions/matrix/src/matrix/monitor/verification-utils.ts
713
718
  const VERIFICATION_EVENT_PREFIX = "m.key.verification.";
714
719
  const VERIFICATION_REQUEST_MSGTYPE = "m.key.verification.request";
715
720
  const VERIFICATION_NOTICE_PREFIXES = [
@@ -737,11 +742,12 @@ const matrixVerificationConstants = {
737
742
  eventPrefix: VERIFICATION_EVENT_PREFIX,
738
743
  requestMsgtype: VERIFICATION_REQUEST_MSGTYPE
739
744
  };
740
- // extensions/matrix/src/matrix/monitor/verification-events.ts
745
+ //#endregion
746
+ //#region extensions/matrix/src/matrix/monitor/verification-events.ts
741
747
  const MAX_TRACKED_VERIFICATION_EVENTS = 1024;
742
748
  const SAS_NOTICE_RETRY_DELAY_MS = 750;
743
749
  const VERIFICATION_EVENT_STARTUP_GRACE_MS = 3e4;
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]) => ({
750
+ const loadMatrixDirectRoomDeps = createLazyRuntimeModule(() => Promise.all([import("./direct-management-ZcjZgYEl.mjs").then((n) => n.t), import("./direct-management-ZcjZgYEl.mjs").then((n) => n.o)]).then(([directManagementModule, directRoomModule]) => ({
745
751
  inspectMatrixDirectRooms: directManagementModule.inspectMatrixDirectRooms,
746
752
  isStrictDirectRoom: directRoomModule.isStrictDirectRoom
747
753
  })));
@@ -1039,7 +1045,8 @@ function createMatrixVerificationEventRouter(params) {
1039
1045
  routeVerificationSummary
1040
1046
  };
1041
1047
  }
1042
- // extensions/matrix/src/matrix/monitor/events.ts
1048
+ //#endregion
1049
+ //#region extensions/matrix/src/matrix/monitor/events.ts
1043
1050
  const MATRIX_POST_HEALTHY_SYNC_DECRYPT_FAILURE_WINDOW_MS = 12e4;
1044
1051
  const MATRIX_POST_HEALTHY_SYNC_DECRYPT_FAILURE_THRESHOLD = 3;
1045
1052
  const MATRIX_POST_HEALTHY_SYNC_DECRYPT_FAILURE_SAMPLE_LIMIT = 3;
@@ -1339,7 +1346,8 @@ function registerMatrixMonitorEvents(params) {
1339
1346
  client.off("room.event", onRoomEvent);
1340
1347
  };
1341
1348
  }
1342
- // extensions/matrix/src/matrix/monitor/context-summary.ts
1349
+ //#endregion
1350
+ //#region extensions/matrix/src/matrix/monitor/context-summary.ts
1343
1351
  const MAX_CONTEXT_BODY_LENGTH = 500;
1344
1352
  function truncateMatrixContextBody(value) {
1345
1353
  if (value.length <= MAX_CONTEXT_BODY_LENGTH) return value;
@@ -1357,7 +1365,8 @@ function summarizeMatrixMessageContextEvent(event) {
1357
1365
  msgtype: normalizeOptionalString(content.msgtype)
1358
1366
  });
1359
1367
  }
1360
- // extensions/matrix/src/matrix/monitor/event-context.ts
1368
+ //#endregion
1369
+ //#region extensions/matrix/src/matrix/monitor/event-context.ts
1361
1370
  function createMatrixEventContextResolver(params) {
1362
1371
  const cache = /* @__PURE__ */ new Map();
1363
1372
  const isThread = params.kind === "thread";
@@ -1404,7 +1413,8 @@ function createMatrixEventContextResolver(params) {
1404
1413
  return context;
1405
1414
  };
1406
1415
  }
1407
- // extensions/matrix/src/matrix/monitor/ack-config.ts
1416
+ //#endregion
1417
+ //#region extensions/matrix/src/matrix/monitor/ack-config.ts
1408
1418
  function resolveMatrixAckReactionConfig(params) {
1409
1419
  const matrixConfig = params.cfg.channels?.matrix;
1410
1420
  const accountConfig = resolveMatrixAccountConfig({
@@ -1419,7 +1429,8 @@ function resolveMatrixAckReactionConfig(params) {
1419
1429
  ackReactionScope: accountConfig.ackReactionScope ?? matrixConfig?.ackReactionScope ?? params.cfg.messages?.ackReactionScope ?? "group-mentions"
1420
1430
  };
1421
1431
  }
1422
- // extensions/matrix/src/matrix/monitor/preflight-audio.ts
1432
+ //#endregion
1433
+ //#region extensions/matrix/src/matrix/monitor/preflight-audio.ts
1423
1434
  function isMatrixAudioContent(params) {
1424
1435
  if (params.msgtype === "m.audio") return true;
1425
1436
  if (params.msgtype === "m.file" && typeof params.mimetype === "string") return params.mimetype.toLowerCase().startsWith("audio/");
@@ -1451,7 +1462,8 @@ async function resolveMatrixPreflightAudioTranscript(params) {
1451
1462
  abortSignal: params.abortSignal
1452
1463
  });
1453
1464
  }
1454
- // extensions/matrix/src/matrix/monitor/handler-helpers.ts
1465
+ //#endregion
1466
+ //#region extensions/matrix/src/matrix/monitor/handler-helpers.ts
1455
1467
  const MATRIX_TOOL_PROGRESS_MAX_CHARS = 300;
1456
1468
  const MAX_TRACKED_SHARED_DM_CONTEXT_NOTICES = 512;
1457
1469
  function resolveMatrixMentionPrecheckText(params) {
@@ -1560,12 +1572,13 @@ function resolveMatrixAllowBotsMode(value) {
1560
1572
  function formatMatrixToolProgressMarkdownCode(text) {
1561
1573
  return `\`${(text.length <= MATRIX_TOOL_PROGRESS_MAX_CHARS ? text : `${truncateUtf16Safe(text, 299).trimEnd()}...`).replaceAll("`", "'")}\``;
1562
1574
  }
1563
- // extensions/matrix/src/matrix/monitor/handler-runtime.ts
1564
- const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-BMe_VcxP.mjs").then((n) => n.s));
1575
+ //#endregion
1576
+ //#region extensions/matrix/src/matrix/monitor/handler-runtime.ts
1577
+ const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-BGgwE5pV.mjs").then((n) => n.s));
1565
1578
  const loadAcpBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/acp-binding-runtime"));
1566
1579
  const loadSessionBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/session-binding-runtime"));
1567
- const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-xTg2_wZJ.mjs"));
1568
- const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-Buru5huX.mjs"));
1580
+ const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-C3DvaS9B.mjs"));
1581
+ const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-vO_qjwJb.mjs"));
1569
1582
  async function matrixTextWouldActivateMentions(client, text) {
1570
1583
  const { resolveMatrixMentionsForBody } = await loadMatrixSendModule();
1571
1584
  const mentions = await resolveMatrixMentionsForBody({
@@ -1574,7 +1587,8 @@ async function matrixTextWouldActivateMentions(client, text) {
1574
1587
  });
1575
1588
  return mentions.room === true || (mentions.user_ids?.length ?? 0) > 0;
1576
1589
  }
1577
- // extensions/matrix/src/matrix/monitor/handler-context.ts
1590
+ //#endregion
1591
+ //#region extensions/matrix/src/matrix/monitor/handler-context.ts
1578
1592
  async function resolveMatrixInboundContext(config) {
1579
1593
  const { handler, ingress, roomId, event, eventTs, resolveThreadContext, resolveReplyContext, senderId, sharedDmContextNoticeRooms } = config;
1580
1594
  const { client, core, accountId, runtime, logVerboseMessage, groupPolicy, getRoomInfo, historyLimit, dmSessionScope, resolveStorePath: resolveStorePathImpl, createChannelInboundEnvelopeBuilderAsync: createChannelInboundEnvelopeBuilderImpl, finalizeInboundContext } = handler;
@@ -1774,7 +1788,8 @@ async function resolveMatrixInboundContext(config) {
1774
1788
  sharedDmContextNotice
1775
1789
  };
1776
1790
  }
1777
- // extensions/matrix/src/matrix/monitor/handler-draft-controller.ts
1791
+ //#endregion
1792
+ //#region extensions/matrix/src/matrix/monitor/handler-draft-controller.ts
1778
1793
  async function createMatrixDraftController(params) {
1779
1794
  const { streaming, previewToolProgressEnabled, replyToMode, messageId, threadTarget, accountConfig, cfg, accountId, roomId, client, logVerboseMessage } = params;
1780
1795
  const draftStreamingEnabled = streaming !== "off";
@@ -1913,7 +1928,8 @@ async function createMatrixDraftController(params) {
1913
1928
  }
1914
1929
  };
1915
1930
  }
1916
- // extensions/matrix/src/matrix/monitor/room-history.ts
1931
+ //#endregion
1932
+ //#region extensions/matrix/src/matrix/monitor/room-history.ts
1917
1933
  /** Maximum entries retained per room (hard cap to bound memory). */
1918
1934
  const DEFAULT_MAX_QUEUE_SIZE = 200;
1919
1935
  /** Maximum number of rooms to retain queues for (FIFO eviction beyond this). */
@@ -2102,7 +2118,8 @@ function createRoomHistoryTracker(maxQueueSize = DEFAULT_MAX_QUEUE_SIZE, maxRoom
2102
2118
  }
2103
2119
  };
2104
2120
  }
2105
- // extensions/matrix/src/matrix/monitor/handler-ingress-access.ts
2121
+ //#endregion
2122
+ //#region extensions/matrix/src/matrix/monitor/handler-ingress-access.ts
2106
2123
  async function resolveMatrixIngressAccess(config) {
2107
2124
  const { handler, params: paramsLocal, roomId, event, eventTs, senderId, isReactionEvent, readStoreAllowFrom, shouldSendPairingReply, resolveLiveAccountAllowlists, roomHistoryTracker, commitInboundEventIfClaimed } = config;
2108
2125
  const { core, cfg, accountId, accountConfig, client, logVerboseMessage, groupPolicy, dmEnabled, dmPolicy, dmThreadReplies, threadReplies, roomsConfig, accountAllowBots, configuredBotUserIds, needsRoomAliasesForConfig, getRoomInfo, getMemberDisplayName } = handler;
@@ -2309,7 +2326,8 @@ async function resolveMatrixIngressAccess(config) {
2309
2326
  effectiveRoomUsers
2310
2327
  };
2311
2328
  }
2312
- // src/channels/mention-gating.ts
2329
+ //#endregion
2330
+ //#region src/channels/mention-gating.ts
2313
2331
  function resolveBotThreadMentionPolicy(params) {
2314
2332
  if (!params.isBotOwnedThread || params.requireMentionInBotThreads === void 0) return {
2315
2333
  requireMention: params.requireMention,
@@ -2320,7 +2338,8 @@ function resolveBotThreadMentionPolicy(params) {
2320
2338
  implicitMentionKinds: params.requireMentionInBotThreads ? params.implicitMentionKinds?.filter((kind) => kind === "native") : params.implicitMentionKinds
2321
2339
  };
2322
2340
  }
2323
- // extensions/matrix/src/matrix/monitor/media.ts
2341
+ //#endregion
2342
+ //#region extensions/matrix/src/matrix/monitor/media.ts
2324
2343
  const MATRIX_MEDIA_DOWNLOAD_IDLE_TIMEOUT_MS = 3e4;
2325
2344
  async function downloadMatrixMedia(params) {
2326
2345
  if (typeof params.sizeBytes === "number" && params.sizeBytes > params.maxBytes) throw new MatrixMediaSizeLimitError();
@@ -2346,7 +2365,8 @@ async function downloadMatrixMedia(params) {
2346
2365
  placeholder: "[matrix media]"
2347
2366
  };
2348
2367
  }
2349
- // extensions/matrix/src/matrix/monitor/mentions.ts
2368
+ //#endregion
2369
+ //#region extensions/matrix/src/matrix/monitor/mentions.ts
2350
2370
  const MATRIX_HTML_ENTITY_RE = /&(?:#x?[0-9a-f]+|amp|apos|gt|lt|nbsp|quot);/gi;
2351
2371
  function decodeVisibleHtmlEntities(value) {
2352
2372
  return value.replace(MATRIX_HTML_ENTITY_RE, (entity) => {
@@ -2471,7 +2491,8 @@ function resolveMentions(params) {
2471
2491
  hasExplicitMention: explicitMention
2472
2492
  };
2473
2493
  }
2474
- // extensions/matrix/src/matrix/monitor/handler-ingress-content.ts
2494
+ //#endregion
2495
+ //#region extensions/matrix/src/matrix/monitor/handler-ingress-content.ts
2475
2496
  async function resolveMatrixIngressContent(config) {
2476
2497
  const { handler, params: paramsLocal, access, roomId, event, eventType, isPollEvent, eventTs, senderId, roomHistoryTracker, resolveThreadContext, commitInboundEventIfClaimed } = config;
2477
2498
  const { client, core, accountId, accountConfig, logger, logVerboseMessage, historyLimit, mediaMaxBytes, dmSessionScope, getMemberDisplayName } = handler;
@@ -2768,7 +2789,8 @@ async function resolveMatrixIngressContent(config) {
2768
2789
  threadContext
2769
2790
  };
2770
2791
  }
2771
- // extensions/matrix/src/matrix/monitor/location.ts
2792
+ //#endregion
2793
+ //#region extensions/matrix/src/matrix/monitor/location.ts
2772
2794
  function decodeGeoUriParamValue(value) {
2773
2795
  try {
2774
2796
  return decodeURIComponent(value);
@@ -2825,7 +2847,8 @@ function resolveMatrixLocation(params) {
2825
2847
  context: toLocationContext(location)
2826
2848
  };
2827
2849
  }
2828
- // extensions/matrix/src/matrix/monitor/handler-ingress-prefix.ts
2850
+ //#endregion
2851
+ //#region extensions/matrix/src/matrix/monitor/handler-ingress-prefix.ts
2829
2852
  async function readMatrixIngressPrefix(config) {
2830
2853
  const { client, senderId, dropPreStartupMessages, eventTs, eventAge, startupMs, event, eventType, eventId, inboundDeduper, roomId, logVerboseMessage, directTracker, claimInboundReplay } = config;
2831
2854
  const selfUserId = await client.getUserId();
@@ -2871,7 +2894,8 @@ async function readMatrixIngressPrefix(config) {
2871
2894
  selfUserId
2872
2895
  };
2873
2896
  }
2874
- // extensions/matrix/src/matrix/monitor/replies.ts
2897
+ //#endregion
2898
+ //#region extensions/matrix/src/matrix/monitor/replies.ts
2875
2899
  function joinMatrixVisibleContent(contents) {
2876
2900
  return contents.filter((content) => Boolean(content)).join("\n");
2877
2901
  }
@@ -2966,7 +2990,8 @@ async function deliverMatrixReplies(params) {
2966
2990
  }
2967
2991
  return accepted.result();
2968
2992
  }
2969
- // extensions/matrix/src/matrix/monitor/handler-reply-dispatcher.ts
2993
+ //#endregion
2994
+ //#region extensions/matrix/src/matrix/monitor/handler-reply-dispatcher.ts
2970
2995
  function createMatrixReplyDispatcher(config) {
2971
2996
  const { cfg, prefixOptions, humanDelay, typingCallbacks, streaming, draftStream, draftController, client, roomId, runtime, replyToMode, threadTarget, replyToEventId, accountId, mediaLocalRoots, logVerboseMessage } = config;
2972
2997
  const quietDraftStreaming = streaming === "quiet" || streaming === "progress";
@@ -3096,7 +3121,8 @@ function createMatrixReplyDispatcher(config) {
3096
3121
  nonFinalReplyDeliveryFailed: () => nonFinalReplyDeliveryFailed
3097
3122
  };
3098
3123
  }
3099
- // extensions/matrix/src/matrix/monitor/handler-state.ts
3124
+ //#endregion
3125
+ //#region extensions/matrix/src/matrix/monitor/handler-state.ts
3100
3126
  const ALLOW_FROM_STORE_CACHE_TTL_MS = 3e4;
3101
3127
  const PAIRING_REPLY_COOLDOWN_MS = 3e5;
3102
3128
  const MAX_TRACKED_PAIRING_REPLY_SENDERS = 512;
@@ -3183,7 +3209,8 @@ function createMatrixHandlerState(config) {
3183
3209
  shouldSendPairingReply
3184
3210
  };
3185
3211
  }
3186
- // extensions/matrix/src/matrix/monitor/handler.ts
3212
+ //#endregion
3213
+ //#region extensions/matrix/src/matrix/monitor/handler.ts
3187
3214
  const SESSION_RESTART_RECOVERY_TOMBSTONE_ERROR_CODE = "SESSION_RESTART_RECOVERY_TOMBSTONE";
3188
3215
  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.";
3189
3216
  function createMatrixRoomMessageHandler(params) {
@@ -3555,7 +3582,8 @@ function createMatrixRoomMessageHandler(params) {
3555
3582
  }
3556
3583
  };
3557
3584
  }
3558
- // extensions/matrix/src/matrix/monitor/recent-invite.ts
3585
+ //#endregion
3586
+ //#region extensions/matrix/src/matrix/monitor/recent-invite.ts
3559
3587
  function shouldPromoteRecentInviteRoom(params) {
3560
3588
  if (!params.roomInfo.nameResolved || !params.roomInfo.aliasesResolved) return false;
3561
3589
  const roomAliases = [params.roomInfo.canonicalAlias ?? "", ...params.roomInfo.altAliases].filter(Boolean);
@@ -3566,12 +3594,13 @@ function shouldPromoteRecentInviteRoom(params) {
3566
3594
  aliases: roomAliases
3567
3595
  }).matchSource === void 0;
3568
3596
  }
3569
- // extensions/matrix/src/matrix/monitor/startup.ts
3597
+ //#endregion
3598
+ //#region extensions/matrix/src/matrix/monitor/startup.ts
3570
3599
  const loadMatrixStartupMaintenanceDeps = createLazyRuntimeModule(() => Promise.all([
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")
3600
+ import("./setup-core-Di6NtQ_J.mjs").then((n) => n.f),
3601
+ import("./device-health-D6_ECUVe.mjs").then((n) => n.t),
3602
+ import("./setup-core-Di6NtQ_J.mjs").then((n) => n.u),
3603
+ import("./startup-verification-8xvGpdtK.mjs")
3575
3604
  ]).then(([configUpdateModule, deviceHealthModule, profileModule, startupVerificationModule]) => ({
3576
3605
  updateMatrixAccountConfig: configUpdateModule.updateMatrixAccountConfig,
3577
3606
  summarizeMatrixDeviceHealth: deviceHealthModule.summarizeMatrixDeviceHealth,
@@ -3633,7 +3662,8 @@ async function runMatrixStartupMaintenance(params, deps) {
3633
3662
  params.logger.debug?.("Failed to resolve matrix verification status (non-fatal)", { error: String(err) });
3634
3663
  }
3635
3664
  }
3636
- // extensions/matrix/src/matrix/monitor/status.ts
3665
+ //#endregion
3666
+ //#region extensions/matrix/src/matrix/monitor/status.ts
3637
3667
  function cloneLastDisconnect(value) {
3638
3668
  if (!value || typeof value === "string") return value ?? null;
3639
3669
  return { ...value };
@@ -3757,7 +3787,8 @@ function createMatrixMonitorStatusController(params) {
3757
3787
  }
3758
3788
  };
3759
3789
  }
3760
- // extensions/matrix/src/matrix/monitor/sync-lifecycle.ts
3790
+ //#endregion
3791
+ //#region extensions/matrix/src/matrix/monitor/sync-lifecycle.ts
3761
3792
  function formatSyncLifecycleError(state, error) {
3762
3793
  if (error instanceof Error) return error;
3763
3794
  const message = typeof error === "string" && error.trim() ? error.trim() : void 0;
@@ -3810,7 +3841,8 @@ function createMatrixMonitorSyncLifecycle(params) {
3810
3841
  }
3811
3842
  };
3812
3843
  }
3813
- // extensions/matrix/src/matrix/monitor/index.ts
3844
+ //#endregion
3845
+ //#region extensions/matrix/src/matrix/monitor/index.ts
3814
3846
  function resolveMatrixStreamingMode(streaming) {
3815
3847
  const mode = streaming?.mode;
3816
3848
  if (mode === "partial" || mode === "quiet" || mode === "progress") return mode;
@@ -4206,4 +4238,5 @@ async function monitorMatrixProvider(opts = {}) {
4206
4238
  throw err;
4207
4239
  }
4208
4240
  }
4241
+ //#endregion
4209
4242
  export { monitorMatrixProvider };
@@ -1,15 +1,15 @@
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";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
+ import { i as requiresExplicitMatrixDefaultAccount, u as resolveMatrixEnvAuthReadiness } from "./account-selection-CWsL5zIU.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-Di6NtQ_J.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";
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
- // extensions/matrix/src/onboarding.ts
12
+ //#region 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-vlr765on.mjs").then((n) => n.n);
90
+ const { resolveMatrixTargets } = await import("./resolve-targets-Dd70hGcM.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-tItssg9q.mjs").then((n) => n.t);
207
+ const { listMatrixDirectoryGroupsLive } = await import("./directory-live-_yaRaktv.mjs").then((n) => n.t);
208
208
  const matches = await listMatrixDirectoryGroupsLive({
209
209
  cfg: next,
210
210
  accountId: params.accountId,
@@ -454,4 +454,5 @@ const matrixOnboardingAdapter = {
454
454
  dmPolicy,
455
455
  disable: (cfg) => setSetupChannelEnabled(cfg, channel, false)
456
456
  };
457
+ //#endregion
457
458
  export { onboarding_exports as n, matrixOnboardingAdapter as t };
@@ -1,12 +1,12 @@
1
- import { r as matrixPresentationCapabilities } from "./channel-DYRabwmj.mjs";
2
- import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-BMe_VcxP.mjs";
1
+ import { r as matrixPresentationCapabilities } from "./channel-OgoZc4uR.mjs";
2
+ import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-BGgwE5pV.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
- // extensions/matrix/src/outbound.ts
9
+ //#region 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,4 +181,5 @@ const matrixOutbound = {
181
181
  };
182
182
  }
183
183
  };
184
+ //#endregion
184
185
  export { prepareMatrixReplyPayload as n, resolveMatrixExtraContent as r, matrixOutbound as t };
@@ -1,9 +1,9 @@
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";
1
+ import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
+ import { d as syncMatrixOwnProfile, p as updateMatrixAccountConfig } from "./setup-core-Di6NtQ_J.mjs";
3
+ import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
4
+ import { n as withResolvedActionClient } from "./client-Cxv-iMwp.mjs";
5
5
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
6
- // extensions/matrix/src/matrix/actions/profile.ts
6
+ //#region 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,7 +25,8 @@ async function updateMatrixOwnProfile(opts = {}) {
25
25
  });
26
26
  }, "persist");
27
27
  }
28
- // extensions/matrix/src/profile-update.ts
28
+ //#endregion
29
+ //#region extensions/matrix/src/profile-update.ts
29
30
  async function applyMatrixProfileUpdate(params) {
30
31
  const runtime = getMatrixRuntime();
31
32
  const persistedCfg = runtime.config.current();
@@ -60,4 +61,5 @@ async function applyMatrixProfileUpdate(params) {
60
61
  configPath: resolveMatrixConfigPath(updated, accountId)
61
62
  };
62
63
  }
64
+ //#endregion
63
65
  export { updateMatrixOwnProfile as n, applyMatrixProfileUpdate as t };
@@ -1,16 +1,16 @@
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";
1
+ import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
+ import { a as resolveMatrixThreadRouting, i as resolveMatrixInboundRouteAsync } from "./channel-OgoZc4uR.mjs";
3
+ import { c as extractMatrixReactionAnnotation } from "./send-currentness-C2rMVVIQ.mjs";
4
+ import { p as resolveMatrixThreadRootId } from "./direct-management-ZcjZgYEl.mjs";
5
+ import { i as resolveMatrixApprovalReactionTargetWithPersistence, o as unregisterMatrixApprovalReactionTargetsForApproval } from "./approval-reactions-D2pEUrFS.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
- // extensions/matrix/src/matrix/monitor/reaction-events.ts
11
- const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./channel-DYRabwmj.mjs").then((n) => n.s));
10
+ //#region extensions/matrix/src/matrix/monitor/reaction-events.ts
11
+ const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./channel-OgoZc4uR.mjs").then((n) => n.s));
12
12
  const loadExecApprovalResolver = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/approval-gateway-runtime"));
13
- const loadMatrixSend = createLazyRuntimeModule(() => import("./send-BMe_VcxP.mjs").then((n) => n.s));
13
+ const loadMatrixSend = createLazyRuntimeModule(() => import("./send-BGgwE5pV.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,4 +164,5 @@ 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
167
168
  export { handleInboundMatrixReaction };
@@ -1,8 +1,8 @@
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";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.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-_yaRaktv.mjs";
4
4
  import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
- // extensions/matrix/src/resolve-targets.ts
5
+ //#region 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,4 +77,5 @@ async function resolveMatrixTargets(params) {
77
77
  }
78
78
  return results;
79
79
  }
80
+ //#endregion
80
81
  export { resolve_targets_exports as n, resolveMatrixTargets as t };
@@ -1,10 +1,8 @@
1
- import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
1
  import { extractErrorCode } from "openclaw/plugin-sdk/error-runtime";
3
2
  import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
4
3
  import path from "node:path";
5
- import os from "node:os";
6
4
  import fs from "node:fs/promises";
7
- // extensions/matrix/src/matrix/chunked-state.ts
5
+ //#region extensions/matrix/src/matrix/chunked-state.ts
8
6
  function chunkMatrixStateJson(value, maxBytes, maxChunks, limitMessage) {
9
7
  const chunks = [];
10
8
  const pushChunk = (chunk) => {
@@ -45,40 +43,8 @@ async function writeMatrixStateChunks(store, rows, chunkKeyPrefix) {
45
43
  await store.register(rows.meta.key, rows.meta.value);
46
44
  for (const row of await store.entries()) if (row.key.startsWith(chunkKeyPrefix) && !nextChunkKeys.has(row.key)) await store.delete(row.key);
47
45
  }
48
- // extensions/matrix/src/matrix/sqlite-state.ts
49
- function resolveStateDirOverride(options) {
50
- if (!options) return;
51
- return options.stateDir || options.stateRootDir || getMatrixRuntime().state.resolveStateDir(options.env ?? process.env, os.homedir);
52
- }
53
- function resolveMatrixSqliteStateKey(options) {
54
- return resolveStateDirOverride(options) ?? "";
55
- }
56
- function resolveMatrixSqliteStateEnv(options) {
57
- const stateDir = resolveStateDirOverride(options);
58
- if (!stateDir) return options?.env;
59
- return {
60
- ...options?.env ?? process.env,
61
- OPENCLAW_STATE_DIR: stateDir
62
- };
63
- }
64
- async function updateMatrixKeyedState(store, key, update, onUndefined = "keep") {
65
- let observation = await store.observe(key);
66
- for (;;) {
67
- const value = update(observation.value);
68
- if (value === void 0 && onUndefined === "skip") return false;
69
- const result = await store.compareAndApply(key, observation.comparison, value === void 0 ? {
70
- operation: "update",
71
- action: "keep"
72
- } : {
73
- operation: "update",
74
- action: "set",
75
- value
76
- });
77
- if (result.status !== "conflict") return true;
78
- observation = result.current;
79
- }
80
- }
81
- // extensions/matrix/src/matrix/retired-state.ts
46
+ //#endregion
47
+ //#region extensions/matrix/src/matrix/retired-state.ts
82
48
  const RETIRED_MATRIX_STATE_FILENAMES = /* @__PURE__ */ new Set([
83
49
  "thread-bindings.json",
84
50
  "startup-verification.json",
@@ -104,4 +70,5 @@ async function assertMatrixSupportedStateFile(filePath) {
104
70
  }
105
71
  throw new Error(describeRetiredMatrixState(filePath));
106
72
  }
107
- export { describeRetiredMatrixState as a, updateMatrixKeyedState as c, writeMatrixStateChunks as d, assertMatrixSupportedStateRoot as i, chunkMatrixStateJson as l, RETIRED_MATRIX_STATE_REMEDIATION as n, resolveMatrixSqliteStateEnv as o, assertMatrixSupportedStateFile as r, resolveMatrixSqliteStateKey as s, RETIRED_MATRIX_STATE_FILENAMES as t, readMatrixStateChunks as u };
73
+ //#endregion
74
+ export { describeRetiredMatrixState as a, writeMatrixStateChunks as c, assertMatrixSupportedStateRoot as i, RETIRED_MATRIX_STATE_REMEDIATION as n, chunkMatrixStateJson as o, assertMatrixSupportedStateFile as r, readMatrixStateChunks as s, RETIRED_MATRIX_STATE_FILENAMES as t };