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

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 (90) hide show
  1. package/dist/{account-selection-Bz00QTmQ.js → account-selection-kqquRzCf.js} +5 -5
  2. package/dist/api.js +6 -6
  3. package/dist/{approval-handler.runtime-BQZdg_dJ.js → approval-handler.runtime-AsawryfP.js} +4 -4
  4. package/dist/{approval-ids-De4IhOSN.js → approval-ids-XAMP8vN9.js} +1 -1
  5. package/dist/{approval-reaction-auth-BLJKPLku.js → approval-reaction-auth-DButmM13.js} +2 -2
  6. package/dist/auth-presence.js +13 -21
  7. package/dist/{channel-B1woOUgk.js → channel-MBtrY36B.js} +19 -13
  8. package/dist/channel-plugin-api.js +1 -1
  9. package/dist/{channel.runtime-BvJm9z0w.js → channel.runtime-Bi4Dgy2P.js} +15 -16
  10. package/dist/{cli-CLWOkMvw.js → cli-CcPuMyCk.js} +15 -12
  11. package/dist/{cli-metadata-9Naf7in0.js → cli-metadata-DAhDhbYX.js} +1 -1
  12. package/dist/cli-metadata.js +1 -1
  13. package/dist/{client-BUai6s29.js → client-BwX6rURh.js} +2 -2
  14. package/dist/{client-CPuYbNL8.js → client-Dg8dk8NW.js} +2 -2
  15. package/dist/{client-bootstrap-CNVF73sF.js → client-bootstrap-ZAaO9fZ-.js} +1 -1
  16. package/dist/{config-schema-BTSatSY3.js → config-schema-CggnuwnJ.js} +4 -5
  17. package/dist/contract-api.js +2 -2
  18. package/dist/{create-client-85ttAWDP.js → create-client-Und1YmJ2.js} +4 -4
  19. package/dist/credentials-W2EmwRhu.js +65 -0
  20. package/dist/credentials-read-DVmFCm7X.js +77 -0
  21. package/dist/{credentials-write.runtime-BDtpqvj0.js → credentials-write.runtime-Be9zNSUw.js} +1 -1
  22. package/dist/{crypto-runtime-DoEB5RpM.js → crypto-runtime-_j7TpS7k.js} +3 -3
  23. package/dist/{directory-live-0TyS9xep.js → directory-live-B6fbX6jf.js} +3 -3
  24. package/dist/{doctor-BGTs609f.js → doctor-C0LPJGTz.js} +1 -1
  25. package/dist/doctor-contract-CWVdlRQR.js +183 -0
  26. package/dist/doctor-contract-api.js +220 -73
  27. package/dist/{draft-stream-GOdPZMBm.js → draft-stream-BfibauH1.js} +1 -1
  28. package/dist/{encryption-guidance-BFfgq7c7.js → encryption-guidance-CbEFe38F.js} +1 -1
  29. package/dist/{file-sync-store-CUE9WwD2.js → file-sync-store-DUEWCEjb.js} +21 -4
  30. package/dist/helper-api.js +2 -2
  31. package/dist/{http-client-Jw5_bwQo.js → http-client-DOyTG9l2.js} +2 -2
  32. package/dist/{idb-persistence-BiHEEzD7.js → idb-persistence-C6zQfW2w.js} +73 -64
  33. package/dist/index.js +1 -1
  34. package/dist/{media-text-DPCtdFjk.js → media-text-Cv1VIHXW.js} +1 -1
  35. package/dist/{messages-DCRbGLMh.js → messages-ClTgfFl6.js} +3 -3
  36. package/dist/{monitor-C5EOF9et.js → monitor-2BjKS9RV.js} +93 -92
  37. package/dist/plugin-entry.handlers.runtime.js +1 -1
  38. package/dist/probe.runtime-BWkgfbiE.js +3 -0
  39. package/dist/{profile-update-DompcDyu.js → profile-update-C2My3TML.js} +2 -2
  40. package/dist/{reaction-events-QUgxkQKQ.js → reaction-events-Cj6thhmc.js} +2 -2
  41. package/dist/record-shared-CWWx6fvI.js +2 -0
  42. package/dist/{recovery-key-store-B2RglalK.js → recovery-key-store-0O8ARdT_.js} +1 -1
  43. package/dist/{resolve-targets-Cx1VVArA.js → resolve-targets-Dn11HT76.js} +1 -1
  44. package/dist/{resolver.runtime-PPrv3ZHu.js → resolver.runtime-Zguh0hH9.js} +1 -1
  45. package/dist/runtime-api.js +3 -3
  46. package/dist/{sdk-1TXuSiXZ.js → sdk-DiRXiRRf.js} +5 -5
  47. package/dist/{secret-contract-OZoQf0kI.js → secret-contract-M3hRmGO-.js} +21 -5
  48. package/dist/secret-contract-api.js +1 -1
  49. package/dist/{send-yre1krm8.js → send-CZCmDQu8.js} +4 -3
  50. package/dist/session-binding-contract-api.js +1 -1
  51. package/dist/{setup-bootstrap-DXVRCd4G.js → setup-bootstrap-C9w01xQK.js} +2 -2
  52. package/dist/{setup-core-CYQRY2oG.js → setup-core-D6gyoyeg.js} +109 -21
  53. package/dist/setup-plugin-api.js +4 -3
  54. package/dist/{setup-surface-BjvRQzK6.js → setup-surface-DZIEWtQC.js} +8 -6
  55. package/dist/{shared-BfW4lxGu.js → shared-C7Vm9RxI.js} +6 -6
  56. package/dist/{startup-verification-DSiyDKM5.js → startup-verification-D1nscMh8.js} +2 -2
  57. package/dist/{storage-DD-EnNJE.js → storage-BrkTJZov.js} +11 -44
  58. package/dist/{thread-bindings-U5ZroBeZ.js → thread-bindings-BcYBELC7.js} +3 -3
  59. package/dist/{tool-actions.runtime-BlfTr9b0.js → tool-actions.runtime-Dbco_Vwn.js} +7 -7
  60. package/dist/{verification-CGnI9k1O.js → verification-DhMBWxOJ.js} +2 -2
  61. package/node_modules/music-metadata/lib/common/Util.d.ts +1 -1
  62. package/node_modules/music-metadata/lib/common/Util.js +7 -1
  63. package/node_modules/music-metadata/lib/id3v2/FrameHeader.js +23 -3
  64. package/node_modules/music-metadata/lib/id3v2/FrameParser.js +2 -2
  65. package/node_modules/music-metadata/lib/id3v2/ID3v2Token.js +1 -1
  66. package/node_modules/music-metadata/lib/mp4/AtomToken.js +38 -13
  67. package/node_modules/music-metadata/lib/mpeg/MpegParser.js +1 -1
  68. package/node_modules/music-metadata/package.json +6 -6
  69. package/node_modules/typebox/build/compile/validator.d.mts +1 -4
  70. package/node_modules/typebox/build/guard/guard.d.mts +1 -1
  71. package/node_modules/typebox/build/guard/guard.mjs +5 -2
  72. package/node_modules/typebox/build/guard/string.mjs +16 -4
  73. package/node_modules/typebox/build/schema/engine/_functions.mjs +34 -15
  74. package/node_modules/typebox/build/type/action/readonly_object.d.mts +5 -0
  75. package/node_modules/typebox/build/type/action/readonly_object.mjs +8 -0
  76. package/node_modules/typebox/build/typebox.d.mts +1 -1
  77. package/node_modules/typebox/build/typebox.mjs +1 -1
  78. package/node_modules/typebox/package.json +1 -1
  79. package/node_modules/typebox/readme.md +29 -32
  80. package/npm-shrinkwrap.json +11 -11
  81. package/openclaw.plugin.json +7 -20
  82. package/package.json +111 -28
  83. package/dist/async-lock-BcLS4KOc.js +0 -19
  84. package/dist/credentials-CncWUieb.js +0 -56
  85. package/dist/credentials-read-CwNJrmwu.js +0 -112
  86. package/dist/doctor-contract-D2qTLe-C.js +0 -312
  87. package/dist/probe.runtime-BBvciVfo.js +0 -3
  88. package/dist/record-shared-CvzjvHRn.js +0 -2
  89. package/dist/{deps-DDbghaZH.js → deps-CcVJfvRM.js} +1 -1
  90. package/dist/{storage-paths-B4_I9iqO.js → storage-paths-gUmSydsW.js} +1 -1
