@openclaw/matrix 2026.7.2-beta.1 → 2026.7.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/api.js +4 -4
  2. package/dist/{approval-handler.runtime--Ei44Vo2.js → approval-handler.runtime-BQZdg_dJ.js} +5 -5
  3. package/dist/{approval-ids-C_2kSMdJ.js → approval-ids-De4IhOSN.js} +1 -1
  4. package/dist/{approval-reaction-auth-TdVPcgxP.js → approval-reaction-auth-BLJKPLku.js} +2 -2
  5. package/dist/{approval-reactions-BgU51JGd.js → approval-reactions-D-BxBK_L.js} +1 -1
  6. package/dist/{channel-CxqDh7mS.js → channel-B1woOUgk.js} +10 -9
  7. package/dist/channel-plugin-api.js +1 -1
  8. package/dist/{channel.runtime-wNfJc57I.js → channel.runtime-BvJm9z0w.js} +6 -6
  9. package/dist/{cli-o00oTJhx.js → cli-CLWOkMvw.js} +16 -13
  10. package/dist/{cli-metadata-Gf3HSJ2c.js → cli-metadata-9Naf7in0.js} +1 -1
  11. package/dist/cli-metadata.js +1 -1
  12. package/dist/{client-ClHisZbf.js → client-BUai6s29.js} +2 -2
  13. package/dist/{client-DP0nmFxK.js → client-CPuYbNL8.js} +2 -2
  14. package/dist/{client-bootstrap-PqYOS-mO.js → client-bootstrap-CNVF73sF.js} +1 -1
  15. package/dist/{config-schema-CG9goLWp.js → config-schema-BTSatSY3.js} +8 -10
  16. package/dist/contract-api.js +2 -2
  17. package/dist/{create-client-D9z9RjCM.js → create-client-85ttAWDP.js} +3 -3
  18. package/dist/{credentials-DnhsLAuR.js → credentials-CncWUieb.js} +1 -1
  19. package/dist/{credentials-read-BtS-HRT5.js → credentials-read-CwNJrmwu.js} +1 -1
  20. package/dist/{credentials-write.runtime-J_EUt5WP.js → credentials-write.runtime-BDtpqvj0.js} +1 -1
  21. package/dist/{crypto-runtime-BHcxauC4.js → crypto-runtime-DoEB5RpM.js} +3 -3
  22. package/dist/{directory-live-DPy2aaPF.js → directory-live-0TyS9xep.js} +3 -3
  23. package/dist/doctor-contract-api.js +4 -4
  24. package/dist/{draft-stream-De7uikGn.js → draft-stream-GOdPZMBm.js} +1 -1
  25. package/dist/{file-sync-store-Cxb0ckyX.js → file-sync-store-CUE9WwD2.js} +3 -3
  26. package/dist/{http-client-W4TJQM6r.js → http-client-Jw5_bwQo.js} +1 -1
  27. package/dist/{idb-persistence-iUZoHZkp.js → idb-persistence-BiHEEzD7.js} +2 -2
  28. package/dist/{inbound-dedupe-DcMs0YXL.js → inbound-dedupe-CaBLblef.js} +19 -38
  29. package/dist/index.js +1 -1
  30. package/dist/{logger-BMClpI5b.js → logger-D0GCSDQq.js} +1 -1
  31. package/dist/{logging-CFJrbDAN.js → logging-QH-48Gr6.js} +1 -1
  32. package/dist/{media-text-DWaotsZB.js → media-text-DPCtdFjk.js} +1 -1
  33. package/dist/{messages-Dm3K4ZvM.js → messages-DCRbGLMh.js} +3 -3
  34. package/dist/{monitor-C_kgPPeV.js → monitor-C5EOF9et.js} +67 -66
  35. package/dist/plugin-entry.handlers.runtime.js +1 -1
  36. package/dist/probe.runtime-BBvciVfo.js +3 -0
  37. package/dist/{profile-update-iUHCoks3.js → profile-update-DompcDyu.js} +3 -3
  38. package/dist/{reaction-events-0tubdHRM.js → reaction-events-QUgxkQKQ.js} +3 -3
  39. package/dist/{recovery-key-store-Bx0zTJcB.js → recovery-key-store-B2RglalK.js} +2 -2
  40. package/dist/{resolve-targets-DlLrfWDy.js → resolve-targets-Cx1VVArA.js} +1 -1
  41. package/dist/{resolver.runtime-MeaT1zXx.js → resolver.runtime-PPrv3ZHu.js} +1 -1
  42. package/dist/{runtime-CveSqMOP.js → runtime-6S3DNFNv.js} +1 -1
  43. package/dist/runtime-api.js +3 -3
  44. package/dist/runtime-setter-api.js +1 -1
  45. package/dist/{sdk-CI8E2TKg.js → sdk-1TXuSiXZ.js} +7 -7
  46. package/dist/{send-C7xuGWpv.js → send-yre1krm8.js} +2 -2
  47. package/dist/session-binding-contract-api.js +2 -2
  48. package/dist/{setup-bootstrap-CCsexWTZ.js → setup-bootstrap-DXVRCd4G.js} +2 -2
  49. package/dist/{setup-core-DlmTyIP0.js → setup-core-CYQRY2oG.js} +2 -2
  50. package/dist/setup-plugin-api.js +3 -3
  51. package/dist/{setup-surface-2SS94JV0.js → setup-surface-BjvRQzK6.js} +4 -4
  52. package/dist/{shared-DgvN5rBx.js → shared-BfW4lxGu.js} +6 -6
  53. package/dist/{startup-verification-CbIyF7z1.js → startup-verification-DSiyDKM5.js} +2 -2
  54. package/dist/{storage-BtSOar8T.js → storage-DD-EnNJE.js} +4 -4
  55. package/dist/{thread-bindings-BI8MHWp9.js → thread-bindings-U5ZroBeZ.js} +3 -3
  56. package/dist/{tool-actions.runtime-CnyhVPoY.js → tool-actions.runtime-BlfTr9b0.js} +19 -15
  57. package/dist/{verification-DLSe3sP7.js → verification-CGnI9k1O.js} +1 -1
  58. package/npm-shrinkwrap.json +3 -3
  59. package/openclaw.plugin.json +70 -70
  60. package/package.json +4 -4
  61. package/dist/probe.runtime-Dry8PTWC.js +0 -3
