@openclaw/matrix 2026.7.1-beta.6 → 2026.7.2-beta.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 (87) hide show
  1. package/dist/{account-selection-5e4mHR1m.js → account-selection-Bz00QTmQ.js} +4 -3
  2. package/dist/api.js +8 -8
  3. package/dist/{approval-handler.runtime-DI5x9r8I.js → approval-handler.runtime--Ei44Vo2.js} +27 -17
  4. package/dist/{approval-ids-ZgqbspmS.js → approval-ids-C_2kSMdJ.js} +1 -1
  5. package/dist/{approval-reaction-auth-D9LijQhr.js → approval-reaction-auth-TdVPcgxP.js} +2 -2
  6. package/dist/approval-reactions-BgU51JGd.js +202 -0
  7. package/dist/auth-presence.js +1 -1
  8. package/dist/{channel-jUTBsjHU.js → channel-CxqDh7mS.js} +102 -143
  9. package/dist/channel-plugin-api.js +1 -1
  10. package/dist/{channel.runtime-DO1Nv9ed.js → channel.runtime-wNfJc57I.js} +7 -7
  11. package/dist/{cli-metadata-CfiEO-CE.js → cli-metadata-Gf3HSJ2c.js} +1 -1
  12. package/dist/cli-metadata.js +1 -1
  13. package/dist/{cli-CEfWwCKx.js → cli-o00oTJhx.js} +12 -12
  14. package/dist/{client-FRuyCNju.js → client-ClHisZbf.js} +2 -2
  15. package/dist/{client-tgnlQJk4.js → client-DP0nmFxK.js} +4 -4
  16. package/dist/{client-bootstrap-DjFJ7e0N.js → client-bootstrap-PqYOS-mO.js} +1 -1
  17. package/dist/{config-schema-DtnhNYd-.js → config-schema-CG9goLWp.js} +21 -55
  18. package/dist/contract-api.js +2 -2
  19. package/dist/{create-client-CNakT7zF.js → create-client-D9z9RjCM.js} +3 -3
  20. package/dist/{credentials-Ds9V1mn2.js → credentials-DnhsLAuR.js} +1 -1
  21. package/dist/{credentials-read-BlkvsNFg.js → credentials-read-BtS-HRT5.js} +3 -3
  22. package/dist/{credentials-write.runtime-CTqqxcut.js → credentials-write.runtime-J_EUt5WP.js} +1 -1
  23. package/dist/{crypto-runtime-B74cTS6A.js → crypto-runtime-BHcxauC4.js} +75 -45
  24. package/dist/{deps-CdjHvnmh.js → deps-DDbghaZH.js} +23 -90
  25. package/dist/{directory-live-Ufd4qSpX.js → directory-live-DPy2aaPF.js} +3 -3
  26. package/dist/doctor-BGTs609f.js +64 -0
  27. package/dist/{doctor-contract-BAja_fmb.js → doctor-contract-D2qTLe-C.js} +72 -6
  28. package/dist/doctor-contract-api.js +323 -45
  29. package/dist/{draft-stream-D4EH25gv.js → draft-stream-De7uikGn.js} +1 -1
  30. package/dist/{encryption-guidance-D8walY04.js → encryption-guidance-BFfgq7c7.js} +1 -1
  31. package/dist/{env-auth-DIzOApj0.js → env-auth-CQsYbz-p.js} +1 -1
  32. package/dist/{env-vars-KzaYveuy.js → env-vars-B0NxQnPk.js} +3 -1
  33. package/dist/{exec-approval-resolver-f9j6staN.js → exec-approval-resolver-BCgqRtZS.js} +2 -1
  34. package/dist/{file-sync-store-DVm0ACml.js → file-sync-store-Cxb0ckyX.js} +4 -5
  35. package/dist/helper-api.js +4 -4
  36. package/dist/{http-client-nSmFiVgk.js → http-client-W4TJQM6r.js} +17 -33
  37. package/dist/{idb-persistence-BHm97th-.js → idb-persistence-iUZoHZkp.js} +2 -2
  38. package/dist/inbound-dedupe-DcMs0YXL.js +67 -0
  39. package/dist/index.js +1 -1
  40. package/dist/{logger-D0GCSDQq.js → logger-BMClpI5b.js} +1 -1
  41. package/dist/{logging-QH-48Gr6.js → logging-CFJrbDAN.js} +1 -1
  42. package/dist/{media-text-p-LP21qs.js → media-text-DWaotsZB.js} +1 -1
  43. package/dist/{messages-DRKkiEY-.js → messages-Dm3K4ZvM.js} +3 -3
  44. package/dist/{monitor-CsGOGdwu.js → monitor-C_kgPPeV.js} +44 -382
  45. package/dist/plugin-entry.handlers.runtime.js +1 -1
  46. package/dist/probe.runtime-Dry8PTWC.js +3 -0
  47. package/dist/{profile-update-Ucc8RrJL.js → profile-update-iUHCoks3.js} +3 -3
  48. package/dist/{reaction-events-DentrVii.js → reaction-events-0tubdHRM.js} +60 -10
  49. package/dist/record-shared-CvzjvHRn.js +2 -0
  50. package/dist/{recovery-key-store-DSeLFvNx.js → recovery-key-store-Bx0zTJcB.js} +2 -2
  51. package/dist/{resolve-targets-DcV_KfgX.js → resolve-targets-DlLrfWDy.js} +1 -1
  52. package/dist/{resolver.runtime-Hr6bO5zl.js → resolver.runtime-MeaT1zXx.js} +1 -1
  53. package/dist/room-info-B6vKD5DF.js +86 -0
  54. package/dist/{runtime-6S3DNFNv.js → runtime-CveSqMOP.js} +1 -1
  55. package/dist/{runtime-api-CsBoesCU.js → runtime-api-D1xI_cvh.js} +3 -3
  56. package/dist/runtime-api.js +6 -6
  57. package/dist/runtime-setter-api.js +1 -1
  58. package/dist/{sdk-AZYVl34z.js → sdk-CI8E2TKg.js} +12 -17
  59. package/dist/{secret-contract-DTgQyQxc.js → secret-contract-OZoQf0kI.js} +7 -48
  60. package/dist/secret-contract-api.js +1 -1
  61. package/dist/{send-D92v6Yy0.js → send-C7xuGWpv.js} +10 -4
  62. package/dist/session-binding-contract-api.js +2 -2
  63. package/dist/{setup-bootstrap-Da564w5f.js → setup-bootstrap-CCsexWTZ.js} +2 -2
  64. package/dist/{setup-core-BGgbrdaJ.js → setup-core-DlmTyIP0.js} +9 -7
  65. package/dist/setup-plugin-api.js +3 -3
  66. package/dist/{setup-surface-iJ6pd-t5.js → setup-surface-2SS94JV0.js} +7 -7
  67. package/dist/{shared-DkFfq7mH.js → shared-DgvN5rBx.js} +14 -9
  68. package/dist/{startup-verification-BKMAXvcV.js → startup-verification-CbIyF7z1.js} +3 -4
  69. package/dist/storage-BtSOar8T.js +718 -0
  70. package/dist/{storage-paths-BWo_ZEMC.js → storage-paths-B4_I9iqO.js} +1 -12
  71. package/dist/{thread-bindings-BX5nmWpw.js → thread-bindings-BI8MHWp9.js} +4 -5
  72. package/dist/{tool-actions.runtime-C1d5fxE_.js → tool-actions.runtime-CnyhVPoY.js} +242 -53
  73. package/dist/{verification-BGCMiO1p.js → verification-DLSe3sP7.js} +2 -2
  74. package/npm-shrinkwrap.json +3 -3
  75. package/openclaw.plugin.json +66 -55
  76. package/package.json +4 -4
  77. package/dist/approval-reactions-BdUaUXVw.js +0 -113
  78. package/dist/crypto-state-store-Jy3qwhdy.js +0 -352
  79. package/dist/doctor-DfaOqFtr.js +0 -167
  80. package/dist/legacy-crypto-inspector-vzXSkm18.js +0 -42
  81. package/dist/legacy-crypto-restore-CIBfOmLn.js +0 -93
  82. package/dist/matrix-migration.runtime-BMCyrANT.js +0 -524
  83. package/dist/migration-snapshot-backup-YcCrSjbE.js +0 -69
  84. package/dist/migration-snapshot.runtime-VGD4QfeS.js +0 -2
  85. package/dist/probe.runtime-2MZLc6ng.js +0 -3
  86. package/dist/runtime-heavy-api.js +0 -3
  87. package/dist/storage-CQdyKcGg.js +0 -430