@@ -111,27 +111,24 @@ type User = Type.Static<typeof User> // type User = {
111
111
 
112
112
  ## Script
113
113
 
114
- [Documentation](https://sinclairzx81.github.io/typebox/#/docs/script/overview) | [Example 1](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgehrgFonmXW32POv3b7k0AdAGUAxlGBgYACjwC5eAJS9G3VWvXdqdOADkAhiFQBnMHpGpKIiADsj8ALJ6YACzgBeREWFiJ0gAaUcHCEaHAAaqgiMNAATO5wAN5wZABccNYAriDEqFAANHBIaZnZuXAAvoHBROGR0VAAzPEAogBuegA2GU6oADwRUbFwAGSJcABexVk5UBUAfFUh6AP1ACwt7V09-XXQTaNJAO5TpbPlC35KygAiqGjWACao1vD6hiZmFla28En2xq5yvF+KhvOJJFIknIBI4XBUCn4gosahFYKgyPEElUgpAjMAYMAbGkVtBVnlseloCBOsTdo1yUEghlWrTBlAYlVKkElnAAOKoHCoGBQJCYimtXIE8xGWlosgAbQAugzGcBHsBpScZkrOcjQrDcsBOmLGXADMRgM8YKy1iqgg9gBgMBkjKgbaS7XATJEMh09FB3VBVrruTV-kZXB4saaAOYCwzCop8+NCkWe6kwQ00uAG8SdXWXLT0ABKGReoHQxdQGA6dUJ1ko4ecAjA2DQsEtRgEccFiZbbclnYEEo70oE+NQIC7rYg7YJxhbEDxBJs-dng4XZEbALXc6HPYTIt3G67I6lC4nU+PHYX1ipnWv867W6bj-3Kb7M73C7PGovmavL8TwEZk303bcIzArsMyzDooIEB0nRdUEgJvZ8IObVCnwEGC8zgrCh3NS0Xngl8dwIhdcKNfCBzQgRvREX1-VIos4CEGAnA1OAAElrAwXJnnMShnWsKJ6zgKBnieKApHeZw0hBYQOKlXolggDAcwBOYFESKo5O7D8j1-aV5QABkVRdl3rAQtyCfSD1TJBh0HEzzIEO8oGpODbLgezDKc4zjDMizQJ8-SqIfRDnVdGy9J3CK4KIq1Yrs+Kejw+i0EYv0oFi8ogA) | [Example 2](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgehrgFonmXW32POv3b7k0AdACpejbuImTu1OnAByAQxCoAzmAUBjVJQB2S1eq1wAsgpgALOAG9KcOKjKRYcDRB0r4ANVQaY0AExwALyIRAIA8sQAVj4wABRWcGQAXKGCcgCuIMSoUHEAlAA0cEip-KgCmdm5BXAAvvm29o7Q8K7uXrHQAMzBaRUAogBuCgA2GWaoceUCAJI6MLkqsXEA2t6+AcUzkTG+CXAAXmVhVTl5+fX5ALr5jXYOTm1uHnAbflAALH0zw2MTi2mYXmiygy326y6UG62zCuxWiQA7id0llzrUGrdGnUZPQACKoNA6AAmqAW8n0ak02nar28sAcPzh0QRTUgKmAMGAblSpgsAne0E+hSaOmgIDGvLM5gFUJhTQyQyl-MFUH8lAalFp8AA4qgcKgYFAkEzBPD9jY7ENclytCoURUAIJQKAKJBxemLMhFJrAEnAO0OgTO13umZnGp3DWNbUmSZQYBjU0Vc3xS1wJTEYBkmDKmWq4VNYnADAYDLLPOyzZfEV2NQ+DKjBRQSsF6Nal7wYyqSwhHYsi1NADm+uURtKcD1BvHtbgEtBidGytyi-bogAShkFqB0OvUBhRrFuTpKN2VDKwNg0LBsyoBCPp8aBJeINeuaoBNab3aBJzUCA7xfN9b2fCAOS5NxnyvG0QLIU8eyg18YI-B8xyfIDkLvL9bQ-P8AMQ4CPzFKAJVGAjMIEOCzwvaCbxQ0dDXQ2j3ywmCfzwwDmJAxVyLou8qIQjC+IEecVzGXiWIEYtS3LCohMkgTzwkkDRITcT5JAzNswWZSP0UmikOE1TF10u96w0Rtm1MyjcTgABlGAzADOB5gwXIyS0Sgyx0XxjzgKAyVJPJlHPIMHKcjQAB5CDQCAMBMHsAD5LnTEKZVQxikE-NjVFWAAGa5QPA48bLsNL7wY8dsu-XKCoEYjSNKucEIyqrsIDWrCp4uCyoQ4zxOkstlia8r+rIrScxGvr4xM8zLKgGy6iAA) | [Challenge](test/typescript/readme.md)
115
-
116
- TypeBox includes a syntax engine that can transform TypeScript declarations into JSON Schema. The engine is a full syntactic frontend to Type.* and supports many advanced type-level constructs such as Conditional, Mapped, Indexed, Infer, Generics, Distributed types and more. This feature is implemented symmetrically at runtime and statically via TypeScript Template Literal types.
117
-
118
- Syntax highlighting is available via the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=sinclairzx81.typebox-script)
114
+ [Documentation](https://sinclairzx81.github.io/typebox/#/docs/script/overview) | [Example 1](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgehrgFkIATAVwBtVKBjCAOwDO8BgEMYACzgBeREQB0AZW5RgYGAAoABpThxCaOADVU3GNABM0uAG84ZAFxw+rEMVRQANHCSPnr93AAvjp6REYmZlAAzFa2Dk4ubp7evonuXgBeqf5QQSH66Mam0AAssXbZSV4+CTmZlelwAO4NucGaAJTUdHAAIqhofMyofMIsHFy8gvC2DKgCkoFWyGiKyqoaohJemrr5YcawqGSxIbqQAsAwwPyORZElHmdO0CAi7HcR0FFPurqsADdPsUoOYQsFdAU4ABxVA4VAwKBIU5-OAA9zXbjzT5HMgAbQAur8-sAhsAsQJWoTwfsDFt3MB3ii-iJXMARjBgQ9ibpmMAMBhWAJUFzSjy4AI0NwOCIoKKoCUaZCwnMFszdABzOEgBFIxyw+GIpDit4wBnvRz0lTvGmdbr0ABKrFGoHQDtQGE4phufEoqvEcjA2DQsHZAjkWsNSMDwYxYbk6NDFLkV1QIHDQYgIeu80DEEu134MazcdzZD98wDmez8cjOqNxZrucTmNzqfTjdL4b4r3endDZYrC37OfDdd1SBH8Zb5LbZo71a7ckBU8H-tX4dN5vYG7kfIFQtQu-L68XA83Ym3u9ZxHZo2PQ6rsfPci31p3Z9HcklJhlUAftD0AoMBiOScAAJJ8Bg7gjFilCCnw3r8HAUAjMMUDqDqCyOCsR7AaB3AADwFBAGCMJWAB8HQ2CEWEBuODYzhSeIAAwEnmBY+nI5a6HREbahOCZxsxbFyD2UBvDuPFwHxDHRkx8ysexK7SXxb6Mju+6CsK3G0ZWr6Xu+cg3neMC6bx+nqX2P7Suwsq6YEQA) | [Example 2](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgehrgFkIATAVwBtVKA7AQxFQBnMLwDG6BrxgALOAG9KcOKjKRYcURG6D4ANVSiY0AExwAvIiIA6APLEAVgZgAKOXDIAuS2isA5ViDEqFDOAJQANHBIXsg+-oHBYXAAvqGKyqrQ8Jraek7QAMzm3qi2Dk6u7jHW8UEhEVHVcQF1YZEAXk2ltYmhKWlKKmrZWjpw+obQACzFsaV2joaVniV+Lb2R0as99R1dawm7cADu+ztJqZTJ1HRwACKoaNzMqNzwTGyclDlj+rAqs2sCwqCiUkEEwBgwC0XkkMisEyMUCm4XS3GgIF47FhUmkCPyUAKqKUrAAbjj4YiTFc0j94ABxVA4VAwKBIQE+YFLUFwUnBKHiQT7ACCUCgvCQzj+MBUEXSwGewEFIrFEuccwOrVCaUudMYUmCwCxHPm5W56X4xGArxgFLxVORxLgzGAGAwrEEqDt+MmjvSwgMHF4UG9DqmNO+o3eQlkFg1XJcPIA5kyBKytozmemnZiZVAjdj9XmCxHaPQAEqsN6gdDl1AYTiGaHcSgMGNWMDYNCwa2CKwprNsjtd-m9qx8nuCqyQ1AgPudiDdqFCDsQCFQrTDxejldkVvthdLscDtNDw87vsTgUrmdzrdHlfoqCY9j3i9WPdtwR4889lcnlkzxHP9L1HKdb3nYDlz7Mk3xAj992-ODoKsXNDSxZCxxdN0PVKX8UM-A8oLHND8ww-Cx0ta03kw3dEJ-YiV1IgtaL7ANRCDKBWIQss4AAZRgKQlTgABJbgMGCV5xEod1uCbLQ4CgV4XhCARv32AShNEAAeQg0AgDBGBjAA+PoeTUvEAPTccwKEABtAAGABdVd12bBClAs-tU0ApAbMneznKsJ8Xw8uAvKsocryVQKXNgvdPPbZiMOw91PTCrzktfKibQypKDTI192M4hDkiAA) | [Challenge](test/typescript/readme.md)
119
115
 
116
+ TypeBox includes a runtime scripting engine that can transform TypeScript definitions into JSON Schema. The engine is implemented symmetrically at runtime and inside TypeScript's type system. It supports many programmable type-level constructs such as Conditional, Mapped, Indexed, Generic, Distributive Conditional, and more. The engine is designed for TypeScript 7 but is supported in TypeScript 5 and above.
120
117
 
121
118
  ### Example
122
119
 
123
- The following uses Script to parse TypeScript declarations into JSON Schema.
120
+ Syntax highlighting is available via the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=sinclairzx81.typebox-script)
124
121
 