@@ -1,5 +1,5 @@
1
1
  import { t as isRecord } from "./record-shared-CvzjvHRn.js";
2
- import { t as getMatrixRuntime } from "./runtime-CveSqMOP.js";
2
+ import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
3
3
  import { n as resolveMatrixAccountStorageRoot } from "./storage-paths-B4_I9iqO.js";
4
4
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
5
5
  import fs from "node:fs";
@@ -526,7 +526,7 @@ function resolveMatrixStateFilePath(params) {
526
526
  }
527
527
  async function maybeMigrateLegacyStorage(params) {
528
528
  const hasAccountScopedLegacyStorageFile = fs.existsSync(params.storagePaths.storagePath);
529
- const syncCache = hasAccountScopedLegacyStorageFile ? await import("./file-sync-store-Cxb0ckyX.js").then((n) => n.n) : null;
529
+ const syncCache = hasAccountScopedLegacyStorageFile ? await import("./file-sync-store-CUE9WwD2.js").then((n) => n.n) : null;
530
530
  const hasAccountScopedLegacyStorage = hasAccountScopedLegacyStorageFile && await syncCache?.readLegacyMatrixSyncCacheState(params.storagePaths.rootDir) !== null;
531
531
  const hasAccountScopedRecoveryKey = fs.existsSync(params.storagePaths.recoveryKeyPath);
532
532
  const hasAccountScopedIdbSnapshot = fs.existsSync(params.storagePaths.idbSnapshotPath);
@@ -587,7 +587,7 @@ async function migrateLegacyIdbSnapshotToSqlite(params) {
587
587
  });
588
588
  return;
589
589
  }
590
- const { readLegacyMatrixIdbSnapshotState } = await import("./idb-persistence-iUZoHZkp.js").then((n) => n.t);
590
+ const { readLegacyMatrixIdbSnapshotState } = await import("./idb-persistence-BiHEEzD7.js").then((n) => n.t);
591
591
  const snapshot = await readLegacyMatrixIdbSnapshotState(params.storageRootDir);
592
592
  if (!snapshot) return;
593
593
  writeMatrixIdbSnapshotJson({
@@ -606,7 +606,7 @@ async function migrateLegacyIdbSnapshotToSqlite(params) {
606
606
  });
607
607
  }