@@ -1,22 +1,20 @@
1
- import { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-5e4mHR1m.js";
1
+ import { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-Bz00QTmQ.js";
2
2
  import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
3
- import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, n as matrixSetupAdapter, p as listMatrixAccountIds, t as createMatrixSetupWizardProxy, u as namedAccountPromotionKeys } from "./setup-core-BGgbrdaJ.js";
4
- import { a as normalizeMatrixUserId, n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-DtnhNYd-.js";
5
- import { t as normalizeMatrixApproverId } from "./approval-ids-ZgqbspmS.js";
3
+ import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, n as matrixSetupAdapter, p as listMatrixAccountIds, t as createMatrixSetupWizardProxy, u as namedAccountPromotionKeys } from "./setup-core-DlmTyIP0.js";
4
+ import { a as normalizeMatrixUserId, n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-CG9goLWp.js";
5
+ import { t as normalizeMatrixApproverId } from "./approval-ids-C_2kSMdJ.js";
6
6
  import { a as resolveMatrixTargetIdentity, i as resolveMatrixDirectUserId, n as normalizeMatrixMessagingTarget, r as normalizeMatrixResolvableTarget, t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
7
7
  import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
8
- import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BAja_fmb.js";
8
+ import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-D2qTLe-C.js";
9
9
  import { d as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKey } from "./thread-bindings-shared-CKnY4LSd.js";
10
- import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DTgQyQxc.js";
11
- import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-BMCyrANT.js";
12
- import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-YcCrSjbE.js";
13
- import { n as resolveMatrixInboundConversation } from "./thread-binding-api-DRbBZlhS.js";
10
+ import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-OZoQf0kI.js";
11
+ import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./thread-binding-api-DRbBZlhS.js";
14
12
  import { createLazyRuntimeModule, createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
15
13
  import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
16
14
  import { adaptScopedAccountAccessor, createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
17
15
  import { buildChannelOutboundSessionRoute, buildThreadAwareOutboundSessionRoute, createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
18
16
  import { createChannelMessageAdapterFromOutbound, createReplyPrefixOptions, createRuntimeOutboundDelegates, createTypingCallbacks, logTypingFailure } from "openclaw/plugin-sdk/channel-outbound";
19
- import { createAllowlistProviderOpenWarningCollector, projectAccountConfigWarningCollector } from "openclaw/plugin-sdk/channel-policy";
17
+ import { createAllowlistProviderOpenWarningCollector, projectAccountConfigWarningCollector, resolveScopeRequireMention, resolveScopeToolsPolicy } from "openclaw/plugin-sdk/channel-policy";
20
18
  import { createScopedAccountReplyToModeResolver } from "openclaw/plugin-sdk/conversation-runtime";
21
19
  import { createChannelDirectoryAdapter, createResolvedDirectoryEntriesLister, createRuntimeDirectoryLiveAdapter } from "openclaw/plugin-sdk/directory-runtime";
22
20
  import { buildProbeChannelStatusSummary, collectStatusIssuesFromLastError, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
@@ -29,7 +27,7 @@ import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
29
27
  import { createApproverRestrictedNativeApprovalCapability, createChannelApprovalCapability, splitChannelApprovalCapability } from "openclaw/plugin-sdk/approval-delivery-runtime";
30
28
  import { createLazyChannelApprovalNativeRuntimeAdapter } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
31
29
  import { createChannelNativeOriginTargetResolver, resolveApprovalRequestChannelAccountId, resolveApprovalRequestSessionConversation } from "openclaw/plugin-sdk/approval-native-runtime";
32
- import { createResolvedApproverActionAuthAdapter, resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
30
+ import { createChannelApprovalAuth, resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
33
31
  import { addAllowlistUserEntriesFromConfigEntry, buildAllowlistResolutionSummary, canonicalizeAllowlistWithResolvedIds, patchAllowlistUsersInConfigEntries, summarizeMapping } from "openclaw/plugin-sdk/allow-from";
34
32
  import { createChannelExecApprovalProfile, getExecApprovalReplyMetadata, isChannelExecApprovalClientEnabledFromConfig, isChannelExecApprovalTargetRecipient, matchesApprovalRequestFilters } from "openclaw/plugin-sdk/approval-client-runtime";
35
33
  import { normalizeAccountId as normalizeAccountId$1, parseThreadSessionSuffix } from "openclaw/plugin-sdk/routing";
@@ -37,7 +35,7 @@ import { createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing
37
35
  import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
38
36
  import { formatLocationText, logInboundDrop, toLocationContext } from "openclaw/plugin-sdk/channel-inbound";
39
37
  import { getAgentScopedMediaLocalRoots } from "openclaw/plugin-sdk/agent-media-payload";
40
- import { buildChannelKeyCandidates, resolveChannelEntryMatch } from "openclaw/plugin-sdk/channel-targets";
38
+ import { buildChannelKeyCandidates } from "openclaw/plugin-sdk/channel-targets";
41
39
  import { getSessionEntry, resolveStorePath } from "openclaw/plugin-sdk/session-store-runtime";
42
40
  //#region extensions/matrix/src/actions.ts
43
41
  const MATRIX_PLUGIN_HANDLED_ACTIONS = /* @__PURE__ */ new Set([
@@ -119,7 +117,7 @@ const matrixMessageActions = {
119
117
  const listedActions = Array.from(actions);
120
118
  return {
121
119
  actions: listedActions,
122
- capabilities: [],
120
+ capabilities: ["presentation"],
123
121
  schema: listedActions.includes("set-profile") ? buildMatrixProfileToolSchema() : null,
124
122
  mediaSourceParams: listedActions.includes("set-profile") ? { "set-profile": MATRIX_PROFILE_MEDIA_SOURCE_PARAMS } : null
125
123
  };
@@ -129,12 +127,22 @@ const matrixMessageActions = {
129
127
  return extractToolSend(args, "sendMessage");
130
128
  },
131
129
  handleAction: async (ctx) => {
132
- const { handleMatrixAction } = await import("./tool-actions.runtime-C1d5fxE_.js");
130
+ const { handleMatrixAction } = await import("./tool-actions.runtime-CnyhVPoY.js");
133
131
  const { action, params, cfg, accountId, mediaLocalRoots } = ctx;
134
132
  const dispatch = async (actionParams) => await handleMatrixAction({
135
133
  ...actionParams,
136
134
  ...accountId ? { accountId } : {}
137
- }, cfg, { mediaLocalRoots });
135
+ }, cfg, {
136
+ mediaLocalRoots,
137
+ readContext: {
138
+ accountId,
139
+ requesterAccountId: ctx.requesterAccountId,
140
+ currentChannelId: ctx.toolContext?.currentChannelId,
141
+ currentChannelProvider: ctx.toolContext?.currentChannelProvider,
142
+ currentChatType: ctx.toolContext?.currentChatType,
143
+ conversationReadOrigin: ctx.conversationReadOrigin
144
+ }
145
+ });
138
146
  const resolveRoomId = () => readStringParam(params, "roomId") ?? readStringParam(params, "channelId") ?? readStringParam(params, "to", { required: true });
139
147
  if (action === "send") {
140
148
  const to = readStringParam(params, "to", { required: true });
@@ -232,7 +240,7 @@ const matrixMessageActions = {
232
240
  if (action === "member-info") return await dispatch({
233
241
  action: "memberInfo",
234
242
  userId: readStringParam(params, "userId", { required: true }),
235
- roomId: readStringParam(params, "roomId") ?? readStringParam(params, "channelId")
243
+ roomId: resolveRoomId()
236
244
  });
237
245
  if (action === "channel-info") return await dispatch({
238
246
  action: "channelInfo",
@@ -271,20 +279,18 @@ const matrixMessageActions = {
271
279
  };
272
280
  //#endregion
273
281
  //#region extensions/matrix/src/approval-auth.ts
274
- function getMatrixApprovalAuthApprovers(params) {
275
- return resolveApprovalApprovers({
276
- allowFrom: resolveMatrixAccount(params).config.dm?.allowFrom,
277
- normalizeApprover: normalizeMatrixApproverId
278
- });
279
- }
280
- const matrixApprovalAuth = createResolvedApproverActionAuthAdapter({
282
+ const matrixApproval = createChannelApprovalAuth({
281
283
  channelLabel: "Matrix",
282
- resolveApprovers: ({ cfg, accountId }) => getMatrixApprovalAuthApprovers({
283
- cfg,
284
- accountId
285
- }),
286
- normalizeSenderId: (value) => normalizeMatrixApproverId(value)
284
+ resolveInputs: ({ cfg, accountId }) => {
285
+ return { allowFrom: resolveMatrixAccount({
286
+ cfg,
287
+ accountId
288
+ }).config.dm?.allowFrom };
289
+ },
290
+ normalizeApprover: normalizeMatrixApproverId
287
291
  });
292
+ const getMatrixApprovalAuthApprovers = matrixApproval.resolveApprovers;
293
+ const matrixApprovalAuth = matrixApproval.approvalAuth;
288
294
  //#endregion
289
295
  //#region extensions/matrix/src/exec-approvals.ts
290
296
  function normalizeMatrixExecApproverId(value) {
@@ -354,9 +360,6 @@ function getMatrixExecApprovalApprovers(params) {
354
360
  normalizeApprover: normalizeMatrixExecApproverId
355
361
  });
356
362
  }
357
- function resolveMatrixApprovalKind(request) {
358
- return request.id.startsWith("plugin:") ? "plugin" : "exec";
359
- }
360
363
  function getMatrixApprovalApprovers(params) {
361
364
  if (params.approvalKind === "plugin") return getMatrixApprovalAuthApprovers({
362
365
  cfg: params.cfg,
@@ -383,10 +386,8 @@ const matrixExecApprovalProfile = createChannelExecApprovalProfile({
383
386
  })
384
387
  });
385
388
  const isMatrixExecApprovalClientEnabled = matrixExecApprovalProfile.isClientEnabled;
386
- matrixExecApprovalProfile.isApprover;
387
389
  const isMatrixExecApprovalAuthorizedSender = matrixExecApprovalProfile.isAuthorizedSender;
388
390
  const resolveMatrixExecApprovalTarget = matrixExecApprovalProfile.resolveTarget;
389
- matrixExecApprovalProfile.shouldHandleRequest;
390
391
  function isMatrixApprovalClientEnabled(params) {
391
392
  if (params.approvalKind === "exec") return isMatrixExecApprovalClientEnabled(params);
392
393
  return isChannelExecApprovalClientEnabledFromConfig({
@@ -404,17 +405,17 @@ function isMatrixAnyApprovalClientEnabled(params) {
404
405
  });
405
406
  }
406
407
  function shouldHandleMatrixApprovalRequest(params) {
407
- const approvalKind = resolveMatrixApprovalKind(params.request);
408
+ if (params.approvalKind !== "exec" && params.approvalKind !== "plugin") return false;
408
409
  if (!matchesMatrixRequestAccount({
409
410
  ...params,
410
- approvalKind
411
+ approvalKind: params.approvalKind
411
412
  })) return false;
412
413
  const config = resolveMatrixExecApprovalConfig(params);
413
414
  if (!isChannelExecApprovalClientEnabledFromConfig({
414
415
  enabled: config?.enabled,
415
416
  approverCount: getMatrixApprovalApprovers({
416
417
  ...params,
417
- approvalKind
418
+ approvalKind: params.approvalKind
418
419
  }).length
419
420
  })) return false;
420
421
  return matchesApprovalRequestFilters({
@@ -454,6 +455,7 @@ function shouldSuppressLocalMatrixExecApprovalPrompt(params) {
454
455
  return shouldHandleMatrixApprovalRequest({
455
456
  cfg: params.cfg,
456
457
  accountId: params.accountId,
458
+ approvalKind: metadata.approvalKind,
457
459
  request
458
460
  });
459
461
  }
@@ -519,11 +521,15 @@ function resolveSuppressionAccountId(params) {
519
521
  }
520
522
  const resolveMatrixOriginTarget = createChannelNativeOriginTargetResolver({
521
523
  channel: "matrix",
522
- shouldHandleRequest: ({ cfg, accountId, request }) => shouldHandleMatrixApprovalRequest({
523
- cfg,
524
- accountId,
525
- request
526
- }),
524
+ shouldHandleRequest: ({ cfg, accountId, approvalKind, request }) => {
525
+ if (approvalKind !== "exec" && approvalKind !== "plugin") return false;
526
+ return shouldHandleMatrixApprovalRequest({
527
+ cfg,
528
+ accountId,
529
+ approvalKind,
530
+ request
531
+ });
532
+ },
527
533
  resolveTurnSourceTarget: resolveTurnSourceMatrixOriginTarget,
528
534
  resolveSessionTarget: resolveSessionMatrixOriginTarget,
529
535
  normalizeTargetForMatch: normalizeMatrixOriginTarget,
@@ -589,12 +595,13 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
589
595
  cfg,
590
596
  accountId
591
597
  }),
592
- shouldHandle: ({ cfg, accountId, request }) => shouldHandleMatrixApprovalRequest({
598
+ shouldHandle: ({ cfg, accountId, approvalKind, request }) => shouldHandleMatrixApprovalRequest({
593
599
  cfg,
594
600
  accountId,
601
+ approvalKind,
595
602
  request
596
603
  }),
597
- load: async () => (await import("./approval-handler.runtime-DI5x9r8I.js")).matrixApprovalNativeRuntime
604
+ load: async () => (await import("./approval-handler.runtime--Ei44Vo2.js")).matrixApprovalNativeRuntime
598
605
  })
599
606
  });
600
607
  const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
@@ -609,6 +616,16 @@ const matrixDeliveryAdapter = matrixBaseDeliveryAdapter && {
609
616
  accountId,
610
617
  approvalKind: params.approvalKind
611
618
  })) return false;
619
+ if (params.approvalKind === "plugin") {
620
+ const targetChannel = normalizeLowercaseStringOrEmpty(params.target.channel);
621
+ const turnSourceChannel = normalizeLowercaseStringOrEmpty(params.request.request.turnSourceChannel);
622
+ return targetChannel === "matrix" && turnSourceChannel === "matrix" && shouldHandleMatrixApprovalRequest({
623
+ cfg: params.cfg,
624
+ accountId,
625
+ approvalKind: "plugin",
626
+ request: params.request
627
+ });
628
+ }
612
629
  return matrixBaseDeliveryAdapter.shouldSuppressForwardingFallback?.(params) ?? false;
613
630
  }
614
631
  };
@@ -627,7 +644,7 @@ const matrixNativeAdapter = matrixBaseNativeApprovalAdapter && {
627
644
  });
628
645
  return {
629
646
  ...capabilities,
630
- enabled: capabilities.enabled && hasApprovers && clientEnabled
647
+ enabled: hasApprovers && clientEnabled
631
648
  };
632
649
  },
633
650
  resolveOriginTarget: matrixBaseNativeApprovalAdapter.resolveOriginTarget,
@@ -707,56 +724,63 @@ function readLegacyRoomAllowAlias(room) {
707
724
  const rawRoom = room;
708
725
  return typeof rawRoom?.allow === "boolean" ? rawRoom.allow : void 0;
709
726
  }
727
+ function buildMatrixRoomScopeTree(rooms) {
728
+ const scopes = {};
729
+ for (const [key, room] of Object.entries(rooms ?? {})) scopes[key] = {
730
+ requireMention: typeof room.autoReply === "boolean" ? !room.autoReply : room.requireMention,
731
+ tools: room.tools
732
+ };
733
+ return { scopes };
734
+ }
735
+ function resolveMatrixRoomScopePath(params) {
736
+ const key = buildChannelKeyCandidates(params.roomId, `room:${params.roomId}`, ...params.aliases).find((candidate) => Object.hasOwn(params.tree.scopes, candidate)) ?? (Object.hasOwn(params.tree.scopes, "*") ? "*" : void 0);
737
+ return key ? [key] : [];
738
+ }
710
739
  function resolveMatrixRoomConfig(params) {
711
740
  const rooms = params.rooms ?? {};
712
- const allowlistConfigured = Object.keys(rooms).length > 0;
713
- const { entry: matched, key: matchedKey, wildcardEntry, wildcardKey } = resolveChannelEntryMatch({
714
- entries: rooms,
715
- keys: buildChannelKeyCandidates(params.roomId, `room:${params.roomId}`, ...params.aliases),
716
- wildcardKey: "*"
741
+ const tree = { scopes: rooms };
742
+ const [matchKey] = resolveMatrixRoomScopePath({
743
+ ...params,
744
+ tree
717
745
  });
718
- const resolved = matched ?? wildcardEntry;
746
+ const resolved = matchKey ? rooms[matchKey] : void 0;
719
747
  const legacyAllow = readLegacyRoomAllowAlias(resolved);
720
748
  return {
721
749
  allowed: resolved ? resolved.enabled !== false && legacyAllow !== false : false,
722
- allowlistConfigured,
750
+ allowlistConfigured: Object.keys(rooms).length > 0,
723
751
  config: resolved,
724
- matchKey: matchedKey ?? wildcardKey,
725
- matchSource: matched ? "direct" : wildcardEntry ? "wildcard" : void 0
752
+ matchKey,
753
+ matchSource: resolved ? matchKey === "*" ? "wildcard" : "direct" : void 0
726
754
  };
727
755
  }
728
756
  //#endregion
729
757
  //#region extensions/matrix/src/group-mentions.ts
730
- function resolveMatrixRoomConfigForGroup(params) {
731
- const roomId = normalizeMatrixResolvableTarget(params.groupId?.trim() ?? "");
732
- const groupChannel = params.groupChannel?.trim() ?? "";
733
- const aliases = groupChannel ? [normalizeMatrixResolvableTarget(groupChannel)] : [];
734
- const cfg = params.cfg;
758
+ function resolveMatrixGroupScope(params) {
735
759
  const matrixConfig = resolveMatrixAccountConfig({
736
- cfg,
760
+ cfg: params.cfg,
737
761
  accountId: params.accountId
738
762
  });
739
- return resolveMatrixRoomConfig({
740
- rooms: matrixConfig.groups ?? matrixConfig.rooms,
741
- roomId,
742
- aliases
743
- }).config;
763
+ const tree = buildMatrixRoomScopeTree(matrixConfig.groups ?? matrixConfig.rooms);
764
+ const roomId = normalizeMatrixResolvableTarget(params.groupId?.trim() ?? "");
765
+ const groupChannel = normalizeMatrixResolvableTarget(params.groupChannel?.trim() ?? "");
766
+ return {
767
+ tree,
768
+ path: resolveMatrixRoomScopePath({
769
+ tree,
770
+ roomId,
771
+ aliases: groupChannel ? [groupChannel] : []
772
+ })
773
+ };
744
774
  }
745
775
  function resolveMatrixGroupRequireMention(params) {
746
- const resolved = resolveMatrixRoomConfigForGroup(params);
747
- if (resolved) {
748
- if (resolved.autoReply === true) return false;
749
- if (resolved.autoReply === false) return true;
750
- if (typeof resolved.requireMention === "boolean") return resolved.requireMention;
751
- }
752
- return true;
776
+ return resolveScopeRequireMention(resolveMatrixGroupScope(params));
753
777
  }
754
778
  function resolveMatrixGroupToolPolicy(params) {
755
- return resolveMatrixRoomConfigForGroup(params)?.tools;
779
+ return resolveScopeToolsPolicy(resolveMatrixGroupScope(params));
756
780
  }
757
781
  //#endregion
758
782
  //#region extensions/matrix/src/resolver.ts
759
- const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-Hr6bO5zl.js"), "matrixResolverRuntime");
783
+ const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-MeaT1zXx.js"), "matrixResolverRuntime");
760
784
  const matrixResolverAdapter = { resolveTargets: async ({ cfg, accountId, inputs, kind, runtime }) => (await loadMatrixChannelRuntime$1()).resolveMatrixTargets({
761
785
  cfg,
762
786
  accountId,
@@ -880,75 +904,11 @@ function resolveMatrixOutboundSessionRoute(params) {
880
904
  });
881
905
  }
882
906
  //#endregion
883
- //#region extensions/matrix/src/startup-maintenance.ts
884
- function logWarningOnlyMatrixMigrationReasons(params) {
885
- if (params.status.legacyState && "warning" in params.status.legacyState) params.log.warn?.(`matrix: ${params.status.legacyState.warning}`);
886
- if (params.status.legacyCrypto.warnings.length > 0) params.log.warn?.(`matrix: legacy encrypted-state warnings:\n${params.status.legacyCrypto.warnings.map((entry) => `- ${entry}`).join("\n")}`);
887
- }
888
- async function runBestEffortMatrixMigrationStep(params) {
889
- try {
890
- await params.run();
891
- } catch (err) {
892
- params.log.warn?.(`${params.logPrefix?.trim() || "gateway"}: ${params.label} failed during Matrix migration; continuing startup: ${String(err)}`);
893
- }
894
- }
895
- async function runMatrixStartupMaintenance(params) {
896
- const env = params.env ?? process.env;
897
- const createSnapshot = params.deps?.maybeCreateMatrixMigrationSnapshot ?? maybeCreateMatrixMigrationSnapshot;
898
- const migrateLegacyState = params.deps?.autoMigrateLegacyMatrixState ?? autoMigrateLegacyMatrixState;
899
- const prepareLegacyCrypto = params.deps?.autoPrepareLegacyMatrixCrypto ?? autoPrepareLegacyMatrixCrypto;
900
- const trigger = params.trigger?.trim() || "gateway-startup";
901
- const logPrefix = params.logPrefix?.trim() || "gateway";
902
- const migrationStatus = resolveMatrixMigrationStatus({
903
- cfg: params.cfg,
904
- env
905
- });
906
- if (!migrationStatus.pending) return;
907
- if (!migrationStatus.actionable) {
908
- params.log.info?.("matrix: migration remains in a warning-only state; no pre-migration snapshot was needed yet");
909
- logWarningOnlyMatrixMigrationReasons({
910
- status: migrationStatus,
911
- log: params.log
912
- });
913
- return;
914
- }
915
- try {
916
- await createSnapshot({
917
- trigger,
918
- env,
919
- log: params.log
920
- });
921
- } catch (err) {
922
- params.log.warn?.(`${logPrefix}: failed creating a Matrix migration snapshot; skipping Matrix migration for now: ${String(err)}`);
923
- return;
924
- }
925
- await runBestEffortMatrixMigrationStep({
926
- label: "legacy Matrix state migration",
927
- log: params.log,
928
- logPrefix,
929
- run: () => migrateLegacyState({
930
- cfg: params.cfg,
931
- env,
932
- log: params.log
933
- })
934
- });
935
- await runBestEffortMatrixMigrationStep({
936
- label: "legacy Matrix encrypted-state preparation",
937
- log: params.log,
938
- logPrefix,
939
- run: () => prepareLegacyCrypto({
940
- cfg: params.cfg,
941
- env,
942
- log: params.log
943
- })
944
- });
945
- }
946
- //#endregion
947
907
  //#region extensions/matrix/src/channel.ts
948
908
  let matrixStartupLock = Promise.resolve();
949
- const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-iJ6pd-t5.js").then((n) => n.t), "matrixSetupWizard");
950
- const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DO1Nv9ed.js"), "matrixChannelRuntime");
951
- const loadMatrixDoctorModule = createLazyRuntimeModule(() => import("./doctor-DfaOqFtr.js"));
909
+ const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-2SS94JV0.js").then((n) => n.t), "matrixSetupWizard");
910
+ const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-wNfJc57I.js"), "matrixChannelRuntime");
911
+ const loadMatrixDoctorModule = createLazyRuntimeModule(() => import("./doctor-BGTs609f.js"));
952
912
  const meta = {
953
913
  id: "matrix",
954
914
  label: "Matrix",
@@ -1201,7 +1161,7 @@ const matrixPlugin = createChatChannelPlugin({
1201
1161
  },
1202
1162
  conversationBindings: {
1203
1163
  supportsCurrentConversationBinding: true,
1204
- defaultTopLevelPlacement: "child",
1164
+ defaultTopLevelPlacement,
1205
1165
  setIdleTimeoutBySessionKey: ({ targetSessionKey, accountId, idleTimeoutMs }) => setMatrixThreadBindingIdleTimeoutBySessionKey({
1206
1166
  targetSessionKey,
1207
1167
  accountId: accountId ?? "",
@@ -1320,7 +1280,7 @@ const matrixPlugin = createChatChannelPlugin({
1320
1280
  await previousLock;
1321
1281
  let monitorMatrixProvider;
1322
1282
  try {
1323
- monitorMatrixProvider = (await import("./monitor-CsGOGdwu.js")).monitorMatrixProvider;
1283
+ monitorMatrixProvider = (await import("./monitor-C_kgPPeV.js")).monitorMatrixProvider;
1324
1284
  } finally {
1325
1285
  releaseLock();
1326
1286
  }
@@ -1336,7 +1296,6 @@ const matrixPlugin = createChatChannelPlugin({
1336
1296
  });
1337
1297
  } },
1338
1298
  doctor: matrixDoctor,
1339
- lifecycle: { runStartupMaintenance: runMatrixStartupMaintenance },
1340
1299
  heartbeat: {
1341
1300
  sendTyping: async ({ cfg, to, accountId }) => {
1342
1301
  await (await loadMatrixChannelRuntime()).sendTypingMatrix(to, true, {
@@ -1,2 +1,2 @@
1
- import { t as matrixPlugin } from "./channel-jUTBsjHU.js";
1
+ import { t as matrixPlugin } from "./channel-CxqDh7mS.js";
2
2
  export { matrixPlugin };
@@ -1,10 +1,10 @@
1
- import { a as sendMessageMatrix, c as sendTypingMatrix, o as sendPollMatrix } from "./send-D92v6Yy0.js";
1
+ import { a as sendMessageMatrix, c as sendTypingMatrix, o as sendPollMatrix } from "./send-C7xuGWpv.js";
2
2
  import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
3
- import { f as resolveMatrixAuth } from "./shared-DkFfq7mH.js";
4
- import "./client-tgnlQJk4.js";
5
- import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-Ufd4qSpX.js";
6
- import { f as resolveOutboundSendDep, n as chunkTextForOutbound } from "./runtime-api-CsBoesCU.js";
7
- import { t as resolveMatrixTargets } from "./resolve-targets-DcV_KfgX.js";
3
+ import { f as resolveMatrixAuth } from "./shared-DgvN5rBx.js";
4
+ import "./client-DP0nmFxK.js";
5
+ import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-DPy2aaPF.js";
6
+ import { p as resolveOutboundSendDep, r as chunkTextForOutbound } from "./runtime-api-D1xI_cvh.js";
7
+ import { t as resolveMatrixTargets } from "./resolve-targets-DlLrfWDy.js";
8
8
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
9
9
  import { createReplyToFanout } from "openclaw/plugin-sdk/channel-outbound";
10
10
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -12,7 +12,7 @@ import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
12
12
  import { renderMessagePresentationFallbackText } from "openclaw/plugin-sdk/interactive-runtime";
13
13
  import { resolvePayloadMediaUrls } from "openclaw/plugin-sdk/reply-payload";
14
14
  //#region extensions/matrix/src/matrix/probe.ts
15
- const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./probe.runtime-2MZLc6ng.js").then((runtimeModule) => ({ createMatrixClient: runtimeModule.createMatrixClient })));
15
+ const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./probe.runtime-Dry8PTWC.js").then((runtimeModule) => ({ createMatrixClient: runtimeModule.createMatrixClient })));
16
16
  async function probeMatrix(params) {
17
17
  const started = Date.now();
18
18
  const result = {
@@ -2,7 +2,7 @@ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
2
2
  //#region extensions/matrix/src/cli-metadata.ts
3
3
  function registerMatrixCliMetadata(api) {
4
4
  api.registerCli(async ({ program }) => {
5
- const { registerMatrixCli } = await import("./cli-CEfWwCKx.js");
5
+ const { registerMatrixCli } = await import("./cli-o00oTJhx.js");
6
6
  registerMatrixCli({ program });
7
7
  }, { descriptors: [{
8
8
  name: "matrix",
@@ -1,2 +1,2 @@
1
- import { n as registerMatrixCliMetadata, t as cli_metadata_default } from "./cli-metadata-CfiEO-CE.js";
1
+ import { n as registerMatrixCliMetadata, t as cli_metadata_default } from "./cli-metadata-Gf3HSJ2c.js";
2
2
  export { cli_metadata_default as default, registerMatrixCliMetadata };
@@ -1,16 +1,16 @@
1
1
  import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
2
- import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
3
- import { c as resolveMatrixConfigPath, g as resolveMatrixAccount, l as updateMatrixAccountConfig, n as matrixSetupAdapter } from "./setup-core-BGgbrdaJ.js";
2
+ import { t as getMatrixRuntime } from "./runtime-CveSqMOP.js";
3
+ import { c as resolveMatrixConfigPath, g as resolveMatrixAccount, l as updateMatrixAccountConfig, n as matrixSetupAdapter } from "./setup-core-DlmTyIP0.js";
4
4
  import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
5
- import { n as withResolvedActionClient } from "./client-FRuyCNju.js";
6
- import { p as resolveMatrixAuthContext } from "./shared-DkFfq7mH.js";
7
- import "./client-tgnlQJk4.js";
8
- import { i as formatZonedTimestamp } from "./runtime-api-CsBoesCU.js";
5
+ import { n as withResolvedActionClient } from "./client-ClHisZbf.js";
6
+ import { p as resolveMatrixAuthContext } from "./shared-DgvN5rBx.js";
7
+ import "./client-DP0nmFxK.js";
8
+ import { a as formatZonedTimestamp } from "./runtime-api-D1xI_cvh.js";
9
9
  import { isOpenClawManagedMatrixDevice, summarizeMatrixDeviceHealth } from "./device-health-D4LBxuPq.js";
10
- import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-Ucc8RrJL.js";
11
- import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-BGCMiO1p.js";
10
+ import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-iUHCoks3.js";
11
+ import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-DLSe3sP7.js";
12
12
  import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Dm_YMVFT.js";
13
- import { setMatrixSdkConsoleLogging, setMatrixSdkLogMode } from "./logging-QH-48Gr6.js";
13
+ import { setMatrixSdkConsoleLogging, setMatrixSdkLogMode } from "./logging-CFJrbDAN.js";
14
14
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
15
15
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
16
16
  import { parseStrictInteger, timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
@@ -36,8 +36,8 @@ async function pruneMatrixStaleGatewayDevices(opts = {}) {
36
36
  //#endregion
37
37
  //#region extensions/matrix/src/cli.ts
38
38
  let matrixCliExitScheduled = false;
39
- const loadMatrixActionClientModule = createLazyRuntimeModule(() => import("./client-FRuyCNju.js").then((n) => n.t));
40
- const loadMatrixDirectManagementModule = createLazyRuntimeModule(() => import("./send-D92v6Yy0.js").then((n) => n.d));
39
+ const loadMatrixActionClientModule = createLazyRuntimeModule(() => import("./client-ClHisZbf.js").then((n) => n.t));
40
+ const loadMatrixDirectManagementModule = createLazyRuntimeModule(() => import("./send-C7xuGWpv.js").then((n) => n.d));
41
41
  function scheduleMatrixCliExit() {
42
42
  if (matrixCliExitScheduled || process.env.VITEST) return;
43
43
  matrixCliExitScheduled = true;
@@ -205,7 +205,7 @@ async function addMatrixAccount(params) {
205
205
  backupVersion: null
206
206
  };
207
207
  if (accountConfig.encryption === true) {
208
- const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-Da564w5f.js");
208
+ const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-CCsexWTZ.js");
209
209
  verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
210
210
  previousCfg: cfg,
211
211
  cfg: updated,
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { u as resolveMatrixRoomId } from "./send-D92v6Yy0.js";
3
- import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-DjFJ7e0N.js";
2
+ import { u as resolveMatrixRoomId } from "./send-C7xuGWpv.js";
3
+ import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-PqYOS-mO.js";
4
4
  //#region extensions/matrix/src/matrix/actions/client.ts
5
5
  var client_exports = /* @__PURE__ */ __exportAll({
6
6
  withResolvedActionClient: () => withResolvedActionClient,
@@ -1,10 +1,10 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { t as getMatrixScopedEnvVarNames } from "./env-vars-KzaYveuy.js";
3
- import { i as resolveScopedMatrixEnvConfig, r as resolveMatrixEnvAuthReadiness, t as hasReadyMatrixEnvAuth } from "./env-auth-DIzOApj0.js";
2
+ import { t as getMatrixScopedEnvVarNames } from "./env-vars-B0NxQnPk.js";
3
+ import { i as resolveScopedMatrixEnvConfig, r as resolveMatrixEnvAuthReadiness, t as hasReadyMatrixEnvAuth } from "./env-auth-CQsYbz-p.js";
4
4
  import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
5
5
  import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
6
- import { d as backfillMatrixAuthDeviceIdAfterStartup, f as resolveMatrixAuth, i as resolveSharedMatrixClient, m as resolveMatrixConfigForAccount, n as releaseSharedClientInstance, o as stopSharedClientForAccount, p as resolveMatrixAuthContext, r as removeSharedClientInstance, s as stopSharedClientInstance, t as acquireSharedMatrixClient } from "./shared-DkFfq7mH.js";
7
- import { t as createMatrixClient } from "./create-client-CNakT7zF.js";
6
+ import { d as backfillMatrixAuthDeviceIdAfterStartup, f as resolveMatrixAuth, i as resolveSharedMatrixClient, m as resolveMatrixConfigForAccount, n as releaseSharedClientInstance, o as stopSharedClientForAccount, p as resolveMatrixAuthContext, r as removeSharedClientInstance, s as stopSharedClientInstance, t as acquireSharedMatrixClient } from "./shared-DgvN5rBx.js";
7
+ import { t as createMatrixClient } from "./create-client-D9z9RjCM.js";
8
8
  //#region extensions/matrix/src/matrix/client.ts
9
9
  var client_exports = /* @__PURE__ */ __exportAll({
10
10
  acquireSharedMatrixClient: () => acquireSharedMatrixClient,
@@ -8,7 +8,7 @@ var client_bootstrap_exports = /* @__PURE__ */ __exportAll({
8
8
  resolveRuntimeMatrixClientWithReadiness: () => resolveRuntimeMatrixClientWithReadiness,
9
9
  withResolvedRuntimeMatrixClient: () => withResolvedRuntimeMatrixClient
10
10
  });
11
- const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => Promise.all([import("./client-tgnlQJk4.js").then((n) => n.t), import("./shared-DkFfq7mH.js").then((n) => n.a)]).then(([clientModule, sharedModule]) => ({
11
+ const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => Promise.all([import("./client-DP0nmFxK.js").then((n) => n.t), import("./shared-DgvN5rBx.js").then((n) => n.a)]).then(([clientModule, sharedModule]) => ({
12
12
  acquireSharedMatrixClient: clientModule.acquireSharedMatrixClient,
13
13
  resolveMatrixAuthContext: clientModule.resolveMatrixAuthContext,
14
14
  releaseSharedClientInstance: sharedModule.releaseSharedClientInstance