125
122
  ```typescript
126
123
  // Module
127
124
  const Math = Type.Script(`
128
125
  type Vector2 = { x: number, y: number }
129
- type Vector3 = Evaluate<Vector2 & { z: number }>
130
- type Vector4 = Evaluate<Vector3 & { w: number }>
126
+ type Vector3 = { x: number, y: number, z: number }
127
+ type Vector4 = { x: number, y: number, z: number, w: number }
131
128
  `)
132
129
 
133
130
  // Dependent Module
134
- const { Mesh } = Type.Script({ ...Math }, `
131
+ const { Mesh } = Type.Script(Math, `
135
132
  type Vertex = {
136
133
  position: Vector4,
137
134
  normal: Vector3,
@@ -298,29 +295,29 @@ The following table shows compile performance for various JSON Schema structures
298
295
  ┌──────────────────────┬─────────────┬─────────────┐
299
296
  │ Compile │ TB1X │ AJV8 │
300
297
  ├──────────────────────┼─────────────┼─────────────┤
301
- │ Boolean │ 29.2K ops/s │ 7.1K ops/s │
302
- │ Number │ 34.5K ops/s │ 7.6K ops/s │
303
- │ String │ 48.9K ops/s │ 8.7K ops/s │
304
- │ Null │ 39.6K ops/s │ 7.6K ops/s │
305
- │ Literal_String │ 46.8K ops/s │ 6.8K ops/s │
306
- │ Literal_Number │ 48.3K ops/s │ 7.4K ops/s │
307
- │ Literal_Boolean │ 48.8K ops/s │ 7.3K ops/s │
308
- │ Pattern │ 32.5K ops/s │ 6.1K ops/s │
309
- │ Object_Open │ 6.6K ops/s │ 1.4K ops/s │
310
- │ Object_Close │ 7.6K ops/s │ 1K ops/s │
311
- │ Object_Vector3 │ 20.8K ops/s │ 2.8K ops/s │
312
- │ Object_Basis3 │ 7.5K ops/s │ 1K ops/s │
313
- │ Intersect_And │ 23K ops/s │ 3.9K ops/s │
314
- │ Intersect_Structural │ 8.7K ops/s │ 1.2K ops/s │
315
- │ Union_Or │ 17.9K ops/s │ 3.4K ops/s │
316
- │ Union_Structural │ 11.3K ops/s │ 2.1K ops/s │
317
- │ Tuple_Values │ 9.6K ops/s │ 2.1K ops/s │
318
- │ Tuple_Objects │ 2.1K ops/s │ 350 ops/s │
319
- │ Array_Numbers_4 │ 33.6K ops/s │ 4.2K ops/s │
320
- │ Array_Numbers_8 │ 39K ops/s │ 3.7K ops/s │
321
- │ Array_Numbers_16 │ 29.6K ops/s │ 3.8K ops/s │
322
- │ Array_Objects_Open │ 7.7K ops/s │ 833 ops/s │
323
- │ Array_Objects_Close │ 7.6K ops/s │ 860 ops/s │
298
+ │ Boolean │ 39.7K ops/s │ 6.8K ops/s │
299
+ │ Number │ 86.2K ops/s │ 7.5K ops/s │
300
+ │ String │ 82.6K ops/s │ 8.2K ops/s │
301
+ │ Null │ 62K ops/s │ 7.3K ops/s │
302
+ │ Literal_String │ 72.1K ops/s │ 5.7K ops/s │
303
+ │ Literal_Number │ 72.7K ops/s │ 6.9K ops/s │
304
+ │ Literal_Boolean │ 80.9K ops/s │ 7K ops/s │
305
+ │ Pattern │ 38.7K ops/s │ 5.7K ops/s │
306
+ │ Object_Open │ 16.3K ops/s │ 1.3K ops/s │
307
+ │ Object_Close │ 15.7K ops/s │ 952 ops/s │
308
+ │ Object_Vector3 │ 40.2K ops/s │ 3.2K ops/s │
309
+ │ Object_Basis3 │ 16.1K ops/s │ 834 ops/s │
310
+ │ Intersect_And │ 45.7K ops/s │ 3.5K ops/s │
311
+ │ Intersect_Structural │ 21K ops/s │ 1.6K ops/s │
312
+ │ Union_Or │ 45.1K ops/s │ 3.4K ops/s │
313
+ │ Union_Structural │ 27.6K ops/s │ 2K ops/s │
314
+ │ Tuple_Values │ 14.7K ops/s │ 2K ops/s │
315
+ │ Tuple_Objects │ 3.7K ops/s │ 380 ops/s │
316
+ │ Array_Numbers_4 │ 73.6K ops/s │ 4.3K ops/s │
317
+ │ Array_Numbers_8 │ 50.9K ops/s │ 3.8K ops/s │
318
+ │ Array_Numbers_16 │ 85K ops/s │ 3.9K ops/s │
319
+ │ Array_Objects_Open │ 18.9K ops/s │ 789 ops/s │
320
+ │ Array_Objects_Close │ 17.9K ops/s │ 909 ops/s │
324
321
  └──────────────────────┴─────────────┴─────────────┘
325
322
  ```
326
323
 
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@openclaw/matrix",
3
- "version": "2026.7.2-beta.2",
3
+ "version": "2026.7.2-beta.4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/matrix",
9
- "version": "2026.7.2-beta.2",
9
+ "version": "2026.7.2-beta.4",
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",
13
13
  "fake-indexeddb": "6.2.5",
14
14
  "markdown-it": "14.3.0",
15
15
  "matrix-js-sdk": "41.9.0-rc.0",
16
- "music-metadata": "11.13.0",
17
- "typebox": "1.3.3",
16
+ "music-metadata": "11.14.0",
17
+ "typebox": "1.3.6",
18
18
  "zod": "4.4.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "openclaw": ">=2026.7.2-beta.2"
21
+ "openclaw": ">=2026.7.2-beta.4"
22
22
  },