608
608
  async function migrateLegacySyncCacheToSqlite(params) {
609
- const syncCache = await import("./file-sync-store-Cxb0ckyX.js").then((n) => n.n);
609
+ const syncCache = await import("./file-sync-store-CUE9WwD2.js").then((n) => n.n);
610
610
  const persisted = await syncCache.readLegacyMatrixSyncCacheState(params.sourceRootDir);
611
611
  if (!persisted) return;
612
612
  const store = getMatrixRuntime().state.openKeyedStore(syncCache.openMatrixSyncCacheStoreOptions(params.targetRootDir));
@@ -1,7 +1,7 @@
1
- import { t as getMatrixRuntime } from "./runtime-CveSqMOP.js";
1
+ import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
2
2
  import { a as listBindingsForAccount, c as resolveBindingKey, f as setMatrixThreadBindingManagerEntry, h as toSessionBindingRecord, l as resolveEffectiveBindingExpiry, m as toMatrixBindingTargetKind, o as removeBindingRecord, r as getMatrixThreadBindingManagerEntry, t as deleteMatrixThreadBindingManagerEntry, u as setBindingRecord } from "./thread-bindings-shared-CKnY4LSd.js";
3
- import { M as resolveMatrixSqliteStateEnv, N as resolveMatrixSqliteStateKey, c as resolveMatrixStateFilePath, t as claimCurrentTokenStorageState } from "./storage-BtSOar8T.js";
4
- import { a as sendMessageMatrix } from "./send-C7xuGWpv.js";
3
+ import { M as resolveMatrixSqliteStateEnv, N as resolveMatrixSqliteStateKey, c as resolveMatrixStateFilePath, t as claimCurrentTokenStorageState } from "./storage-DD-EnNJE.js";
4
+ import { a as sendMessageMatrix } from "./send-yre1krm8.js";
5
5
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import path from "node:path";
7
7
  import { createHash } from "node:crypto";
@@ -1,14 +1,14 @@
1
1
  import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig } from "./account-config-BZWN9tGS.js";
2
- import { g as resolveMatrixAccount } from "./setup-core-DlmTyIP0.js";
3
- import { r as resolveMatrixRoomConfig } from "./channel-CxqDh7mS.js";
2
+ import { g as resolveMatrixAccount } from "./setup-core-CYQRY2oG.js";
3
+ import { r as resolveMatrixRoomConfig } from "./channel-B1woOUgk.js";
4
4
  import { r as normalizeMatrixResolvableTarget } from "./target-ids-B-5aQxwn.js";
5
- import { E as parsePollStart, T as isPollStartType, _ as readJoinedMatrixMembers, b as buildPollResponseContent, g as isStrictDirectMembership, h as hasDirectMatrixMemberFlag, i as reactMatrixMessage, u as resolveMatrixRoomId } from "./send-C7xuGWpv.js";
5
+ import { E as parsePollStart, T as isPollStartType, _ as readJoinedMatrixMembers, b as buildPollResponseContent, g as isStrictDirectMembership, h as hasDirectMatrixMemberFlag, i as reactMatrixMessage, u as resolveMatrixRoomId } from "./send-yre1krm8.js";
6
6
  import { i as buildMatrixReactionRelationsPath, o as selectOwnMatrixReactionEventIds, s as summarizeMatrixReactionEvents } from "./reaction-common-DkrQdBSZ.js";
7
- import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-ClHisZbf.js";
8
- import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as sendMatrixMessage, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessages, s as EventType, t as deleteMatrixMessage } from "./messages-Dm3K4ZvM.js";
7
+ import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-BUai6s29.js";
8
+ import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as sendMatrixMessage, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessages, s as EventType, t as deleteMatrixMessage } from "./messages-DCRbGLMh.js";
9
9
  import { c as readReactionParams, d as resolveAllowlistProviderRuntimeGroupPolicy, f as resolveDefaultGroupPolicy, i as createActionGate, l as readStringArrayParam, n as ToolAuthorizationError, o as jsonResult, s as readPositiveIntegerParam, u as readStringParam } from "./runtime-api-D1xI_cvh.js";
