@openclaw/matrix 2026.11.7 → 2026.11.10-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.
- package/dist/.setup/{account-config-CRsKoMqJ.mjs → account-config-CVM2a28p.mjs} +1 -2
- package/dist/.setup/{account-selection-UUPhMBmu.mjs → account-selection-Cow3TMFO.mjs} +5 -8
- package/dist/.setup/{approval-handler.runtime-LBvkygUK.mjs → approval-handler.runtime-KhjfA3Qm.mjs} +8 -9
- package/dist/.setup/{approval-reactions-BazmsDbe.mjs → approval-reactions-Bz_8XB01.mjs} +2 -3
- package/dist/.setup/{backup-health-Dm_YMVFT.mjs → backup-health-BxH69np2.mjs} +1 -2
- package/dist/.setup/{channel-CHryi9FS.mjs → channel-DkjJIQBk.mjs} +30 -40
- package/dist/.setup/{channel.runtime-DluXWaGb.mjs → channel.runtime-DOjRmnx0.mjs} +10 -12
- package/dist/.setup/{channel.setup-BDbs0FLq.mjs → channel.setup-tIeMccfh.mjs} +9 -7
- package/dist/.setup/{cli-C7Jmy2x4.mjs → cli-CChA7Tf5.mjs} +23 -31
- package/dist/.setup/{cli-doctor-BVstkgJE.mjs → cli-doctor-CoRX0erj.mjs} +3 -4
- package/dist/.setup/{cli-metadata-B0GHIn05.mjs → cli-metadata-FwlOHfdX.mjs} +3 -5
- package/dist/.setup/{client-Bk_tBqNp.mjs → client-BVgnwwz0.mjs} +21 -26
- package/dist/.setup/{client-mFRVrUt3.mjs → client-BgOKS4W7.mjs} +4 -5
- package/dist/.setup/{client-bootstrap-Bhhri97J.mjs → client-bootstrap-CHs5OQ1Z.mjs} +2 -3
- package/dist/.setup/{client-support-B_Mp4Qk9.mjs → client-support-CqXAOZp3.mjs} +2 -3
- package/dist/.setup/{config-paths-CnREYb1Y.mjs → config-paths-DBpHxDyc.mjs} +1 -2
- package/dist/.setup/{create-client-CzUtZgYF.mjs → create-client-mnjEWdZV.mjs} +8 -9
- package/dist/.setup/{credentials-kT20jk_u.mjs → credentials-CGgWuhFV.mjs} +5 -6
- package/dist/.setup/{credentials-read-CM6wXUjL.mjs → credentials-read-rPqEpuxv.mjs} +5 -6
- package/dist/.setup/{credentials-state-B3cuUFwZ.mjs → credentials-state-jxq29yQw.mjs} +1 -2
- package/dist/.setup/{crypto-node.runtime-6Aj_ltHQ.mjs → crypto-node.runtime-E_hqXGxm.mjs} +1 -2
- package/dist/.setup/{crypto-runtime-BI9Pc344.mjs → crypto-runtime-tZ95jwNO.mjs} +10 -15
- package/dist/.setup/{crypto-state-store-BZLlwkv_.mjs → crypto-state-store-CzAmeC_Z.mjs} +4 -4
- package/dist/.setup/{crypto-store-ownership-CiQ1l_O7.mjs → crypto-store-ownership-DPO9WcVz.mjs} +3 -4
- package/dist/.setup/{crypto-unsafe-state-doctor-CmF1X1dZ.mjs → crypto-unsafe-state-doctor-D3WLE-t4.mjs} +6 -7
- package/dist/.setup/{deps-D-W_QQjz.mjs → deps-CVPT2Ros.mjs} +1 -2
- package/dist/.setup/{device-health-Ck2YpEVN.mjs → device-health-D7n-lPeb.mjs} +2 -3
- package/dist/.setup/{direct-management-Dp1giZ34.mjs → direct-management-D59C1WO-.mjs} +7 -11
- package/dist/.setup/{directory-live-DmkH9hcp.mjs → directory-live-CQNKUJJx.mjs} +5 -6
- package/dist/.setup/{doctor-contract-BANpMUbP.mjs → doctor-contract-GiXgCj7k.mjs} +2 -3
- package/dist/.setup/{draft-stream-bVedfEB3.mjs → draft-stream-B1hQ9Mgx.mjs} +3 -4
- package/dist/.setup/{encryption-guidance-Br3Lv9Hm.mjs → encryption-guidance-DfbEaKct.mjs} +3 -4
- package/dist/.setup/{env-vars-aEBngJPa.mjs → env-vars-Bh1iOXJ1.mjs} +1 -2
- package/dist/.setup/{errors-Bw4EHwKX.mjs → errors-CL3YJV8U.mjs} +1 -2
- package/dist/.setup/{event-helpers-CxNgMQqH.mjs → event-helpers-DDUjVVf7.mjs} +1 -2
- package/dist/.setup/{exec-approvals-BeYF9-3o.mjs → exec-approvals-C692_FeS.mjs} +6 -9
- package/dist/.setup/{file-sync-store-BpS12yaK.mjs → file-sync-store-CAhnwOPA.mjs} +6 -36
- package/dist/.setup/{http-client-B_ohXrBm.mjs → http-client-CqnKFKUH.mjs} +5 -8
- package/dist/.setup/{idb-persistence-BTOsltD9.mjs → idb-persistence-DeGUs--C.mjs} +6 -7
- package/dist/.setup/{idb-persistence-lock-Bh3ZLIsE.mjs → idb-persistence-lock-CH2K6d_3.mjs} +1 -2
- package/dist/.setup/{joined-room-encryption-C0gHa2DG.mjs → joined-room-encryption-9sJK1kM-.mjs} +2 -3
- package/dist/.setup/{logger-CuAzdD8Q.mjs → logger-B9TwnY6C.mjs} +2 -3
- package/dist/.setup/{logging-CoaEyRtA.mjs → logging-Bnsn7s4r.mjs} +3 -4
- package/dist/.setup/{messages-BqVczVlt.mjs → messages-DSS3EtqP.mjs} +9 -14
- package/dist/.setup/{monitor-BsSo3tCv.mjs → monitor-Ci1BOpAp.mjs} +94 -136
- package/dist/.setup/{onboarding-CoMpgTiK.mjs → onboarding-DA5lN0I1.mjs} +10 -11
- package/dist/.setup/{outbound-ntm0KOfK.mjs → outbound-CFFxi_uJ.mjs} +5 -6
- package/dist/.setup/{profile-update-gC436enW.mjs → profile-update-DP-a-BxL.mjs} +7 -9
- package/dist/.setup/{reaction-events-DTThoaJQ.mjs → reaction-events-B8JhmXYM.mjs} +8 -9
- package/dist/.setup/{resolve-targets-CWW9zTYp.mjs → resolve-targets-B3NLls5a.mjs} +4 -5
- package/dist/.setup/{retired-state-JGUEBE72.mjs → retired-state-BsxdpJNk.mjs} +3 -41
- package/dist/.setup/{room-info-CM3MKoh4.mjs → room-info-gld8p2j7.mjs} +6 -8
- package/dist/.setup/{runtime-1kn1P6io.mjs → runtime-Ck8TjD7L.mjs} +1 -2
- package/dist/.setup/{runtime-doctor-migrations-hxP-CXX7.mjs → runtime-doctor-migrations-CSvRANPN.mjs} +5 -10
- package/dist/.setup/{runtime-setter-api-i2MOXoT3.mjs → runtime-setter-api-CpwhcBQK.mjs} +1 -1
- package/dist/.setup/{sdk-ByFgA6Il.mjs → sdk-Bzp2OIxv.mjs} +33 -48
- package/dist/.setup/{secret-contract-DxyzKSzf.mjs → secret-contract-AKnr45nw.mjs} +2 -3
- package/dist/.setup/{secret-contract-api-Dukgvike.mjs → secret-contract-api-DMSwMIxd.mjs} +1 -1
- package/dist/.setup/{send-DFB7JGg2.mjs → send-COg4UAcR.mjs} +58 -44
- package/dist/.setup/{send-currentness-DGxiiBn9.mjs → send-currentness-D1x6YP9O.mjs} +2 -4
- package/dist/.setup/{setup-bootstrap-razh2kSp.mjs → setup-bootstrap-DCCxNvFW.mjs} +4 -5
- package/dist/.setup/{setup-core-BVbxltMM.mjs → setup-core-BRD4PRVa.mjs} +13 -20
- package/dist/.setup/setup-plugin-api-YtkxNQTz.mjs +2 -0
- package/dist/.setup/sqlite-state-D6Zpz1q1.mjs +36 -0
- package/dist/.setup/{startup-verification-UkaoSldm.mjs → startup-verification-DfOuAruK.mjs} +5 -5
- package/dist/.setup/{state-layout-walk-BQMgMykU.mjs → state-layout-walk-BqCZTHpp.mjs} +2 -3
- package/dist/.setup/{storage-C3N6YZIn.mjs → storage-CCarF_gm.mjs} +9 -10
- package/dist/.setup/{storage-paths-B51JM-pC.mjs → storage-paths-e_Vq6cvw.mjs} +1 -2
- package/dist/.setup/{subagent-hooks-CfGAysJi.mjs → subagent-hooks-BdbuojSv.mjs} +2 -3
- package/dist/.setup/{sync-cache-state-BKVaKRzQ.mjs → sync-cache-state-BMvqW4Ii.mjs} +5 -5
- package/dist/.setup/{sync-state-CWbp0QSY.mjs → sync-state-Cu1nagBV.mjs} +1 -2
- package/dist/.setup/{target-ids-HhcaKX1n.mjs → target-ids-DltG_ZHJ.mjs} +1 -2
- package/dist/.setup/{task-runner-DY3aKiQa.mjs → task-runner-CYyGHdNW.mjs} +1 -2
- package/dist/.setup/{thread-binding-api-BvuaKpd0.mjs → thread-binding-api-OtSciHmZ.mjs} +2 -3
- package/dist/.setup/{thread-bindings-D5VJEDZV.mjs → thread-bindings-DrYooQd3.mjs} +54 -23
- package/dist/.setup/{thread-bindings-shared-QmZOfX9Q.mjs → thread-bindings-shared-DEAGGuDA.mjs} +6 -3
- package/dist/.setup/{tool-actions-DexlmVDf.mjs → tool-actions-4dKbrHJ5.mjs} +25 -25
- package/dist/.setup/{url-validation-By_2hsXr.mjs → url-validation-DesoKUns.mjs} +1 -2
- package/dist/.setup/{verification-B122bsH2.mjs → verification-DIxfxgMv.mjs} +4 -5
- package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
- package/dist/api.js +8 -8
- package/dist/auth-presence.js +2 -3
- package/dist/channel-plugin-api.js +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/contract-api.js +2 -2
- package/dist/doctor-contract-api.js +15 -17
- package/dist/helper-api.js +3 -3
- package/dist/index.js +3 -4
- package/dist/plugin-entry.handlers.runtime.js +3 -4
- package/dist/runtime-api.js +7 -8
- package/dist/runtime-setter-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +2 -2
- package/dist/setup-entry.js +4 -5
- package/dist/setup-plugin-api.js +1 -1
- package/dist/subagent-hooks-api.js +2 -3
- package/dist/thread-binding-api.js +1 -1
- package/dist/thread-bindings-runtime.js +1 -1
- package/node_modules/@tokenizer/inflate/README.md +57 -17
- package/node_modules/@tokenizer/inflate/lib/ZipHandler.d.ts +12 -1
- package/node_modules/@tokenizer/inflate/lib/ZipHandler.js +127 -57
- package/node_modules/@tokenizer/inflate/lib/ZipLimitError.d.ts +18 -4
- package/node_modules/@tokenizer/inflate/lib/ZipLimitError.js +1 -1
- package/node_modules/@tokenizer/inflate/lib/index.d.ts +1 -1
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/LICENSE.txt +21 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/README.md +736 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/AbortSignal.d.ts +2 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/AbortSignal.js +7 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/AbstractTokenizer.d.ts +117 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/AbstractTokenizer.js +204 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BlobTokenizer.d.ts +29 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BlobTokenizer.js +57 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BufferSizeError.d.ts +19 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BufferSizeError.js +27 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BufferTokenizer.d.ts +29 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BufferTokenizer.js +51 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/FileTokenizer.d.ts +47 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/FileTokenizer.js +83 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/NotRegularFileError.d.ts +5 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/NotRegularFileError.js +8 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/ReadStreamTokenizer.d.ts +34 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/ReadStreamTokenizer.js +140 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/TokenizerBoundaryError.d.ts +7 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/TokenizerBoundaryError.js +10 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/TokenizerView.d.ts +9 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/TokenizerView.js +184 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/core.d.ts +44 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/core.js +56 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/index.d.ts +17 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/index.js +46 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/isRandomAccessTokenizer.d.ts +6 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/isRandomAccessTokenizer.js +10 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/AbstractStreamReader.d.ts +54 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/AbstractStreamReader.js +73 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/Deferred.d.ts +6 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/Deferred.js +10 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/Errors.d.ts +10 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/Errors.js +16 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/StreamReader.d.ts +34 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/StreamReader.js +125 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamByobReader.d.ts +14 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamByobReader.js +29 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +19 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +67 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +24 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamReader.js +13 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamReaderFactory.d.ts +5 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +19 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/index.d.ts +6 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/index.js +5 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/types.d.ts +163 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/types.js +1 -0
- package/node_modules/@tokenizer/inflate/node_modules/strtok3/package.json +97 -0
- package/node_modules/@tokenizer/inflate/package.json +5 -5
- package/node_modules/fake-indexeddb/README.md +7 -7
- package/node_modules/fake-indexeddb/build/cjs/lib/Index.js +47 -22
- package/node_modules/fake-indexeddb/build/cjs/lib/ObjectStore.js +4 -2
- package/node_modules/fake-indexeddb/build/cjs/lib/RecordStore.js +14 -9
- package/node_modules/fake-indexeddb/build/esm/lib/Index.js +47 -22
- package/node_modules/fake-indexeddb/build/esm/lib/ObjectStore.js +4 -2
- package/node_modules/fake-indexeddb/build/esm/lib/RecordStore.js +14 -9
- package/node_modules/fake-indexeddb/package.json +1 -1
- package/node_modules/file-type/node_modules/strtok3/README.md +154 -9
- package/node_modules/file-type/node_modules/strtok3/lib/AbstractTokenizer.d.ts +3 -0
- package/node_modules/file-type/node_modules/strtok3/lib/AbstractTokenizer.js +12 -4
- package/node_modules/file-type/node_modules/strtok3/lib/BlobTokenizer.js +1 -0
- package/node_modules/file-type/node_modules/strtok3/lib/BufferTokenizer.js +2 -1
- package/node_modules/file-type/node_modules/strtok3/lib/FileTokenizer.d.ts +1 -1
- package/node_modules/file-type/node_modules/strtok3/lib/FileTokenizer.js +3 -3
- package/node_modules/file-type/node_modules/strtok3/lib/ReadStreamTokenizer.js +17 -2
- package/node_modules/file-type/node_modules/strtok3/lib/TokenizerBoundaryError.d.ts +7 -0
- package/node_modules/file-type/node_modules/strtok3/lib/TokenizerBoundaryError.js +10 -0
- package/node_modules/file-type/node_modules/strtok3/lib/TokenizerView.d.ts +9 -0
- package/node_modules/file-type/node_modules/strtok3/lib/TokenizerView.js +184 -0
- package/node_modules/file-type/node_modules/strtok3/lib/core.d.ts +4 -1
- package/node_modules/file-type/node_modules/strtok3/lib/core.js +5 -18
- package/node_modules/file-type/node_modules/strtok3/lib/index.js +28 -5
- package/node_modules/file-type/node_modules/strtok3/lib/isRandomAccessTokenizer.d.ts +6 -0
- package/node_modules/file-type/node_modules/strtok3/lib/isRandomAccessTokenizer.js +10 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/StreamReader.d.ts +4 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/StreamReader.js +29 -8
- package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +12 -2
- package/node_modules/file-type/node_modules/strtok3/lib/types.d.ts +19 -2
- package/node_modules/file-type/node_modules/strtok3/package.json +10 -8
- package/node_modules/file-type/package.json +3 -3
- package/node_modules/file-type/source/detectors/ebml.js +31 -16
- package/node_modules/file-type/source/detectors/zip.js +21 -203
- package/node_modules/matrix-js-sdk/CHANGELOG.md +28 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts +30 -25
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js +91 -100
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.d.ts +6 -4
- package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.d.ts +2 -15
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts +36 -7
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.js +29 -2
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts +12 -51
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js +10 -66
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts +5 -10
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js +25 -44
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts +8 -8
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js +30 -22
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.js +7 -8
- package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.d.ts +8 -13
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.js +2 -11
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.d.ts +6 -2
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.js +3 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts +5 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js +5 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.d.ts +9 -2
- package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.js +8 -5
- package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.d.ts +17 -2
- package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.js +88 -47
- package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room.d.ts +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room.js +8 -2
- package/node_modules/matrix-js-sdk/lib/models/room.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/thread.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/thread.js +23 -2
- package/node_modules/matrix-js-sdk/lib/models/thread.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.d.ts +3 -3
- package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/SignInWithQRFlow.d.ts +95 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/SignInWithQRFlow.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/SignInWithQRFlow.js +3 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/SignInWithQRFlow.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/index.d.ts +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js +5 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/package.json +3 -3
- package/node_modules/matrix-js-sdk/src/matrixrtc/CallMembership.ts +85 -95
- package/node_modules/matrix-js-sdk/src/matrixrtc/EncryptionManager.ts +6 -4
- package/node_modules/matrix-js-sdk/src/matrixrtc/IMembershipManager.ts +2 -15
- package/node_modules/matrix-js-sdk/src/matrixrtc/LivekitTransport.ts +58 -9
- package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSession.ts +21 -80
- package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManager.ts +23 -40
- package/node_modules/matrix-js-sdk/src/matrixrtc/RTCEncryptionManager.ts +51 -39
- package/node_modules/matrix-js-sdk/src/matrixrtc/ToDeviceKeyTransport.ts +7 -7
- package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/rtc.ts +9 -23
- package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/session.ts +14 -2
- package/node_modules/matrix-js-sdk/src/matrixrtc/types.ts +6 -0
- package/node_modules/matrix-js-sdk/src/models/event-timeline-set.ts +19 -4
- package/node_modules/matrix-js-sdk/src/models/room-sticky-events.ts +92 -58
- package/node_modules/matrix-js-sdk/src/models/room.ts +8 -2
- package/node_modules/matrix-js-sdk/src/models/thread.ts +25 -3
- package/node_modules/matrix-js-sdk/src/rendezvous/MSC4108SignInWithQR.ts +3 -3
- package/node_modules/matrix-js-sdk/src/rendezvous/SignInWithQRFlow.ts +117 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/index.ts +1 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/index.ts +5 -1
- package/node_modules/music-metadata/README.md +62 -67
- package/node_modules/music-metadata/lib/ParserFactory.js +3 -1
- package/node_modules/music-metadata/lib/aiff/AiffParser.d.ts +2 -0
- package/node_modules/music-metadata/lib/aiff/AiffParser.js +42 -3
- package/node_modules/music-metadata/lib/aiff/AiffToken.d.ts +1 -0
- package/node_modules/music-metadata/lib/aiff/AiffToken.js +1 -0
- package/node_modules/music-metadata/lib/apev2/APEv2Parser.js +11 -1
- package/node_modules/music-metadata/lib/asf/AsfObject.d.ts +2 -2
- package/node_modules/music-metadata/lib/asf/AsfObject.js +81 -111
- package/node_modules/music-metadata/lib/asf/AsfParser.js +5 -3
- package/node_modules/music-metadata/lib/asf/AsfTagMapper.js +27 -3
- package/node_modules/music-metadata/lib/asf/AsfUtil.d.ts +1 -1
- package/node_modules/music-metadata/lib/caf/CafParser.js +13 -2
- package/node_modules/music-metadata/lib/caf/CafToken.d.ts +2 -2
- package/node_modules/music-metadata/lib/caf/CafToken.js +9 -2
- package/node_modules/music-metadata/lib/common/Allocation.d.ts +6 -0
- package/node_modules/music-metadata/lib/common/Allocation.js +18 -0
- package/node_modules/music-metadata/lib/common/GenericTagMapper.js +1 -1
- package/node_modules/music-metadata/lib/common/MetadataCollector.d.ts +2 -0
- package/node_modules/music-metadata/lib/common/MetadataCollector.js +21 -4
- package/node_modules/music-metadata/lib/common/Util.d.ts +4 -0
- package/node_modules/music-metadata/lib/common/Util.js +34 -1
- package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.d.ts +4 -1
- package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.js +32 -36
- package/node_modules/music-metadata/lib/ebml/EbmlIterator.js +6 -2
- package/node_modules/music-metadata/lib/flac/FlacParser.js +2 -1
- package/node_modules/music-metadata/lib/id3v2/FrameParser.d.ts +7 -3
- package/node_modules/music-metadata/lib/id3v2/FrameParser.js +91 -46
- package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.js +6 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.d.ts +5 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.js +6 -4
- package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.d.ts +2 -1
- package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js +57 -15
- package/node_modules/music-metadata/lib/lrc/LyricsParser.d.ts +18 -2
- package/node_modules/music-metadata/lib/lrc/LyricsParser.js +14 -3
- package/node_modules/music-metadata/lib/mp4/Atom.d.ts +3 -3
- package/node_modules/music-metadata/lib/mp4/Atom.js +14 -7
- package/node_modules/music-metadata/lib/mp4/AtomToken.d.ts +25 -25
- package/node_modules/music-metadata/lib/mp4/AtomToken.js +136 -119
- package/node_modules/music-metadata/lib/mp4/MP4Parser.d.ts +16 -2
- package/node_modules/music-metadata/lib/mp4/MP4Parser.js +370 -132
- package/node_modules/music-metadata/lib/mp4/MP4TagMapper.js +30 -0
- package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.js +19 -8
- package/node_modules/music-metadata/lib/ogg/OggParser.js +6 -2
- package/node_modules/music-metadata/lib/ogg/OggToken.d.ts +2 -2
- package/node_modules/music-metadata/lib/ogg/OggToken.js +3 -9
- package/node_modules/music-metadata/lib/ogg/flac/FlacStream.d.ts +9 -11
- package/node_modules/music-metadata/lib/ogg/flac/FlacStream.js +111 -27
- package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.js +6 -0
- package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.js +6 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.d.ts +2 -2
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.js +8 -4
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.d.ts +1 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.js +23 -3
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.d.ts +4 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.js +15 -2
- package/node_modules/music-metadata/lib/riff/RiffInfoTagMap.js +1 -0
- package/node_modules/music-metadata/lib/type.d.ts +23 -6
- package/node_modules/music-metadata/lib/wav/BwfChunk.d.ts +12 -2
- package/node_modules/music-metadata/lib/wav/BwfChunk.js +39 -11
- package/node_modules/music-metadata/lib/wav/WaveParser.js +13 -2
- package/node_modules/music-metadata/package.json +2 -1
- package/node_modules/typebox/build/format/date_time.d.mts +2 -1
- package/node_modules/typebox/build/format/date_time.mjs +12 -3
- package/node_modules/typebox/package.json +1 -1
- package/package.json +8 -8
- package/dist/.setup/setup-plugin-api-CQKySg7F.mjs +0 -2
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/auto.js +0 -54
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/binarySearchTree.js +0 -413
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/fakeIndexedDB.js +0 -1018
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/forceCloseDatabase.js +0 -99
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/getAll.js +0 -707
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/memoryLeaks.js +0 -42
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/auto.js +0 -52
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/binarySearchTree.js +0 -409
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/fakeIndexedDB.js +0 -1014
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/forceCloseDatabase.js +0 -95
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/getAll.js +0 -703
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/memoryLeaks.js +0 -38
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
2
2
|
import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
|
|
3
3
|
import { listConfiguredAccountIds, resolveMergedAccountConfig, resolveNormalizedAccountEntry } from "openclaw/plugin-sdk/account-resolution-runtime";
|
|
4
|
-
|
|
4
|
+
// extensions/matrix/src/matrix/account-config.ts
|
|
5
5
|
function resolveMatrixBaseConfig(cfg) {
|
|
6
6
|
return cfg.channels?.matrix ?? {};
|
|
7
7
|
}
|
|
@@ -93,5 +93,4 @@ function resolveMatrixAccountAllowlistConfig(params) {
|
|
|
93
93
|
groupAllowFrom
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
//#endregion
|
|
97
96
|
export { resolveMatrixAccountConfig as a, resolveMatrixAccountAllowlistConfig as i, hasExplicitMatrixAccountConfig as n, resolveMatrixBaseConfig as o, listNormalizedMatrixAccountIds as r, findMatrixAccountConfig as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as __exportAll } from "./runtime-doctor-migrations-
|
|
2
|
-
import { n as listMatrixEnvAccountIds, t as getMatrixScopedEnvVarNames } from "./env-vars-
|
|
1
|
+
import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
|
|
2
|
+
import { n as listMatrixEnvAccountIds, t as getMatrixScopedEnvVarNames } from "./env-vars-Bh1iOXJ1.mjs";
|
|
3
3
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
|
|
4
4
|
import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { listCombinedAccountIds, listConfiguredAccountIds, resolveListedDefaultAccountId, resolveNormalizedAccountEntry } from "openclaw/plugin-sdk/account-core";
|
|
6
6
|
import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
|
|
7
|
-
|
|
7
|
+
// extensions/matrix/src/auth-precedence.ts
|
|
8
8
|
const MATRIX_CONFIG_STRING_FIELDS = [
|
|
9
9
|
"homeserver",
|
|
10
10
|
"userId",
|
|
@@ -28,8 +28,7 @@ function resolveMatrixAccountStringValues(params) {
|
|
|
28
28
|
for (const field of MATRIX_CONFIG_STRING_FIELDS) resolved[field] = resolveMatrixStringSourceValue(params.account?.[field]) || resolveMatrixStringSourceValue(params.scopedEnv?.[field]) || (isDefaultAccount || !MATRIX_DEFAULT_ACCOUNT_AUTH_ONLY_FIELDS.has(field) ? resolveMatrixStringSourceValue(params.channel?.[field]) || resolveMatrixStringSourceValue(params.globalEnv?.[field]) : "");
|
|
29
29
|
return resolved;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
//#region extensions/matrix/src/matrix/client/env-auth.ts
|
|
31
|
+
// extensions/matrix/src/matrix/client/env-auth.ts
|
|
33
32
|
function cleanEnv(value) {
|
|
34
33
|
return normalizeOptionalString(value) ?? "";
|
|
35
34
|
}
|
|
@@ -86,8 +85,7 @@ function resolveMatrixEnvAuthReadiness(accountId, env = process.env) {
|
|
|
86
85
|
missingMessage: `Set Matrix env vars for the default account (for example MATRIX_HOMESERVER + MATRIX_ACCESS_TOKEN, MATRIX_USER_ID + MATRIX_PASSWORD, or ${defaultKeys.homeserver} + ${defaultKeys.accessToken}).`
|
|
87
86
|
};
|
|
88
87
|
}
|
|
89
|
-
|
|
90
|
-
//#region extensions/matrix/src/account-selection.ts
|
|
88
|
+
// extensions/matrix/src/account-selection.ts
|
|
91
89
|
var account_selection_exports = /* @__PURE__ */ __exportAll({
|
|
92
90
|
findMatrixAccountEntry: () => findMatrixAccountEntry,
|
|
93
91
|
hasImplicitMatrixAccountConfig: () => hasImplicitMatrixAccountConfig,
|
|
@@ -190,5 +188,4 @@ function requiresExplicitMatrixDefaultAccount(cfg, env = process.env) {
|
|
|
190
188
|
const configuredDefault = normalizeOptionalAccountId(typeof channel.defaultAccount === "string" ? channel.defaultAccount : void 0);
|
|
191
189
|
return !(configuredDefault && configuredAccountIds.includes(configuredDefault));
|
|
192
190
|
}
|
|
193
|
-
//#endregion
|
|
194
191
|
export { resolveConfiguredMatrixAccountIds as a, hasReadyMatrixEnvAuth as c, resolveScopedMatrixEnvConfig as d, MATRIX_CONFIG_STRING_FIELDS as f, requiresExplicitMatrixDefaultAccount as i, resolveGlobalMatrixEnvConfig as l, findMatrixAccountEntry as n, resolveMatrixChannelConfig as o, resolveMatrixAccountStringValues as p, hasImplicitMatrixAccountConfig as r, resolveMatrixDefaultOrOnlyAccountId as s, account_selection_exports as t, resolveMatrixEnvAuthReadiness as u };
|
package/dist/.setup/{approval-handler.runtime-LBvkygUK.mjs → approval-handler.runtime-KhjfA3Qm.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as resolveMatrixAccountConfig } from "./account-config-
|
|
2
|
-
import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-
|
|
3
|
-
import { s as resolveMatrixTargetIdentity } from "./target-ids-
|
|
4
|
-
import { a as repairMatrixDirectRooms } from "./direct-management-
|
|
5
|
-
import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-
|
|
6
|
-
import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-
|
|
7
|
-
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-
|
|
1
|
+
import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
|
|
2
|
+
import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-C692_FeS.mjs";
|
|
3
|
+
import { s as resolveMatrixTargetIdentity } from "./target-ids-DltG_ZHJ.mjs";
|
|
4
|
+
import { a as repairMatrixDirectRooms } from "./direct-management-D59C1WO-.mjs";
|
|
5
|
+
import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-COg4UAcR.mjs";
|
|
6
|
+
import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-Bz_8XB01.mjs";
|
|
7
|
+
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-DSS3EtqP.mjs";
|
|
8
8
|
import { listMessageReceiptPlatformIds, resolveMessageReceiptPrimaryId } from "openclaw/plugin-sdk/channel-outbound";
|
|
9
9
|
import { normalizeStringifiedOptionalString, normalizeUniqueStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
10
10
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
@@ -12,7 +12,7 @@ import { retryAsync } from "openclaw/plugin-sdk/retry-runtime";
|
|
|
12
12
|
import { createChannelApprovalNativeRuntimeAdapterAsync } from "openclaw/plugin-sdk/approval-handler-runtime";
|
|
13
13
|
import { buildExecApprovalPendingReplyPayload, buildPluginApprovalPendingReplyPayload } from "openclaw/plugin-sdk/approval-reply-runtime";
|
|
14
14
|
import { buildApprovalPendingReplyPayload, buildPluginApprovalResolvedReplyPayload, formatChannelApprovalResolvedLabel } from "openclaw/plugin-sdk/approval-runtime";
|
|
15
|
-
|
|
15
|
+
// extensions/matrix/src/approval-handler.runtime.ts
|
|
16
16
|
const MATRIX_APPROVAL_METADATA_KEY = "com.openclaw.approval";
|
|
17
17
|
const MATRIX_APPROVAL_DELIVERY_ATTEMPTS = 3;
|
|
18
18
|
const MATRIX_APPROVAL_DELIVERY_RETRY_DELAY_MS = 250;
|
|
@@ -341,5 +341,4 @@ const matrixApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapterAsy
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
|
-
//#endregion
|
|
345
344
|
export { matrixApprovalNativeRuntime };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as getOptionalMatrixRuntime } from "./runtime-
|
|
1
|
+
import { r as getOptionalMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
|
|
2
2
|
import { normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/routing";
|
|
3
3
|
import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
|
|
4
4
|
import { createApprovalReactionTargetStore } from "openclaw/plugin-sdk/approval-reaction-runtime";
|
|
5
5
|
import { createPluginStateErrorReporter } from "openclaw/plugin-sdk/plugin-state-runtime";
|
|
6
|
-
|
|
6
|
+
// extensions/matrix/src/approval-reactions.ts
|
|
7
7
|
const MATRIX_APPROVAL_REACTION_BINDINGS = [
|
|
8
8
|
{
|
|
9
9
|
decision: "allow-once",
|
|
@@ -178,5 +178,4 @@ async function resolveMatrixApprovalReactionTargetWithPersistence(params) {
|
|
|
178
178
|
reactionKey: params.reactionKey
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
//#endregion
|
|
182
181
|
export { unregisterMatrixApprovalReactionTarget as a, resolveMatrixApprovalReactionTargetWithPersistence as i, listMatrixApprovalReactionBindings as n, unregisterMatrixApprovalReactionTargetsForApproval as o, registerMatrixApprovalReactionTarget as r, buildMatrixApprovalReactionHint as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// extensions/matrix/src/matrix/backup-health.ts
|
|
2
2
|
function resolveMatrixRoomKeyBackupIssue(backup) {
|
|
3
3
|
if (!backup.serverVersion) return {
|
|
4
4
|
code: "missing-server-backup",
|
|
@@ -56,5 +56,4 @@ function resolveMatrixRoomKeyBackupReadinessError(backup, opts) {
|
|
|
56
56
|
if (issue.message) return `Matrix room key backup is not usable: ${issue.message}.`;
|
|
57
57
|
return "Matrix room key backup is not usable on this device.";
|
|
58
58
|
}
|
|
59
|
-
//#endregion
|
|
60
59
|
export { resolveMatrixRoomKeyBackupReadinessError as n, resolveMatrixRoomKeyBackupIssue as t };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as __exportAll } from "./runtime-doctor-migrations-
|
|
2
|
-
import { i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, r as hasImplicitMatrixAccountConfig } from "./account-selection-
|
|
3
|
-
import { a as resolveMatrixAccountConfig } from "./account-config-
|
|
4
|
-
import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, v as resolveMatrixAccountAsync } from "./setup-core-
|
|
5
|
-
import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-
|
|
6
|
-
import { a as isMatrixExecApprovalAuthorizedSender, c as shouldSuppressLocalMatrixExecApprovalPrompt, d as normalizeMatrixApproverId, i as isMatrixApprovalClientEnabled, l as getMatrixApprovalAuthApprovers, n as getMatrixExecApprovalApprovers, o as resolveMatrixExecApprovalTarget, r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest, t as getMatrixApprovalApprovers, u as matrixApprovalAuth } from "./exec-approvals-
|
|
7
|
-
import { a as normalizeMatrixResolvableTarget, i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId, o as resolveMatrixDirectUserId, r as isMatrixRoomId, s as resolveMatrixTargetIdentity } from "./target-ids-
|
|
8
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-
|
|
9
|
-
import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./thread-bindings-shared-
|
|
10
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-
|
|
11
|
-
import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./thread-binding-api-
|
|
1
|
+
import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
|
|
2
|
+
import { i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, r as hasImplicitMatrixAccountConfig } from "./account-selection-Cow3TMFO.mjs";
|
|
3
|
+
import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
|
|
4
|
+
import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, v as resolveMatrixAccountAsync } from "./setup-core-BRD4PRVa.mjs";
|
|
5
|
+
import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-tIeMccfh.mjs";
|
|
6
|
+
import { a as isMatrixExecApprovalAuthorizedSender, c as shouldSuppressLocalMatrixExecApprovalPrompt, d as normalizeMatrixApproverId, i as isMatrixApprovalClientEnabled, l as getMatrixApprovalAuthApprovers, n as getMatrixExecApprovalApprovers, o as resolveMatrixExecApprovalTarget, r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest, t as getMatrixApprovalApprovers, u as matrixApprovalAuth } from "./exec-approvals-C692_FeS.mjs";
|
|
7
|
+
import { a as normalizeMatrixResolvableTarget, i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId, o as resolveMatrixDirectUserId, r as isMatrixRoomId, s as resolveMatrixTargetIdentity } from "./target-ids-DltG_ZHJ.mjs";
|
|
8
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-GiXgCj7k.mjs";
|
|
9
|
+
import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./thread-bindings-shared-DEAGGuDA.mjs";
|
|
10
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-AKnr45nw.mjs";
|
|
11
|
+
import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./thread-binding-api-OtSciHmZ.mjs";
|
|
12
12
|
import { createLazyRuntimeModule, createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
13
13
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
14
14
|
import { adaptScopedAccountAccessor, createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
@@ -20,9 +20,10 @@ import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
|
|
|
20
20
|
import { createScopedAccountReplyToModeResolver } from "openclaw/plugin-sdk/conversation-runtime";
|
|
21
21
|
import { createChannelDirectoryAdapter, createResolvedDirectoryEntriesLister, createRuntimeDirectoryLiveAdapter } from "openclaw/plugin-sdk/directory-runtime";
|
|
22
22
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
23
|
+
import { chunkMarkdownTextWithMode } from "openclaw/plugin-sdk/reply-chunking";
|
|
23
24
|
import { buildProbeChannelStatusSummary, collectStatusIssuesFromLastError, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
24
25
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
25
|
-
import {
|
|
26
|
+
import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
26
27
|
import { createActionGate } from "openclaw/plugin-sdk/channel-actions";
|
|
27
28
|
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
28
29
|
import { Type } from "typebox";
|
|
@@ -35,7 +36,7 @@ import { inspectConversationBindingAsync } from "openclaw/plugin-sdk/conversatio
|
|
|
35
36
|
import { inspectRuntimeConversationBindingRoute } from "openclaw/plugin-sdk/conversation-binding-runtime";
|
|
36
37
|
import { buildChannelKeyCandidates } from "openclaw/plugin-sdk/channel-targets";
|
|
37
38
|
import { deliveryContextFromSession, getSessionEntryAsync, resolveStorePath, sessionDeliveryOrigin } from "openclaw/plugin-sdk/session-store-runtime";
|
|
38
|
-
|
|
39
|
+
// extensions/matrix/src/actions.ts
|
|
39
40
|
const MATRIX_PLUGIN_HANDLED_ACTIONS = /* @__PURE__ */ new Set([
|
|
40
41
|
"send",
|
|
41
42
|
"poll-vote",
|
|
@@ -156,20 +157,18 @@ const matrixMessageActions = {
|
|
|
156
157
|
return account.enabled && account.configured && createActionGate(account.config.actions)("messages") ? payload : null;
|
|
157
158
|
},
|
|
158
159
|
handleAction: async (ctx) => {
|
|
159
|
-
const { handleMatrixAction } = await import("./tool-actions-
|
|
160
|
+
const { handleMatrixAction } = await import("./tool-actions-4dKbrHJ5.mjs");
|
|
160
161
|
return await handleMatrixAction(ctx);
|
|
161
162
|
}
|
|
162
163
|
};
|
|
163
|
-
|
|
164
|
-
//#region extensions/matrix/src/approval-reaction-auth.ts
|
|
164
|
+
// extensions/matrix/src/approval-reaction-auth.ts
|
|
165
165
|
var approval_reaction_auth_exports = /* @__PURE__ */ __exportAll({ isMatrixApprovalReactionAuthorizedSender: () => isMatrixApprovalReactionAuthorizedSender });
|
|
166
166
|
function isMatrixApprovalReactionAuthorizedSender(params) {
|
|
167
167
|
const normalizedSenderId = params.senderId ? normalizeMatrixApproverId(params.senderId) : void 0;
|
|
168
168
|
if (!normalizedSenderId) return false;
|
|
169
169
|
return getMatrixApprovalApprovers(params).includes(normalizedSenderId);
|
|
170
170
|
}
|
|
171
|
-
|
|
172
|
-
//#region extensions/matrix/src/approval-native.ts
|
|
171
|
+
// extensions/matrix/src/approval-native.ts
|
|
173
172
|
function normalizeComparableTarget(value) {
|
|
174
173
|
const target = resolveMatrixTargetIdentity(value);
|
|
175
174
|
if (!target) return normalizeLowercaseStringOrEmpty(value);
|
|
@@ -272,7 +271,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
|
|
|
272
271
|
],
|
|
273
272
|
isConfigured: isMatrixAnyApprovalClientEnabled,
|
|
274
273
|
shouldHandle: shouldHandleMatrixApprovalRequest,
|
|
275
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
274
|
+
load: async () => (await import("./approval-handler.runtime-KhjfA3Qm.mjs")).matrixApprovalNativeRuntime
|
|
276
275
|
})
|
|
277
276
|
});
|
|
278
277
|
const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
|
|
@@ -326,8 +325,7 @@ const matrixApprovalCapability = createChannelApprovalCapability({
|
|
|
326
325
|
nativeAsync: matrixBaseNativeApprovalAdapter,
|
|
327
326
|
render: matrixNativeApprovalCapability.render
|
|
328
327
|
});
|
|
329
|
-
|
|
330
|
-
//#region extensions/matrix/src/matrix/monitor/threads.ts
|
|
328
|
+
// extensions/matrix/src/matrix/monitor/threads.ts
|
|
331
329
|
function resolveMatrixThreadSessionKeys(params) {
|
|
332
330
|
return resolveThreadSessionKeys({
|
|
333
331
|
...params,
|
|
@@ -341,8 +339,7 @@ function resolveMatrixThreadRouting(params) {
|
|
|
341
339
|
const inboundThreadId = threadRootId && threadRootId !== messageId ? threadRootId : void 0;
|
|
342
340
|
return { threadId: effectiveThreadReplies === "off" ? void 0 : effectiveThreadReplies === "inbound" ? inboundThreadId : inboundThreadId ?? (messageId || void 0) };
|
|
343
341
|
}
|
|
344
|
-
|
|
345
|
-
//#region extensions/matrix/src/matrix/monitor/route.ts
|
|
342
|
+
// extensions/matrix/src/matrix/monitor/route.ts
|
|
346
343
|
function resolveMatrixBindingRef(params) {
|
|
347
344
|
return {
|
|
348
345
|
channel: "matrix",
|
|
@@ -441,8 +438,7 @@ function projectMatrixInboundRoute(params, inspection) {
|
|
|
441
438
|
pluginId: runtimeRoute.pluginId
|
|
442
439
|
};
|
|
443
440
|
}
|
|
444
|
-
|
|
445
|
-
//#region extensions/matrix/src/matrix/conversation-route-owner.ts
|
|
441
|
+
// extensions/matrix/src/matrix/conversation-route-owner.ts
|
|
446
442
|
async function prepareMatrixConversationRouteOwnersAsync(inputs, inspectBindings) {
|
|
447
443
|
const prepared = inputs.map((params) => {
|
|
448
444
|
const { cfg, conversation } = params;
|
|
@@ -486,8 +482,7 @@ async function prepareMatrixConversationRouteOwnersAsync(inputs, inspectBindings
|
|
|
486
482
|
return () => item.resolve(inspect()[position]);
|
|
487
483
|
});
|
|
488
484
|
}
|
|
489
|
-
|
|
490
|
-
//#region extensions/matrix/src/matrix/monitor/rooms.ts
|
|
485
|
+
// extensions/matrix/src/matrix/monitor/rooms.ts
|
|
491
486
|
function readLegacyRoomAllowAlias(room) {
|
|
492
487
|
const rawRoom = room;
|
|
493
488
|
return typeof rawRoom?.allow === "boolean" ? rawRoom.allow : void 0;
|
|
@@ -521,8 +516,7 @@ function resolveMatrixRoomConfig(params) {
|
|
|
521
516
|
matchSource: resolved ? matchKey === "*" ? "wildcard" : "direct" : void 0
|
|
522
517
|
};
|
|
523
518
|
}
|
|
524
|
-
|
|
525
|
-
//#region extensions/matrix/src/presentation-capabilities.ts
|
|
519
|
+
// extensions/matrix/src/presentation-capabilities.ts
|
|
526
520
|
const matrixPresentationCapabilities = {
|
|
527
521
|
supported: true,
|
|
528
522
|
buttons: true,
|
|
@@ -534,8 +528,7 @@ const matrixPresentationCapabilities = {
|
|
|
534
528
|
supportsEdit: true
|
|
535
529
|
} }
|
|
536
530
|
};
|
|
537
|
-
|
|
538
|
-
//#region extensions/matrix/src/matrix/session-store-metadata.ts
|
|
531
|
+
// extensions/matrix/src/matrix/session-store-metadata.ts
|
|
539
532
|
function resolveMatrixRoomTargetId(value) {
|
|
540
533
|
const trimmed = normalizeOptionalString(value);
|
|
541
534
|
if (!trimmed) return;
|
|
@@ -564,8 +557,7 @@ function resolveMatrixStoredSessionMeta(entry) {
|
|
|
564
557
|
...directUserId ? { directUserId } : {}
|
|
565
558
|
};
|
|
566
559
|
}
|
|
567
|
-
|
|
568
|
-
//#region extensions/matrix/src/session-route.ts
|
|
560
|
+
// extensions/matrix/src/session-route.ts
|
|
569
561
|
async function resolveMatrixOutboundSessionRoute(params) {
|
|
570
562
|
const target = resolveMatrixTargetIdentity(params.resolvedTarget?.to ?? params.target) ?? resolveMatrixTargetIdentity(params.target);
|
|
571
563
|
if (!target) return null;
|
|
@@ -627,14 +619,13 @@ async function resolveMatrixOutboundSessionRoute(params) {
|
|
|
627
619
|
canRecoverCurrentThread: ({ route }) => route.peer.kind !== "direct" || (params.cfg.session?.dmScope ?? "main") !== "main"
|
|
628
620
|
});
|
|
629
621
|
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
const
|
|
633
|
-
const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-BsSo3tCv.mjs").catch((error) => {
|
|
622
|
+
// extensions/matrix/src/channel.ts
|
|
623
|
+
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DOjRmnx0.mjs"), "matrixChannelRuntime");
|
|
624
|
+
const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-Ci1BOpAp.mjs").catch((error) => {
|
|
634
625
|
loadMatrixMonitorModule.clear();
|
|
635
626
|
throw error;
|
|
636
627
|
}));
|
|
637
|
-
const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-
|
|
628
|
+
const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-B3NLls5a.mjs").then((n) => n.n), "resolveMatrixTargets");
|
|
638
629
|
const matrixDoctor = {
|
|
639
630
|
dmAllowFromMode: "nestedOnly",
|
|
640
631
|
groupModel: "sender",
|
|
@@ -755,7 +746,7 @@ function matchesMatrixToolContextRoom(params) {
|
|
|
755
746
|
}
|
|
756
747
|
const matrixChannelOutbound = {
|
|
757
748
|
deliveryMode: "direct",
|
|
758
|
-
chunker:
|
|
749
|
+
chunker: (text, limit) => chunkMarkdownTextWithMode(text, limit, "length"),
|
|
759
750
|
chunkerMode: "markdown",
|
|
760
751
|
textChunkLimit: 4e3,
|
|
761
752
|
sanitizeText: ({ text }) => sanitizeAssistantVisibleText(text),
|
|
@@ -1090,5 +1081,4 @@ const matrixPlugin = createChatChannelPlugin({
|
|
|
1090
1081
|
},
|
|
1091
1082
|
outbound: matrixChannelOutbound
|
|
1092
1083
|
});
|
|
1093
|
-
//#endregion
|
|
1094
1084
|
export { resolveMatrixInboundRouteAsync as a, resolveMatrixRoomConfig as i, resolveMatrixStoredSessionMeta as n, resolveMatrixThreadRouting as o, matrixPresentationCapabilities as r, approval_reaction_auth_exports as s, matrixPlugin as t };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-
|
|
2
|
-
import { C as reconcileMatrixUnknownSend, S as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-
|
|
3
|
-
import { c as resolveMatrixLocalTimeoutMs } from "./client-support-
|
|
4
|
-
import { c as resolveMatrixAuth } from "./client-
|
|
5
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
6
|
-
import { t as matrixOutbound } from "./outbound-
|
|
7
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
1
|
+
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-DesoKUns.mjs";
|
|
2
|
+
import { C as reconcileMatrixUnknownSend, S as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-COg4UAcR.mjs";
|
|
3
|
+
import { c as resolveMatrixLocalTimeoutMs } from "./client-support-CqXAOZp3.mjs";
|
|
4
|
+
import { c as resolveMatrixAuth } from "./client-BVgnwwz0.mjs";
|
|
5
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-CQNKUJJx.mjs";
|
|
6
|
+
import { t as matrixOutbound } from "./outbound-CFFxi_uJ.mjs";
|
|
7
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-B3NLls5a.mjs";
|
|
8
8
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
9
9
|
import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
10
10
|
import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
11
11
|
import { runChannelProbe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
12
|
-
|
|
12
|
+
// extensions/matrix/src/matrix/probe.ts
|
|
13
13
|
async function probeMatrix(params) {
|
|
14
14
|
return await runChannelProbe(void 0, async () => {
|
|
15
15
|
const result = {
|
|
@@ -27,7 +27,7 @@ async function probeMatrix(params) {
|
|
|
27
27
|
};
|
|
28
28
|
const inputUserId = normalizeOptionalString(params.userId);
|
|
29
29
|
const homeserver = await resolveValidatedMatrixHomeserverUrl(params.homeserver, { dangerouslyAllowPrivateNetwork: params.allowPrivateNetwork });
|
|
30
|
-
const { MatrixAuthedHttpClient } = await import("./http-client-
|
|
30
|
+
const { MatrixAuthedHttpClient } = await import("./http-client-CqnKFKUH.mjs").then((n) => n.n);
|
|
31
31
|
const identity = await new MatrixAuthedHttpClient({
|
|
32
32
|
homeserver,
|
|
33
33
|
accessToken: params.accessToken,
|
|
@@ -55,8 +55,7 @@ async function probeMatrix(params) {
|
|
|
55
55
|
error: formatErrorMessage(error)
|
|
56
56
|
}));
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
//#region extensions/matrix/src/channel.runtime.ts
|
|
58
|
+
// extensions/matrix/src/channel.runtime.ts
|
|
60
59
|
const matrixChannelRuntime = {
|
|
61
60
|
cleanupMatrixDeliveryPlans,
|
|
62
61
|
listMatrixDirectoryGroupsLive,
|
|
@@ -69,5 +68,4 @@ const matrixChannelRuntime = {
|
|
|
69
68
|
sendMessageMatrix,
|
|
70
69
|
sendTypingMatrix
|
|
71
70
|
};
|
|
72
|
-
//#endregion
|
|
73
71
|
export { matrixChannelRuntime };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as resolveMatrixAccountConfig } from "./account-config-
|
|
2
|
-
import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-
|
|
1
|
+
import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
|
|
2
|
+
import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-BRD4PRVa.mjs";
|
|
3
3
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
4
4
|
import { createChannelConfigUiHints } from "openclaw/plugin-sdk/channel-core";
|
|
5
5
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -9,7 +9,7 @@ import { normalizeStringEntries as normalizeStringEntries$1 } from "openclaw/plu
|
|
|
9
9
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
10
10
|
import { AllowFromListSchema, ChannelBotLoopProtectionSchema, ChannelDeliveryStreamingConfigSchema, ChannelStreamingPreviewSchema, ChannelStreamingProgressSchema, ContextVisibilityModeSchema, GroupPolicySchema, MarkdownConfigSchema, MentionPatternsPolicySchema, buildChannelConfigSchema, buildGroupEntrySchema, buildNestedDmConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
|
|
11
11
|
import { z } from "zod";
|
|
12
|
-
|
|
12
|
+
// extensions/matrix/src/matrix/monitor/allowlist.ts
|
|
13
13
|
function normalizeMatrixUser(raw) {
|
|
14
14
|
const value = (raw ?? "").trim();
|
|
15
15
|
if (!value) return "";
|
|
@@ -58,8 +58,7 @@ function resolveMatrixAllowListMatch(params) {
|
|
|
58
58
|
candidates
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
//#region extensions/matrix/src/config-schema.ts
|
|
61
|
+
// extensions/matrix/src/config-schema.ts
|
|
63
62
|
const matrixChannelConfigUiHints = {
|
|
64
63
|
requireMentionInBotThreads: {
|
|
65
64
|
label: "Mention in Bot Threads",
|
|
@@ -279,7 +278,7 @@ const matrixPluginBase = {
|
|
|
279
278
|
order: 70,
|
|
280
279
|
quickstartAllowFrom: true
|
|
281
280
|
},
|
|
282
|
-
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-
|
|
281
|
+
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-DA5lN0I1.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
|
|
283
282
|
setupContract: matrixSetupContract,
|
|
284
283
|
capabilities: {
|
|
285
284
|
chatTypes: [
|
|
@@ -296,6 +295,10 @@ const matrixPluginBase = {
|
|
|
296
295
|
configPrefixes: ["channels.matrix"],
|
|
297
296
|
noopPrefixes: ["messages.ackReactionScope"]
|
|
298
297
|
},
|
|
298
|
+
lifecycle: { onAccountRemoved: async ({ accountId }) => {
|
|
299
|
+
const { clearMatrixCredentials } = await import("./credentials-CGgWuhFV.mjs");
|
|
300
|
+
await clearMatrixCredentials(process.env, accountId);
|
|
301
|
+
} },
|
|
299
302
|
configSchema: MatrixChannelConfigSchema,
|
|
300
303
|
config: {
|
|
301
304
|
...createScopedChannelConfigAdapter({
|
|
@@ -345,5 +348,4 @@ const matrixSetupPlugin = {
|
|
|
345
348
|
})).configured
|
|
346
349
|
}
|
|
347
350
|
};
|
|
348
|
-
//#endregion
|
|
349
351
|
export { resolveMatrixAllowListMatch as a, normalizeMatrixUserId as i, matrixSetupPlugin as n, normalizeMatrixAllowList as r, matrixPluginBase as t };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
2
|
-
import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-
|
|
3
|
-
import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-
|
|
4
|
-
import { n as resolveMatrixConfigPath } from "./config-paths-
|
|
5
|
-
import { l as resolveMatrixAuthContext } from "./client-
|
|
6
|
-
import { n as withResolvedActionClient } from "./client-
|
|
7
|
-
import { registerMatrixDoctorCommands } from "./cli-doctor-
|
|
8
|
-
import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-
|
|
9
|
-
import { i as setMatrixConsoleLogging } from "./logger-
|
|
10
|
-
import { r as setMatrixSdkLogMode } from "./logging-
|
|
11
|
-
import { n as listStaleOpenClawMatrixDevices } from "./device-health-
|
|
12
|
-
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-
|
|
13
|
-
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-
|
|
1
|
+
import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
|
|
2
|
+
import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
|
|
3
|
+
import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-BRD4PRVa.mjs";
|
|
4
|
+
import { n as resolveMatrixConfigPath } from "./config-paths-DBpHxDyc.mjs";
|
|
5
|
+
import { l as resolveMatrixAuthContext } from "./client-BVgnwwz0.mjs";
|
|
6
|
+
import { n as withResolvedActionClient } from "./client-BgOKS4W7.mjs";
|
|
7
|
+
import { registerMatrixDoctorCommands } from "./cli-doctor-CoRX0erj.mjs";
|
|
8
|
+
import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-BxH69np2.mjs";
|
|
9
|
+
import { i as setMatrixConsoleLogging } from "./logger-B9TwnY6C.mjs";
|
|
10
|
+
import { r as setMatrixSdkLogMode } from "./logging-Bnsn7s4r.mjs";
|
|
11
|
+
import { n as listStaleOpenClawMatrixDevices } from "./device-health-D7n-lPeb.mjs";
|
|
12
|
+
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-DP-a-BxL.mjs";
|
|
13
|
+
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-DIxfxgMv.mjs";
|
|
14
14
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
15
15
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
16
16
|
import { parseStrictInteger, timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
@@ -20,7 +20,7 @@ import { readByteStreamWithLimit } from "openclaw/plugin-sdk/response-limit-runt
|
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { runWithLocalStateOwner } from "openclaw/plugin-sdk/cli-state-owner";
|
|
22
22
|
import { getRuntimeConfigSnapshot, getRuntimeConfigSourceSnapshot } from "openclaw/plugin-sdk/runtime-config-snapshot";
|
|
23
|
-
|
|
23
|
+
// extensions/matrix/src/cli-shared.ts
|
|
24
24
|
const MATRIX_CLI_RECOVERY_KEY_STDIN_MAX_BYTES = 1048576;
|
|
25
25
|
function withMatrixVerificationBootstrapOptions(command) {
|
|
26
26
|
return command.option("--account <id>", "Account ID (for multi-account setups)").option("--recovery-key <key>", "Recovery key to apply before bootstrap (prefer --recovery-key-stdin)").option("--recovery-key-stdin", "Read the Matrix recovery key from stdin").option("--force-reset-cross-signing", "Force reset cross-signing identity before bootstrap (requires active recovery key)").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON");
|
|
@@ -328,8 +328,7 @@ function printVerificationStatus(status, verbose = false, accountId) {
|
|
|
328
328
|
}
|
|
329
329
|
printVerificationGuidance(status, accountId);
|
|
330
330
|
}
|
|
331
|
-
|
|
332
|
-
//#region extensions/matrix/src/matrix/actions/devices.ts
|
|
331
|
+
// extensions/matrix/src/matrix/actions/devices.ts
|
|
333
332
|
async function listMatrixOwnDevices(opts = {}) {
|
|
334
333
|
return await withResolvedActionClient(opts, async (client) => await client.listOwnDevices());
|
|
335
334
|
}
|
|
@@ -348,8 +347,7 @@ async function pruneMatrixStaleGatewayDevices(opts = {}) {
|
|
|
348
347
|
};
|
|
349
348
|
});
|
|
350
349
|
}
|
|
351
|
-
|
|
352
|
-
//#region extensions/matrix/src/cli-account.ts
|
|
350
|
+
// extensions/matrix/src/cli-account.ts
|
|
353
351
|
function registerMatrixAccountCommands(root) {
|
|
354
352
|
root.command("account").description("Manage matrix channel accounts").command("add").description("Add or update a matrix account (wrapper around channel setup)").option("--account <id>", "Account ID (default: normalized --name, else default)").option("--name <name>", "Optional display name for this account").option("--avatar-url <url>", "Optional Matrix avatar URL (mxc:// or http(s) URL)").option("--homeserver <url>", "Matrix homeserver URL").option("--proxy <url>", "Optional HTTP(S) proxy URL for Matrix requests").option("--allow-private-network", "Allow Matrix homeserver traffic to private/internal hosts for this account").option("--user-id <id>", "Matrix user ID").option("--access-token <token>", "Matrix access token").option("--password <password>", "Matrix password").option("--device-name <name>", "Matrix device display name").option("--initial-sync-limit <n>", "Matrix initial sync limit").option("--enable-e2ee", "Enable Matrix end-to-end encryption and bootstrap verification").option("--encryption", "Alias for --enable-e2ee").option("--use-env", "Use MATRIX_* env vars (or MATRIX_<ACCOUNT_ID>_* for non-default accounts)").option("--verbose", "Show setup details").option("--json", "Output as JSON").action(async (options) => {
|
|
355
353
|
await runMatrixCliCommand(options, {
|
|
@@ -407,7 +405,7 @@ function registerMatrixAccountCommands(root) {
|
|
|
407
405
|
backupVersion: null
|
|
408
406
|
};
|
|
409
407
|
if (accountConfig.encryption === true) {
|
|
410
|
-
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-
|
|
408
|
+
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-DCCxNvFW.mjs");
|
|
411
409
|
verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
|
|
412
410
|
previousCfg: cfg,
|
|
413
411
|
cfg: updated,
|
|
@@ -511,8 +509,7 @@ function registerMatrixAccountCommands(root) {
|
|
|
511
509
|
});
|
|
512
510
|
});
|
|
513
511
|
}
|
|
514
|
-
|
|
515
|
-
//#region extensions/matrix/src/cli-direct.ts
|
|
512
|
+
// extensions/matrix/src/cli-direct.ts
|
|
516
513
|
function printDirectRoomCandidate(room) {
|
|
517
514
|
const members = room.joinedMembers === null ? "unavailable" : room.joinedMembers.map((member) => formatMatrixCliText(member)).join(", ") || "none";
|
|
518
515
|
console.log(`- ${formatMatrixCliText(room.roomId)} [${room.source}] strict=${room.strict ? "yes" : "no"} joined=${members}`);
|
|
@@ -535,7 +532,7 @@ async function runMatrixDirectRoomCommand(params) {
|
|
|
535
532
|
cfg,
|
|
536
533
|
accountId: params.accountId
|
|
537
534
|
}) : void 0;
|
|
538
|
-
const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-
|
|
535
|
+
const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-BgOKS4W7.mjs").then((n) => n.t), import("./direct-management-D59C1WO-.mjs").then((n) => n.t)]);
|
|
539
536
|
return await (params.repair ? withStartedActionClient : withResolvedActionClient)({
|
|
540
537
|
accountId: params.accountId,
|
|
541
538
|
cfg
|
|
@@ -604,8 +601,7 @@ function registerMatrixDirectCommands(root) {
|
|
|
604
601
|
});
|
|
605
602
|
}
|
|
606
603
|
}
|
|
607
|
-
|
|
608
|
-
//#region extensions/matrix/src/cli-encryption.ts
|
|
604
|
+
// extensions/matrix/src/cli-encryption.ts
|
|
609
605
|
function isMatrixVerificationSetupComplete(status) {
|
|
610
606
|
return status.encryptionEnabled && status.verified && status.crossSigningVerified && status.signedByOwner && status.serverDeviceKnown === true && resolveMatrixRoomKeyBackupIssue(status.backup).code === "ok";
|
|
611
607
|
}
|
|
@@ -708,8 +704,7 @@ function registerMatrixEncryptionCommands(root) {
|
|
|
708
704
|
});
|
|
709
705
|
});
|
|
710
706
|
}
|
|
711
|
-
|
|
712
|
-
//#region extensions/matrix/src/cli-verification-backup.ts
|
|
707
|
+
// extensions/matrix/src/cli-verification-backup.ts
|
|
713
708
|
function registerMatrixVerificationBackupCommands(verify) {
|
|
714
709
|
const backup = verify.command("backup").description("Matrix room-key backup health and restore");
|
|
715
710
|
backup.command("status").description("Show Matrix room-key backup status for this device").option("--account <id>", "Account ID (for multi-account setups)").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (options) => {
|
|
@@ -859,8 +854,7 @@ function registerMatrixVerificationBackupCommands(verify) {
|
|
|
859
854
|
});
|
|
860
855
|
});
|
|
861
856
|
}
|
|
862
|
-
|
|
863
|
-
//#region extensions/matrix/src/cli-verification.ts
|
|
857
|
+
// extensions/matrix/src/cli-verification.ts
|
|
864
858
|
function matrixCliVerificationDmLookupOptions(options) {
|
|
865
859
|
return {
|
|
866
860
|
...options.roomId !== void 0 ? { verificationDmRoomId: options.roomId } : {},
|
|
@@ -1136,8 +1130,7 @@ function registerMatrixVerificationCommands(root) {
|
|
|
1136
1130
|
});
|
|
1137
1131
|
registerMatrixVerificationBackupCommands(verify);
|
|
1138
1132
|
}
|
|
1139
|
-
|
|
1140
|
-
//#region extensions/matrix/src/cli.ts
|
|
1133
|
+
// extensions/matrix/src/cli.ts
|
|
1141
1134
|
function printMatrixOwnDevices(devices) {
|
|
1142
1135
|
if (devices.length === 0) {
|
|
1143
1136
|
console.log("Devices: none");
|
|
@@ -1212,5 +1205,4 @@ function registerMatrixCli(params) {
|
|
|
1212
1205
|
context: { openPluginStateKeyedStore: (options) => getMatrixRuntime().state.openKeyedStoreV2(options) }
|
|
1213
1206
|
});
|
|
1214
1207
|
}
|
|
1215
|
-
//#endregion
|
|
1216
1208
|
export { registerMatrixCli };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as sanitizeMatrixPathSegment } from "./storage-paths-
|
|
2
|
-
import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-
|
|
1
|
+
import { l as sanitizeMatrixPathSegment } from "./storage-paths-e_Vq6cvw.mjs";
|
|
2
|
+
import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-D3WLE-t4.mjs";
|
|
3
3
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
|
|
5
|
+
// extensions/matrix/src/cli-doctor.ts
|
|
6
6
|
function registerMatrixDoctorCommands(params) {
|
|
7
7
|
const accountForRoot = (rootDir, stateDir) => rootDir === path.resolve(stateDir, "matrix") ? "default" : path.basename(path.dirname(path.dirname(rootDir)));
|
|
8
8
|
const doctor = params.program.description("Inspect and recover Matrix crypto storage refusal");
|
|
@@ -32,5 +32,4 @@ function registerMatrixDoctorCommands(params) {
|
|
|
32
32
|
console.log(`Matrix crypto refusal cleared for account ${account}. Run openclaw update repair (or openclaw doctor --fix) to finish pending migrations, then restart the Gateway.`);
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { registerMatrixDoctorCommands };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
2
|
-
|
|
2
|
+
// extensions/matrix/src/cli-metadata.ts
|
|
3
3
|
function registerMatrixCliMetadata(api) {
|
|
4
4
|
api.registerCli(async ({ program }) => {
|
|
5
|
-
const { registerMatrixCli } = await import("./cli-
|
|
5
|
+
const { registerMatrixCli } = await import("./cli-CChA7Tf5.mjs");
|
|
6
6
|
registerMatrixCli({ program });
|
|
7
7
|
}, { descriptors: [{
|
|
8
8
|
name: "matrix",
|
|
@@ -10,13 +10,11 @@ function registerMatrixCliMetadata(api) {
|
|
|
10
10
|
hasSubcommands: true
|
|
11
11
|
}] });
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
//#region extensions/matrix/cli-metadata.ts
|
|
13
|
+
// extensions/matrix/cli-metadata.ts
|
|
15
14
|
var cli_metadata_default = definePluginEntry({
|
|
16
15
|
id: "matrix",
|
|
17
16
|
name: "Matrix",
|
|
18
17
|
description: "Matrix channel plugin (matrix-js-sdk)",
|
|
19
18
|
register: registerMatrixCliMetadata
|
|
20
19
|
});
|
|
21
|
-
//#endregion
|
|
22
20
|
export { registerMatrixCliMetadata as n, cli_metadata_default as t };
|