23
23
  "peerDependenciesMeta": {
24
24
  "openclaw": {
@@ -387,9 +387,9 @@
387
387
  "license": "MIT"
388
388
  },
389
389
  "node_modules/music-metadata": {
390
- "version": "11.13.0",
391
- "resolved": "https://registry.npmjs.org/music-metadata/-/music-metadata-11.13.0.tgz",
392
- "integrity": "sha512-uXRaov9dfjSpQufXIU7sMxVZnh+FilCQv2mXn+K5EJ/decP3dTWrgvPYa5r6MtRbieNSCE708Da4J0u1UGfQIw==",
390
+ "version": "11.14.0",
391
+ "resolved": "https://registry.npmjs.org/music-metadata/-/music-metadata-11.14.0.tgz",
392
+ "integrity": "sha512-RyOSq98kuVfXB1emJ+NjBF0av8Ph3oBuqNy+Z5sFFfLhjYrkBQEB53V8u+U0RNTVwNo20WoPUwNkfKwZfrOqmQ==",
393
393
  "funding": [
394
394
  {
395
395
  "type": "github",
@@ -509,9 +509,9 @@
509
509
  }
510
510
  },
511
511
  "node_modules/typebox": {
512
- "version": "1.3.3",
513
- "resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.3.tgz",
514
- "integrity": "sha512-URXGUE31PJDQC+PtRMJeLdF4kmmOdFoVPikPCtV2oOIhUpNpppEdIz7W8bH8cFYPYHdDpaRvqwdegMTmHliudg==",
512
+ "version": "1.3.6",
513
+ "resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.6.tgz",
514
+ "integrity": "sha512-Sc8RA0NCMEFmApHNU9ZMzqcpQj46She44J8ffpLM/bdhLNUZKq7DJumcLcsFx1gRmDfQPgCgOmFFJ7rcnfWNyA==",
515
515
  "license": "MIT"
516
516
  },
517
517
  "node_modules/uc.micro": {
@@ -17,20 +17,6 @@
17
17
  "channels": [
18
18
  "matrix"
19
19
  ],
20
- "channelEnvVars": {
21
- "matrix": [
22
- "MATRIX_HOMESERVER",
23
- "MATRIX_USER_ID",
24
- "MATRIX_ACCESS_TOKEN",
25
- "MATRIX_PASSWORD",
26
- "MATRIX_DEVICE_ID",
27
- "MATRIX_DEVICE_NAME",
28
- "MATRIX_OPS_HOMESERVER",
29
- "MATRIX_OPS_ACCESS_TOKEN",
30
- "MATRIX_OPS_DEVICE_ID",
31
- "MATRIX_OPS_DEVICE_NAME"
32
- ]
33
- },
34
20
  "configSchema": {
35
21
  "type": "object",
36
22
  "additionalProperties": false,
@@ -430,6 +416,13 @@
430
416
  },
431
417
  "toolProgress": {
432
418
  "type": "boolean"
419
+ },
420
+ "commandText": {
421
+ "type": "string",
422
+ "enum": [
423
+ "raw",
424
+ "status"
425
+ ]
433
426
  }
434
427
  },
435
428
  "additionalProperties": false
@@ -513,12 +506,6 @@
513
506
  "isolated",
514
507
  "fork"
515
508
  ]
516
- },
517
- "spawnSubagentSessions": {
518
- "type": "boolean"
519
- },
520
- "spawnAcpSessions": {
521
- "type": "boolean"
522
509
  }