10
- import { t as applyMatrixProfileUpdate } from "./profile-update-iUHCoks3.js";
11
- import { _ as scanMatrixVerificationQr, a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, h as restoreMatrixRoomKeyBackup, i as confirmMatrixVerificationReciprocateQr, l as getMatrixVerificationSas, n as bootstrapMatrixVerification, o as generateMatrixVerificationQr, p as requestMatrixVerification, r as cancelMatrixVerification, s as getMatrixEncryptionStatus, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-DLSe3sP7.js";
10
+ import { t as applyMatrixProfileUpdate } from "./profile-update-DompcDyu.js";
11
+ import { _ as scanMatrixVerificationQr, a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, h as restoreMatrixRoomKeyBackup, i as confirmMatrixVerificationReciprocateQr, l as getMatrixVerificationSas, n as bootstrapMatrixVerification, o as generateMatrixVerificationQr, p as requestMatrixVerification, r as cancelMatrixVerification, s as getMatrixEncryptionStatus, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-CGnI9k1O.js";
12
12
  import { t as createMatrixRoomInfoResolver } from "./room-info-B6vKD5DF.js";
13
13
  import { normalizeOptionalLowercaseString, uniqueStrings, uniqueValues } from "openclaw/plugin-sdk/string-coerce-runtime";
14
14
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
@@ -503,14 +503,18 @@ async function handleMatrixAction(params, cfg, opts = {}) {
503
503
  return jsonResult({
504
504
  ok: true,
505
505
  ...await withReadTarget(roomId, async (target) => {
506
- return await readMatrixMessages(target.roomId, {
507
- limit: limit ?? void 0,
508
- before: before ?? void 0,
509
- after: after ?? void 0,
510
- threadId: threadId ?? void 0,
511
- ...clientOpts,
512
- client: target.client
513
- });
506
+ return {
507
+ ...await readMatrixMessages(target.roomId, {
508
+ limit: limit ?? void 0,
509
+ before: before ?? void 0,
510
+ after: after ?? void 0,
511
+ threadId: threadId ?? void 0,
512
+ ...clientOpts,
513
+ client: target.client
514
+ }),
515
+ roomId: target.roomId,
516
+ ...threadId ? { threadId } : {}
517
+ };
514
518
  })
515
519
  });
516
520
  }
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-ClHisZbf.js";
2
+ import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-BUai6s29.js";
3
3
  import { n as formatMatrixEncryptionUnavailableError } from "./encryption-guidance-BFfgq7c7.js";
4
4
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/matrix",
3
- "version": "2026.7.2-beta.1",
3
+ "version": "2026.7.2-beta.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/matrix",
9
- "version": "2026.7.2-beta.1",
9
+ "version": "2026.7.2-beta.2",
10
10
  "dependencies": {
11
11
  "@matrix-org/matrix-sdk-crypto-nodejs": "0.6.1",
12
12
  "@matrix-org/matrix-sdk-crypto-wasm": "18.3.1",
@@ -18,7 +18,7 @@
18
18
  "zod": "4.4.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "openclaw": ">=2026.7.2-beta.1"
21
+ "openclaw": ">=2026.7.2-beta.2"
22
22
  },
23
23
  "peerDependenciesMeta": {
24
24
  "openclaw": {
@@ -669,14 +669,47 @@
669
669
  "additionalProperties": {
670
670
  "type": "object",
671
671
  "properties": {
672
- "account": {
673
- "type": "string"
672
+ "requireMention": {
673
+ "type": "boolean"
674
+ },
675
+ "tools": {
676
+ "type": "object",
677
+ "properties": {
678
+ "allow": {
679
+ "type": "array",
680
+ "items": {
681
+ "type": "string"
682
+ }
683
+ },
684
+ "alsoAllow": {
685
+ "type": "array",
686
+ "items": {
687
+ "type": "string"
688
+ }
689
+ },
690
+ "deny": {
691
+ "type": "array",
692
+ "items": {
693
+ "type": "string"
694
+ }
695
+ }
696
+ },
697
+ "additionalProperties": false
698
+ },
699
+ "skills": {
700
+ "type": "array",
701
+ "items": {
702
+ "type": "string"
703
+ }
674
704
  },
675
705
  "enabled": {
676
706
  "type": "boolean"
677
707
  },
678
- "requireMention": {
679
- "type": "boolean"
708
+ "systemPrompt": {
709
+ "type": "string"
710
+ },
711
+ "account": {
712
+ "type": "string"
680
713
  },
681
714
  "allowBots": {
682
715
  "anyOf": [
@@ -713,6 +746,35 @@
713
746
  },
714
747
  "additionalProperties": false
715
748
  },
749
+ "autoReply": {
750
+ "type": "boolean"
751
+ },
752
+ "users": {
753
+ "type": "array",
754
+ "items": {
755
+ "anyOf": [
756
+ {
757
+ "type": "string"
758
+ },
759
+ {
760
+ "type": "number"
761
+ }
762
+ ]
763
+ }
764
+ }
765
+ },
766
+ "additionalProperties": false
767
+ }
768
+ },
769
+ "rooms": {
770
+ "type": "object",
771
+ "properties": {},
772
+ "additionalProperties": {
773
+ "type": "object",
774
+ "properties": {
775
+ "requireMention": {
776
+ "type": "boolean"
777
+ },
716
778
  "tools": {
717
779
  "type": "object",
718
780
  "properties": {
@@ -737,50 +799,21 @@
737
799
  },
738
800
  "additionalProperties": false
739
801
  },
740
- "autoReply": {
741
- "type": "boolean"
742
- },
743
- "users": {
744
- "type": "array",
745
- "items": {
746
- "anyOf": [
747
- {
748
- "type": "string"
749
- },
750
- {
751
- "type": "number"
752
- }
753
- ]
754
- }
755
- },
756
802
  "skills": {
757
803
  "type": "array",
758
804
  "items": {
759
805
  "type": "string"
760
806
  }
761
807
  },
808
+ "enabled": {
809
+ "type": "boolean"
810
+ },
762
811
  "systemPrompt": {
763
812
  "type": "string"
764
- }
765
- },
766
- "additionalProperties": false
767
- }
768
- },
769
- "rooms": {
770
- "type": "object",
771
- "properties": {},
772
- "additionalProperties": {
773
- "type": "object",
774
- "properties": {
813
+ },
775
814
  "account": {
776
815
  "type": "string"
777
816
  },
778
- "enabled": {
779
- "type": "boolean"
780
- },
781
- "requireMention": {
782
- "type": "boolean"
783
- },
784
817
  "allowBots": {
785
818
  "anyOf": [
786
819
  {
@@ -816,30 +849,6 @@
816
849
  },
817
850
  "additionalProperties": false
818
851
  },
819
- "tools": {
820
- "type": "object",
821
- "properties": {
822
- "allow": {
823
- "type": "array",
824
- "items": {
825
- "type": "string"
826
- }
827
- },
828
- "alsoAllow": {
829
- "type": "array",
830
- "items": {
831
- "type": "string"
832
- }
833
- },
834
- "deny": {
835
- "type": "array",
836
- "items": {
837
- "type": "string"
838
- }
839
- }
840
- },
841
- "additionalProperties": false
842
- },
843
852
  "autoReply": {
844
853
  "type": "boolean"
845
854
  },
@@ -855,15 +864,6 @@
855
864
  }
856
865
  ]
857
866
  }
858
- },
859
- "skills": {
860
- "type": "array",
861
- "items": {
862
- "type": "string"
863
- }
864
- },
865
- "systemPrompt": {
866
- "type": "string"
867
867
  }
868
868
  },
869
869
  "additionalProperties": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/matrix",
3
- "version": "2026.7.2-beta.1",
3
+ "version": "2026.7.2-beta.2",
4
4
  "description": "OpenClaw Matrix channel plugin for rooms and direct messages.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,7 @@
18
18
  "zod": "4.4.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "openclaw": ">=2026.7.2-beta.1"
21
+ "openclaw": ">=2026.7.2-beta.2"
22
22
  },
23
23
  "peerDependenciesMeta": {
24
24
  "openclaw": {
@@ -84,10 +84,10 @@
84
84
  "allowInvalidConfigRecovery": true
85
85
  },
86
86
  "compat": {
87
- "pluginApi": ">=2026.7.2-beta.1"
87
+ "pluginApi": ">=2026.7.2-beta.2"
88
88
  },
89
89
  "build": {
90
- "openclawVersion": "2026.7.2-beta.1"
90
+ "openclawVersion": "2026.7.2-beta.2"
91
91
  },
92
92
  "release": {
93
93
  "publishToClawHub": true,
@@ -1,3 +0,0 @@
1
- import { t as createMatrixClient } from "./create-client-D9z9RjCM.js";
2
- import "./client-DP0nmFxK.js";
3
- export { createMatrixClient };