523
510
  },
524
511
  "additionalProperties": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/matrix",
3
- "version": "2026.7.2-beta.2",
3
+ "version": "2026.7.2-beta.4",
4
4
  "description": "OpenClaw Matrix channel plugin for rooms and direct messages.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,12 +13,12 @@
13
13
  "fake-indexeddb": "6.2.5",
14
14
  "markdown-it": "14.3.0",
15
15
  "matrix-js-sdk": "41.9.0-rc.0",
16
- "music-metadata": "11.13.0",
17
- "typebox": "1.3.3",
16
+ "music-metadata": "11.14.0",
17
+ "typebox": "1.3.6",
18
18
  "zod": "4.4.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "openclaw": ">=2026.7.2-beta.2"
21
+ "openclaw": ">=2026.7.2-beta.4"
22
22
  },
23
23
  "peerDependenciesMeta": {
24
24
  "openclaw": {
@@ -35,6 +35,25 @@
35
35
  },
36
36
  "channel": {
37
37
  "id": "matrix",
38
+ "configuredState": {
39
+ "env": {
40
+ "anyOf": [
41
+ "MATRIX_HOMESERVER",
42
+ "MATRIX_USER_ID",
43
+ "MATRIX_ACCESS_TOKEN",
44
+ "MATRIX_PASSWORD",
45
+ "MATRIX_DEVICE_ID",
46
+ "MATRIX_DEVICE_NAME",
47
+ "MATRIX_OPS_HOMESERVER",
48
+ "MATRIX_OPS_ACCESS_TOKEN",
49
+ "MATRIX_OPS_DEVICE_ID",
50
+ "MATRIX_OPS_DEVICE_NAME"
51
+ ]
52
+ }
53
+ },
54
+ "approvalFlags": [
55
+ "native"
56
+ ],
38
57
  "label": "Matrix",
39
58
  "selectionLabel": "Matrix (plugin)",
40
59
  "docsPath": "/channels/matrix",
@@ -49,28 +68,92 @@
49
68
  "groupAllowFromFallbackToAllowFrom": false,
50
69
  "warnOnEmptyGroupSenderAllowlist": true
51
70
  },
52
- "cliAddOptions": [
53
- {
54
- "flags": "--homeserver <url>",
55
- "description": "Matrix homeserver URL"
56
- },
57
- {
58
- "flags": "--user-id <id>",
59
- "description": "Matrix user ID"
60
- },
61
- {
62
- "flags": "--access-token <token>",
63
- "description": "Matrix access token"
64
- },
65
- {
66
- "flags": "--device-name <name>",
67
- "description": "Matrix device name"
68
- },
69
- {
70
- "flags": "--initial-sync-limit <n>",
71
- "description": "Matrix initial sync limit"
72
- }
73
- ],
71
+ "setup": {
72
+ "fields": [
73
+ {
74
+ "key": "homeserver",
75
+ "kind": "string",
76
+ "cli": {
77
+ "flags": "--homeserver <url>",
78
+ "description": "Matrix homeserver URL"
79
+ }
80
+ },
81
+ {
82
+ "key": "userId",
83
+ "kind": "string",
84
+ "cli": {
85
+ "flags": "--user-id <id>",
86
+ "description": "Matrix user id"
87
+ }
88
+ },
89
+ {
90
+ "key": "accessToken",
91
+ "kind": "string",
92
+ "sensitive": true,
93
+ "cli": {
94
+ "flags": "--access-token <token>",
95
+ "description": "Matrix access token"
96
+ }
97
+ },
98
+ {
99
+ "key": "password",
100
+ "kind": "string",
101
+ "sensitive": true,
102
+ "cli": {
103
+ "flags": "--password <password>",
104
+ "description": "Matrix password"
105
+ }
106
+ },
107
+ {
108
+ "key": "deviceName",
109
+ "kind": "string",
110
+ "cli": {
111
+ "flags": "--device-name <name>",
112
+ "description": "Matrix device name"
113
+ }
114
+ },
115
+ {
116
+ "key": "avatarUrl",
117
+ "kind": "string",
118
+ "cli": {
119
+ "flags": "--avatar-url <url>",
120
+ "description": "Matrix avatar URL"
121
+ }
122
+ },
123
+ {
124
+ "key": "initialSyncLimit",
125
+ "kind": "integer",
126
+ "cli": {
127
+ "flags": "--initial-sync-limit <n>",
128
+ "description": "Matrix initial sync room limit"
129
+ }
130
+ },
131
+ {
132
+ "key": "proxy",
133
+ "kind": "string",
134
+ "cli": {
135
+ "flags": "--proxy <url>",
136
+ "description": "Matrix proxy URL"
137
+ }
138
+ },
139
+ {
140
+ "key": "dangerouslyAllowPrivateNetwork",
141
+ "kind": "boolean",
142
+ "cli": {
143
+ "flags": "--dangerously-allow-private-network",
144
+ "description": "Allow private-network Matrix homeservers"
145
+ }
146
+ },
147
+ {
148
+ "key": "useEnv",
149
+ "kind": "boolean",
150
+ "cli": {
151
+ "flags": "--use-env",
152
+ "description": "Use Matrix environment credentials"
153
+ }
154
+ }
155
+ ]
156
+ },
74
157
  "persistedAuthState": {
75
158
  "specifier": "./auth-presence",
76
159
  "exportName": "hasAnyMatrixAuth"
@@ -84,10 +167,10 @@
84
167
  "allowInvalidConfigRecovery": true
85
168
  },
86
169
  "compat": {
87
- "pluginApi": ">=2026.7.2-beta.2"
170
+ "pluginApi": ">=2026.7.2-beta.4"
88
171
  },
89
172
  "build": {
90
- "openclawVersion": "2026.7.2-beta.2"
173
+ "openclawVersion": "2026.7.2-beta.4"
91
174
  },
92
175
  "release": {
93
176
  "publishToClawHub": true,
@@ -1,19 +0,0 @@
1
- //#region extensions/matrix/src/matrix/async-lock.ts
2
- function createAsyncLock() {
3
- let lock = Promise.resolve();
4
- return async function withLock(fn) {
5
- const previous = lock;
6
- let release;
7
- lock = new Promise((resolve) => {
8
- release = resolve;
9
- });
10
- await previous;
11
- try {
12
- return await fn();
13
- } finally {
14
- release?.();
15
- }
16
- };
17
- }
18
- //#endregion
19
- export { createAsyncLock as t };
@@ -1,56 +0,0 @@
1
- import { a as resolveMatrixCredentialsDir, i as loadMatrixCredentials, n as credentialsMatchConfig, o as resolveMatrixCredentialsPath, t as clearMatrixCredentials } from "./credentials-read-CwNJrmwu.js";
2
- import { t as createAsyncLock } from "./async-lock-BcLS4KOc.js";
3
- import { writeJsonFileAtomically } from "openclaw/plugin-sdk/json-store";
4
- //#region extensions/matrix/src/matrix/credentials.ts
5
- const credentialWriteLocks = /* @__PURE__ */ new Map();
6
- function withCredentialWriteLock(credPath, fn) {
7
- let withLock = credentialWriteLocks.get(credPath);
8
- if (!withLock) {
9
- withLock = createAsyncLock();
10
- credentialWriteLocks.set(credPath, withLock);
11
- }
12
- return withLock(fn);
13
- }
14
- async function writeMatrixCredentialsUnlocked(params) {
15
- const now = (/* @__PURE__ */ new Date()).toISOString();
16
- const toSave = {
17
- ...params.credentials,
18
- createdAt: params.existing?.createdAt ?? now,
19
- lastUsedAt: now
20
- };
21
- await writeJsonFileAtomically(params.credPath, toSave);
22
- }
23
- async function saveMatrixCredentials(credentials, env = process.env, accountId) {
24
- const credPath = resolveMatrixCredentialsPath(env, accountId);
25
- await withCredentialWriteLock(credPath, async () => {
26
- await writeMatrixCredentialsUnlocked({
27
- credPath,
28
- credentials,
29
- existing: loadMatrixCredentials(env, accountId)
30
- });
31
- });
32
- }
33
- async function saveBackfilledMatrixDeviceId(credentials, env = process.env, accountId) {
34
- const credPath = resolveMatrixCredentialsPath(env, accountId);
35
- return await withCredentialWriteLock(credPath, async () => {
36
- const existing = loadMatrixCredentials(env, accountId);
37
- if (existing && (existing.homeserver !== credentials.homeserver || existing.userId !== credentials.userId || existing.accessToken !== credentials.accessToken)) return "skipped";
38
- await writeMatrixCredentialsUnlocked({
39
- credPath,
40
- credentials,
41
- existing
42
- });
43
- return "saved";
44
- });
45
- }
46
- async function touchMatrixCredentials(env = process.env, accountId) {
47
- const credPath = resolveMatrixCredentialsPath(env, accountId);
48
- await withCredentialWriteLock(credPath, async () => {
49
- const existing = loadMatrixCredentials(env, accountId);
50
- if (!existing) return;
51
- existing.lastUsedAt = (/* @__PURE__ */ new Date()).toISOString();
52
- await writeJsonFileAtomically(credPath, existing);
53
- });
54
- }
55
- //#endregion
56
- export { clearMatrixCredentials, credentialsMatchConfig, loadMatrixCredentials, resolveMatrixCredentialsDir, resolveMatrixCredentialsPath, saveBackfilledMatrixDeviceId, saveMatrixCredentials, touchMatrixCredentials };
@@ -1,112 +0,0 @@
1
- import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { a as resolveMatrixDefaultOrOnlyAccountId, n as requiresExplicitMatrixDefaultAccount } from "./account-selection-Bz00QTmQ.js";
3
- import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
4
- import { a as resolveMatrixCredentialsPath$1, r as resolveMatrixCredentialsDir$1 } from "./storage-paths-B4_I9iqO.js";
5
- import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
6
- import fs from "node:fs";
7
- import os from "node:os";
8
- import path from "node:path";
9
- //#region extensions/matrix/src/matrix/credentials-read.ts
10
- var credentials_read_exports = /* @__PURE__ */ __exportAll({
11
- clearMatrixCredentials: () => clearMatrixCredentials,
12
- credentialsMatchConfig: () => credentialsMatchConfig,
13
- loadMatrixCredentials: () => loadMatrixCredentials,
14
- resolveMatrixCredentialsDir: () => resolveMatrixCredentialsDir,
15
- resolveMatrixCredentialsPath: () => resolveMatrixCredentialsPath
16
- });
17
- function resolveStateDir(env) {
18
- try {
19
- return getMatrixRuntime().state.resolveStateDir(env, os.homedir);
20
- } catch {
21
- const override = env.OPENCLAW_STATE_DIR?.trim();
22
- if (override) return path.resolve(override);
23
- const homeDir = env.OPENCLAW_HOME?.trim() || env.HOME?.trim() || os.homedir();
24
- return path.join(homeDir, ".openclaw");
25
- }
26
- }
27
- function resolveLegacyMatrixCredentialsPath(env) {
28
- return path.join(resolveMatrixCredentialsDir(env), "credentials.json");
29
- }
30
- function shouldReadLegacyCredentialsForAccount(accountId) {
31
- const normalizedAccountId = normalizeAccountId(accountId);
32
- const cfg = getMatrixRuntime().config.current();
33
- if (!cfg.channels?.matrix || typeof cfg.channels.matrix !== "object") return normalizedAccountId === DEFAULT_ACCOUNT_ID;
34
- if (requiresExplicitMatrixDefaultAccount(cfg)) return false;
35
- return normalizeAccountId(resolveMatrixDefaultOrOnlyAccountId(cfg)) === normalizedAccountId;
36
- }
37
- function resolveLegacyMigrationSourcePath(env, accountId) {
38
- if (!shouldReadLegacyCredentialsForAccount(accountId)) return null;
39
- const legacyPath = resolveLegacyMatrixCredentialsPath(env);
40
- return legacyPath === resolveMatrixCredentialsPath(env, accountId) ? null : legacyPath;
41
- }
42
- function parseMatrixCredentialsFile(filePath) {
43
- const raw = fs.readFileSync(filePath, "utf-8");
44
- const parsed = JSON.parse(raw);
45
- if (typeof parsed.homeserver !== "string" || typeof parsed.userId !== "string" || typeof parsed.accessToken !== "string") return null;
46
- return parsed;
47
- }
48
- function loadMatrixCredentialsFile(filePath, source) {
49
- try {
50
- return {
51
- kind: "loaded",
52
- source,
53
- credentials: parseMatrixCredentialsFile(filePath)
54
- };
55
- } catch (error) {
56
- if (error?.code === "ENOENT") return { kind: "missing" };
57
- throw error;
58
- }
59
- }
60
- function loadLegacyMatrixCredentialsWithCurrentFallback(params) {
61
- const legacy = loadMatrixCredentialsFile(params.legacyPath, "legacy");
62
- if (legacy.kind === "loaded") return legacy;
63
- return loadMatrixCredentialsFile(params.currentPath, "current");
64
- }
65
- function resolveMatrixCredentialsDir(env = process.env, stateDir) {
66
- return resolveMatrixCredentialsDir$1(stateDir ?? resolveStateDir(env));
67
- }
68
- function resolveMatrixCredentialsPath(env = process.env, accountId) {
69
- return resolveMatrixCredentialsPath$1({
70
- stateDir: resolveStateDir(env),
71
- accountId
72
- });
73
- }
74
- function loadMatrixCredentials(env = process.env, accountId) {
75
- const currentPath = resolveMatrixCredentialsPath(env, accountId);
76
- try {
77
- const current = loadMatrixCredentialsFile(currentPath, "current");
78
- if (current.kind === "loaded") return current.credentials;
79
- const legacyPath = resolveLegacyMigrationSourcePath(env, accountId);
80
- if (!legacyPath) return null;
81
- const loaded = loadLegacyMatrixCredentialsWithCurrentFallback({
82
- legacyPath,
83
- currentPath
84
- });
85
- if (loaded.kind !== "loaded" || !loaded.credentials) return null;
86
- if (loaded.source === "legacy") try {
87
- fs.mkdirSync(path.dirname(currentPath), { recursive: true });
88
- fs.renameSync(legacyPath, currentPath);
89
- } catch {}
90
- return loaded.credentials;
91
- } catch {
92
- return null;
93
- }
94
- }
95
- function clearMatrixCredentials(env = process.env, accountId) {
96
- const paths = [resolveMatrixCredentialsPath(env, accountId), resolveLegacyMigrationSourcePath(env, accountId)];
97
- for (const filePath of paths) {
98
- if (!filePath) continue;
99
- try {
100
- fs.unlinkSync(filePath);
101
- } catch {}
102
- }
103
- }
104
- function credentialsMatchConfig(stored, config) {
105
- if (!config.userId) {
106
- if (!config.accessToken) return false;
107
- return stored.homeserver === config.homeserver && stored.accessToken === config.accessToken;
108
- }
109
- return stored.homeserver === config.homeserver && stored.userId === config.userId;
110
- }
111
- //#endregion
112
- export { resolveMatrixCredentialsDir as a, loadMatrixCredentials as i, credentialsMatchConfig as n, resolveMatrixCredentialsPath as o, credentials_read_exports as r, clearMatrixCredentials as t };