@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,14 +1,15 @@
|
|
|
1
|
-
import { n as __exportAll } from "./runtime-doctor-migrations-
|
|
2
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
3
|
-
import { a as resolveMatrixAccountConfig } from "./account-config-
|
|
4
|
-
import { a as normalizeMatrixResolvableTarget, n as isMatrixQualifiedUserId } from "./target-ids-
|
|
5
|
-
import { n as withMatrixSendCurrentness, o as buildMatrixReactionContent, t as captureMatrixSendCurrentness } from "./send-currentness-
|
|
6
|
-
import { _ as MsgType, d as buildMatrixMessageRelation, f as resolveMatrixReplyToEventId, g as MSC4357_LIVE_KEY, l as isStrictDirectRoom, m as EventType, n as inspectMatrixDirectRooms, p as resolveMatrixThreadRootId, r as persistMatrixDirectRoomMapping, v as RelationType } from "./direct-management-
|
|
7
|
-
import { n as getMatrixMonitorTaskSignal } from "./task-runner-
|
|
8
|
-
import { n as getMatrixEventProjection } from "./event-helpers-
|
|
1
|
+
import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
|
|
2
|
+
import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
|
|
3
|
+
import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
|
|
4
|
+
import { a as normalizeMatrixResolvableTarget, n as isMatrixQualifiedUserId } from "./target-ids-DltG_ZHJ.mjs";
|
|
5
|
+
import { n as withMatrixSendCurrentness, o as buildMatrixReactionContent, t as captureMatrixSendCurrentness } from "./send-currentness-D1x6YP9O.mjs";
|
|
6
|
+
import { _ as MsgType, d as buildMatrixMessageRelation, f as resolveMatrixReplyToEventId, g as MSC4357_LIVE_KEY, l as isStrictDirectRoom, m as EventType, n as inspectMatrixDirectRooms, p as resolveMatrixThreadRootId, r as persistMatrixDirectRoomMapping, v as RelationType } from "./direct-management-D59C1WO-.mjs";
|
|
7
|
+
import { n as getMatrixMonitorTaskSignal } from "./task-runner-CYyGHdNW.mjs";
|
|
8
|
+
import { n as getMatrixEventProjection } from "./event-helpers-DDUjVVf7.mjs";
|
|
9
9
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
10
10
|
import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
|
|
11
11
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
12
|
+
import { resolveTextChunkLimit } from "openclaw/plugin-sdk/reply-chunking";
|
|
12
13
|
import { asFiniteNumber, asNullableObjectRecord, asNullableRecord, asOptionalObjectRecord, isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
13
14
|
import { FormatCapabilityProfile, convertMarkdownTables, findCodeRegions, isInsideCode, markdownToIR, renderMarkdownWithMarkers, tokenizeHtmlTags } from "openclaw/plugin-sdk/text-chunking";
|
|
14
15
|
import { createHash } from "node:crypto";
|
|
@@ -21,11 +22,10 @@ import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
|
|
|
21
22
|
import { M_POLL_KIND_DISCLOSED } from "matrix-js-sdk/lib/@types/polls.js";
|
|
22
23
|
import { normalizePollInput } from "openclaw/plugin-sdk/poll-runtime";
|
|
23
24
|
import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/markdown-table-runtime";
|
|
24
|
-
import { resolveTextChunkLimit } from "openclaw/plugin-sdk/reply-chunking";
|
|
25
25
|
import MarkdownIt from "markdown-it";
|
|
26
26
|
import { isAutoLinkedFileRef } from "openclaw/plugin-sdk/text-autolink-runtime";
|
|
27
|
-
|
|
28
|
-
const loadMatrixSendClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-
|
|
27
|
+
// extensions/matrix/src/matrix/send/client.ts
|
|
28
|
+
const loadMatrixSendClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-CHs5OQ1Z.mjs"));
|
|
29
29
|
function resolveMediaMaxBytes(accountId, cfg) {
|
|
30
30
|
const mediaMaxMb = resolveMatrixAccountConfig({
|
|
31
31
|
cfg,
|
|
@@ -59,8 +59,7 @@ async function withResolvedMatrixClient(opts, run) {
|
|
|
59
59
|
const { withResolvedRuntimeMatrixClient } = await loadMatrixSendClientRuntime();
|
|
60
60
|
return await withResolvedRuntimeMatrixClient(opts, run);
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
//#region extensions/matrix/src/matrix/send/receipt.ts
|
|
62
|
+
// extensions/matrix/src/matrix/send/receipt.ts
|
|
64
63
|
function createMatrixSendReceipt(params) {
|
|
65
64
|
const firstEvent = params.events[0];
|
|
66
65
|
const receipt = createMessageReceiptFromOutboundResults({
|
|
@@ -85,14 +84,12 @@ function createMatrixSendReceipt(params) {
|
|
|
85
84
|
});
|
|
86
85
|
return receipt;
|
|
87
86
|
}
|
|
88
|
-
|
|
89
|
-
//#region extensions/matrix/src/matrix/monitor/bounded-cache.ts
|
|
87
|
+
// extensions/matrix/src/matrix/monitor/bounded-cache.ts
|
|
90
88
|
function setBoundedMap(map, key, value, maxEntries) {
|
|
91
89
|
map.set(key, value);
|
|
92
90
|
pruneMapToMaxSize(map, maxEntries);
|
|
93
91
|
}
|
|
94
|
-
|
|
95
|
-
//#region extensions/matrix/src/matrix/send/targets.ts
|
|
92
|
+
// extensions/matrix/src/matrix/send/targets.ts
|
|
96
93
|
function normalizeTarget(raw) {
|
|
97
94
|
const trimmed = raw.trim();
|
|
98
95
|
if (!trimmed) throw new Error("Matrix target is required (room:<id> or #alias)");
|
|
@@ -152,8 +149,7 @@ async function resolveMatrixRoomId(client, raw, opts = {}) {
|
|
|
152
149
|
}
|
|
153
150
|
return target;
|
|
154
151
|
}
|
|
155
|
-
|
|
156
|
-
//#region extensions/matrix/src/matrix/delivery-plan.ts
|
|
152
|
+
// extensions/matrix/src/matrix/delivery-plan.ts
|
|
157
153
|
const DELIVERY_PLAN_VERSION = 1;
|
|
158
154
|
const DELIVERY_PLAN_NAMESPACE = "outbound-delivery-plans";
|
|
159
155
|
const DELIVERY_PLAN_TTL_MS = 864e5;
|
|
@@ -379,8 +375,7 @@ async function cleanupMatrixDeliveryPlans(ctx) {
|
|
|
379
375
|
const keys = entries.filter((entry) => entry.key.startsWith(prefix)).map((entry) => entry.key);
|
|
380
376
|
for (const key of keys) await store.delete(key);
|
|
381
377
|
}
|
|
382
|
-
|
|
383
|
-
//#region extensions/matrix/src/matrix/poll-types.ts
|
|
378
|
+
// extensions/matrix/src/matrix/poll-types.ts
|
|
384
379
|
const M_POLL_START = "m.poll.start";
|
|
385
380
|
const M_POLL_RESPONSE = "m.poll.response";
|
|
386
381
|
const M_POLL_END = "m.poll.end";
|
|
@@ -557,8 +552,7 @@ function buildPollResponseContent(pollEventId, answerIds) {
|
|
|
557
552
|
}
|
|
558
553
|
};
|
|
559
554
|
}
|
|
560
|
-
|
|
561
|
-
//#region extensions/matrix/src/matrix/format-profile.ts
|
|
555
|
+
// extensions/matrix/src/matrix/format-profile.ts
|
|
562
556
|
function createMatrixPrivateMarkers(markdown, exhaustedMessage) {
|
|
563
557
|
const used = new Set(Array.from(markdown, (character) => character.charCodeAt(0)));
|
|
564
558
|
for (const match of markdown.matchAll(/&#(?:x([0-9a-f]+)|(\d+));/giu)) {
|
|
@@ -601,8 +595,7 @@ function projectMatrixMarkdown(markdown) {
|
|
|
601
595
|
function renderMatrixMarkdownTables(markdown, mode) {
|
|
602
596
|
return MATRIX_FORMAT_PROFILE.constructs.table === "native" && (mode === "off" || mode === "block") ? markdown : convertMarkdownTables(markdown, mode);
|
|
603
597
|
}
|
|
604
|
-
|
|
605
|
-
//#region extensions/matrix/src/matrix/format-table-ranges.ts
|
|
598
|
+
// extensions/matrix/src/matrix/format-table-ranges.ts
|
|
606
599
|
const tableParser = new MarkdownIt({
|
|
607
600
|
html: false,
|
|
608
601
|
linkify: false,
|
|
@@ -623,8 +616,7 @@ function matrixTableSourceRangesFromTokens(tokens, lineStarts, sourceLength) {
|
|
|
623
616
|
}];
|
|
624
617
|
});
|
|
625
618
|
}
|
|
626
|
-
|
|
627
|
-
//#region extensions/matrix/src/matrix/format-spoiler-ranges.ts
|
|
619
|
+
// extensions/matrix/src/matrix/format-spoiler-ranges.ts
|
|
628
620
|
const spoilerParser = new MarkdownIt({
|
|
629
621
|
html: false,
|
|
630
622
|
linkify: true,
|
|
@@ -726,7 +718,7 @@ function prepareMatrixMarkdownSource(markdown) {
|
|
|
726
718
|
end: start + range.end
|
|
727
719
|
})));
|
|
728
720
|
for (const match of markdown.matchAll(/^\s*\[[^\]\n]+\]:\s*.+$/gmu)) {
|
|
729
|
-
const start = match.index
|
|
721
|
+
const start = match.index;
|
|
730
722
|
const labelEnd = match[0].indexOf("]:");
|
|
731
723
|
const reference = spoilerParser.utils.normalizeReference(match[0].slice(1, labelEnd));
|
|
732
724
|
if (references.has(reference)) {
|
|
@@ -803,8 +795,7 @@ function analyzeMatrixSpoilers(markdown) {
|
|
|
803
795
|
metadataCollision: hasMatrixSpoilerMetadataCollision(source, delimiterOffsets)
|
|
804
796
|
};
|
|
805
797
|
}
|
|
806
|
-
|
|
807
|
-
//#region extensions/matrix/src/matrix/format.ts
|
|
798
|
+
// extensions/matrix/src/matrix/format.ts
|
|
808
799
|
const MATRIX_STYLE_MARKERS = {
|
|
809
800
|
underline: {
|
|
810
801
|
open: "<u>",
|
|
@@ -1156,8 +1147,7 @@ async function renderMarkdownToMatrixHtmlWithMentions(params) {
|
|
|
1156
1147
|
mentions: state.mentions
|
|
1157
1148
|
};
|
|
1158
1149
|
}
|
|
1159
|
-
|
|
1160
|
-
//#region extensions/matrix/src/matrix/send/chunking.ts
|
|
1150
|
+
// extensions/matrix/src/matrix/send/chunking.ts
|
|
1161
1151
|
function normalizeMatrixEventLimit(limit) {
|
|
1162
1152
|
if (!Number.isFinite(limit) || limit <= 0) return limit;
|
|
1163
1153
|
return Math.max(1, Math.floor(limit));
|
|
@@ -1319,8 +1309,7 @@ function chunkMatrixText(text, opts) {
|
|
|
1319
1309
|
chunks
|
|
1320
1310
|
};
|
|
1321
1311
|
}
|
|
1322
|
-
|
|
1323
|
-
//#region extensions/matrix/src/matrix/media-text.ts
|
|
1312
|
+
// extensions/matrix/src/matrix/media-text.ts
|
|
1324
1313
|
const MATRIX_MEDIA_KINDS = {
|
|
1325
1314
|
"m.audio": "audio",
|
|
1326
1315
|
"m.file": "file",
|
|
@@ -1388,8 +1377,7 @@ function formatMatrixMessageText(params) {
|
|
|
1388
1377
|
if (!body) return marker;
|
|
1389
1378
|
return `${body}\n\n${marker}`;
|
|
1390
1379
|
}
|
|
1391
|
-
|
|
1392
|
-
//#region extensions/matrix/src/matrix/send/edit-content.ts
|
|
1380
|
+
// extensions/matrix/src/matrix/send/edit-content.ts
|
|
1393
1381
|
const MAX_EDIT_RELATION_PAGES = 100;
|
|
1394
1382
|
const EDIT_RELATION_PAGE_SIZE = 100;
|
|
1395
1383
|
const EDIT_DECRYPTION_ERROR = "Matrix edit history is not fully decrypted; restore encryption keys before editing.";
|
|
@@ -1427,8 +1415,7 @@ async function resolveMatrixEditContent(params) {
|
|
|
1427
1415
|
}
|
|
1428
1416
|
throw new Error("Matrix edit history could not be fully read; send a new message instead.");
|
|
1429
1417
|
}
|
|
1430
|
-
|
|
1431
|
-
//#region extensions/matrix/src/matrix/send/formatting.ts
|
|
1418
|
+
// extensions/matrix/src/matrix/send/formatting.ts
|
|
1432
1419
|
function buildTextContent(body, relation, opts = {}) {
|
|
1433
1420
|
return {
|
|
1434
1421
|
msgtype: opts.msgtype ?? MsgType.Text,
|
|
@@ -1491,16 +1478,45 @@ function resolveMatrixMsgType(contentType) {
|
|
|
1491
1478
|
default: return MsgType.File;
|
|
1492
1479
|
}
|
|
1493
1480
|
}
|
|
1494
|
-
|
|
1495
|
-
//#region extensions/matrix/src/matrix/send/media.ts
|
|
1481
|
+
// extensions/matrix/src/matrix/send/media.ts
|
|
1496
1482
|
const THUMBNAIL_MAX_SIDE = 800;
|
|
1497
1483
|
const THUMBNAIL_QUALITY = 80;
|
|
1484
|
+
const MSC4230_IS_ANIMATED = "org.matrix.msc4230.is_animated";
|
|
1485
|
+
const PNG_SIGNATURE = Buffer.from([
|
|
1486
|
+
137,
|
|
1487
|
+
80,
|
|
1488
|
+
78,
|
|
1489
|
+
71,
|
|
1490
|
+
13,
|
|
1491
|
+
10,
|
|
1492
|
+
26,
|
|
1493
|
+
10
|
|
1494
|
+
]);
|
|
1495
|
+
/** True only when the bytes prove a single-frame JPEG, PNG or WebP; unknown stays unclaimed. */
|
|
1496
|
+
function isStillImageBuffer(buffer) {
|
|
1497
|
+
if (buffer.length >= 3 && buffer[0] === 255 && buffer[1] === 216 && buffer[2] === 255) return true;
|
|
1498
|
+
if (buffer.subarray(0, 8).equals(PNG_SIGNATURE)) {
|
|
1499
|
+
for (let offset = 8; offset + 12 <= buffer.length;) {
|
|
1500
|
+
const type = buffer.toString("latin1", offset + 4, offset + 8);
|
|
1501
|
+
if (type === "acTL") return false;
|
|
1502
|
+
if (type === "IDAT") return true;
|
|
1503
|
+
offset += 12 + buffer.readUInt32BE(offset);
|
|
1504
|
+
}
|
|
1505
|
+
return false;
|
|
1506
|
+
}
|
|
1507
|
+
if (buffer.length >= 21 && buffer.toString("latin1", 0, 4) === "RIFF" && buffer.toString("latin1", 8, 12) === "WEBP") {
|
|
1508
|
+
const chunk = buffer.toString("latin1", 12, 16);
|
|
1509
|
+
return chunk === "VP8 " || chunk === "VP8L" || chunk === "VP8X" && (buffer[20] & 2) === 0;
|
|
1510
|
+
}
|
|
1511
|
+
return false;
|
|
1512
|
+
}
|
|
1498
1513
|
async function prepareImageInfo(params) {
|
|
1499
1514
|
const meta = await getMatrixRuntime().media.getImageMetadata(params.buffer).catch(() => null);
|
|
1500
1515
|
if (!meta) return;
|
|
1501
1516
|
const imageInfo = {
|
|
1502
1517
|
w: meta.width,
|
|
1503
|
-
h: meta.height
|
|
1518
|
+
h: meta.height,
|
|
1519
|
+
...isStillImageBuffer(params.buffer) ? { [MSC4230_IS_ANIMATED]: false } : {}
|
|
1504
1520
|
};
|
|
1505
1521
|
if (Math.max(meta.width, meta.height) > THUMBNAIL_MAX_SIDE) try {
|
|
1506
1522
|
const thumbBuffer = await getMatrixRuntime().media.resizeToJpeg({
|
|
@@ -1540,8 +1556,7 @@ async function uploadMediaWithEncryption(client, roomId, buffer, params) {
|
|
|
1540
1556
|
}
|
|
1541
1557
|
return { url: await client.uploadContent(buffer, params.contentType, params.filename) };
|
|
1542
1558
|
}
|
|
1543
|
-
|
|
1544
|
-
//#region extensions/matrix/src/matrix/send.ts
|
|
1559
|
+
// extensions/matrix/src/matrix/send.ts
|
|
1545
1560
|
var send_exports = /* @__PURE__ */ __exportAll({
|
|
1546
1561
|
chunkMatrixText: () => chunkMatrixText,
|
|
1547
1562
|
editMessageMatrix: () => editMessageMatrix,
|
|
@@ -1938,5 +1953,4 @@ async function reactMatrixMessage(roomId, messageId, emoji, opts = {}) {
|
|
|
1938
1953
|
await resolved.sendEvent(resolvedRoom, EventType.Reaction, reaction);
|
|
1939
1954
|
});
|
|
1940
1955
|
}
|
|
1941
|
-
//#endregion
|
|
1942
1956
|
export { reconcileMatrixUnknownSend as C, cleanupMatrixDeliveryPlans as S, setBoundedMap as T, formatPollResultsAsText as _, sendSingleTextMessageMatrix as a, parsePollStart as b, formatMatrixMessageText as c, resolveMatrixReplacementContent as d, prepareMatrixSingleText as f, formatPollAsText as g, buildPollResultsSummary as h, sendPollMatrix as i, isLikelyBareFilename as l, buildPollResponseContent as m, reactMatrixMessage as n, sendTypingMatrix as o, ORG_POLL_RESPONSE as p, sendMessageMatrix as r, send_exports as s, editMessageMatrix as t, resolveMatrixMessageAttachment as u, isPollEventType as v, resolveMatrixRoomId as w, resolvePollReferenceEventId as x, isPollStartType as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { asOptionalObjectRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
2
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
|
-
|
|
3
|
+
// extensions/matrix/src/matrix/reaction-common.ts
|
|
4
4
|
const MATRIX_ANNOTATION_RELATION_TYPE = "m.annotation";
|
|
5
5
|
const MATRIX_REACTION_EVENT_TYPE = "m.reaction";
|
|
6
6
|
function normalizeMatrixReactionValue(value, field) {
|
|
@@ -59,8 +59,7 @@ function selectOwnMatrixReactionEventIds(events, userId, emoji) {
|
|
|
59
59
|
}
|
|
60
60
|
return ids;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
//#region extensions/matrix/src/matrix/sdk/send-currentness.ts
|
|
62
|
+
// extensions/matrix/src/matrix/sdk/send-currentness.ts
|
|
64
63
|
const sendCurrentness = new AsyncLocalStorage();
|
|
65
64
|
function withMatrixSendCurrentness(client, assertCurrent, run) {
|
|
66
65
|
assertCurrent();
|
|
@@ -77,5 +76,4 @@ function captureMatrixSendCurrentness(client) {
|
|
|
77
76
|
function withoutMatrixSendCurrentness(run) {
|
|
78
77
|
return sendCurrentness.exit(run);
|
|
79
78
|
}
|
|
80
|
-
//#endregion
|
|
81
79
|
export { MATRIX_REACTION_EVENT_TYPE as a, extractMatrixReactionAnnotation as c, MATRIX_ANNOTATION_RELATION_TYPE as i, selectOwnMatrixReactionEventIds as l, withMatrixSendCurrentness as n, buildMatrixReactionContent as o, withoutMatrixSendCurrentness as r, buildMatrixReactionRelationsPath as s, captureMatrixSendCurrentness as t, summarizeMatrixReactionEvents as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-
|
|
2
|
-
import "./setup-core-
|
|
3
|
-
import { n as bootstrapMatrixVerification } from "./verification-
|
|
1
|
+
import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
|
|
2
|
+
import "./setup-core-BRD4PRVa.mjs";
|
|
3
|
+
import { n as bootstrapMatrixVerification } from "./verification-DIxfxgMv.mjs";
|
|
4
4
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
5
|
-
|
|
5
|
+
// extensions/matrix/src/setup-bootstrap.ts
|
|
6
6
|
async function maybeBootstrapNewEncryptedMatrixAccount(params) {
|
|
7
7
|
const accountConfig = resolveMatrixAccountConfig({
|
|
8
8
|
cfg: params.cfg,
|
|
@@ -54,5 +54,4 @@ async function runMatrixSetupBootstrapAfterConfigWrite(params) {
|
|
|
54
54
|
}
|
|
55
55
|
params.runtime.error(`Matrix verification bootstrap warning for "${params.accountId}": ${bootstrap.error ?? "unknown bootstrap failure"}`);
|
|
56
56
|
}
|
|
57
|
-
//#endregion
|
|
58
57
|
export { maybeBootstrapNewEncryptedMatrixAccount, runMatrixSetupBootstrapAfterConfigWrite };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __exportAll } from "./runtime-doctor-migrations-
|
|
2
|
-
import { a as resolveConfiguredMatrixAccountIds, d as resolveScopedMatrixEnvConfig, l as resolveGlobalMatrixEnvConfig, p as resolveMatrixAccountStringValues, s as resolveMatrixDefaultOrOnlyAccountId, u as resolveMatrixEnvAuthReadiness } from "./account-selection-
|
|
3
|
-
import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig, t as findMatrixAccountConfig } from "./account-config-
|
|
4
|
-
import { a as loadMatrixCredentials, o as loadMatrixCredentialsAsync, r as credentialsMatchConfig, t as captureMatrixCredentialsEnv } from "./credentials-read-
|
|
5
|
-
import { n as resolveMatrixConfigPath, r as shouldStoreMatrixAccountAtTopLevel, t as resolveMatrixConfigFieldPath } from "./config-paths-
|
|
1
|
+
import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
|
|
2
|
+
import { a as resolveConfiguredMatrixAccountIds, d as resolveScopedMatrixEnvConfig, l as resolveGlobalMatrixEnvConfig, p as resolveMatrixAccountStringValues, s as resolveMatrixDefaultOrOnlyAccountId, u as resolveMatrixEnvAuthReadiness } from "./account-selection-Cow3TMFO.mjs";
|
|
3
|
+
import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig, t as findMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
|
|
4
|
+
import { a as loadMatrixCredentials, o as loadMatrixCredentialsAsync, r as credentialsMatchConfig, t as captureMatrixCredentialsEnv } from "./credentials-read-rPqEpuxv.mjs";
|
|
5
|
+
import { n as resolveMatrixConfigPath, r as shouldStoreMatrixAccountAtTopLevel, t as resolveMatrixConfigFieldPath } from "./config-paths-DBpHxDyc.mjs";
|
|
6
6
|
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
7
7
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
8
8
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -12,7 +12,7 @@ import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, addWildcardAllowFrom, apply
|
|
|
12
12
|
import { resolveOptionalIntegerOption } from "openclaw/plugin-sdk/number-runtime";
|
|
13
13
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$2, normalizeAccountId as normalizeAccountId$2 } from "openclaw/plugin-sdk/routing";
|
|
14
14
|
import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
|
|
15
|
-
|
|
15
|
+
// extensions/matrix/src/matrix/accounts.ts
|
|
16
16
|
function clean(value) {
|
|
17
17
|
return normalizeOptionalString(value) ?? "";
|
|
18
18
|
}
|
|
@@ -143,8 +143,7 @@ async function resolveMatrixAccountAsync(params) {
|
|
|
143
143
|
configured: isMatrixAccountConfigured(prepared, stored)
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
|
|
147
|
-
//#region extensions/matrix/src/matrix/config-update.ts
|
|
146
|
+
// extensions/matrix/src/matrix/config-update.ts
|
|
148
147
|
var config_update_exports = /* @__PURE__ */ __exportAll({
|
|
149
148
|
resolveMatrixConfigFieldPath: () => resolveMatrixConfigFieldPath,
|
|
150
149
|
resolveMatrixConfigPath: () => resolveMatrixConfigPath,
|
|
@@ -228,8 +227,7 @@ function updateMatrixAccountConfig(cfg, accountId, patch) {
|
|
|
228
227
|
}
|
|
229
228
|
};
|
|
230
229
|
}
|
|
231
|
-
|
|
232
|
-
//#region extensions/matrix/src/matrix/profile.ts
|
|
230
|
+
// extensions/matrix/src/matrix/profile.ts
|
|
233
231
|
var profile_exports = /* @__PURE__ */ __exportAll({
|
|
234
232
|
isSupportedMatrixAvatarSource: () => isSupportedMatrixAvatarSource,
|
|
235
233
|
syncMatrixOwnProfile: () => syncMatrixOwnProfile
|
|
@@ -293,8 +291,7 @@ async function syncMatrixOwnProfile(params) {
|
|
|
293
291
|
...avatar
|
|
294
292
|
};
|
|
295
293
|
}
|
|
296
|
-
|
|
297
|
-
//#region extensions/matrix/src/setup-contract.ts
|
|
294
|
+
// extensions/matrix/src/setup-contract.ts
|
|
298
295
|
const matrixAuthBootstrapKeys = [
|
|
299
296
|
"homeserver",
|
|
300
297
|
"userId",
|
|
@@ -346,8 +343,7 @@ function resolveSingleAccountPromotionTarget(params) {
|
|
|
346
343
|
}
|
|
347
344
|
return DEFAULT_ACCOUNT_ID$2;
|
|
348
345
|
}
|
|
349
|
-
|
|
350
|
-
//#region extensions/matrix/src/setup-config.ts
|
|
346
|
+
// extensions/matrix/src/setup-config.ts
|
|
351
347
|
const channel$1 = "matrix";
|
|
352
348
|
const COMMON_SINGLE_ACCOUNT_KEYS_TO_MOVE = /* @__PURE__ */ new Set([
|
|
353
349
|
"name",
|
|
@@ -458,8 +454,7 @@ function applyMatrixSetupAccountConfig(params) {
|
|
|
458
454
|
initialSyncLimit: input.initialSyncLimit
|
|
459
455
|
});
|
|
460
456
|
}
|
|
461
|
-
|
|
462
|
-
//#region extensions/matrix/src/setup-dm-policy.ts
|
|
457
|
+
// extensions/matrix/src/setup-dm-policy.ts
|
|
463
458
|
function resolveMatrixSetupDmAllowFrom(policy, allowFrom) {
|
|
464
459
|
if (policy === "open") return addWildcardAllowFrom(allowFrom);
|
|
465
460
|
return normalizeAllowFromEntries(allowFrom ?? []).filter((entry) => entry !== "*");
|
|
@@ -500,8 +495,7 @@ function createMatrixSetupDmPolicy(promptAllowFrom) {
|
|
|
500
495
|
promptAllowFrom
|
|
501
496
|
});
|
|
502
497
|
}
|
|
503
|
-
|
|
504
|
-
//#region extensions/matrix/src/setup-core.ts
|
|
498
|
+
// extensions/matrix/src/setup-core.ts
|
|
505
499
|
const channel = "matrix";
|
|
506
500
|
function resolveMatrixSetupAccountId(params) {
|
|
507
501
|
return normalizeAccountId$1(params.accountId?.trim() || params.name?.trim() || DEFAULT_ACCOUNT_ID$1);
|
|
@@ -529,7 +523,7 @@ function createMatrixSetupWizardProxy(loadWizardModule) {
|
|
|
529
523
|
};
|
|
530
524
|
}
|
|
531
525
|
const finishMatrixSetupAfterConfigWrite = async ({ previousCfg, cfg, accountId, runtime }) => {
|
|
532
|
-
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-
|
|
526
|
+
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-DCCxNvFW.mjs");
|
|
533
527
|
await runMatrixSetupBootstrapAfterConfigWrite({
|
|
534
528
|
previousCfg,
|
|
535
529
|
cfg,
|
|
@@ -643,5 +637,4 @@ const matrixSetupContract = defineChannelSetupContract({
|
|
|
643
637
|
},
|
|
644
638
|
legacyAdapter: matrixSetupAdapter
|
|
645
639
|
});
|
|
646
|
-
//#endregion
|
|
647
640
|
export { resolveMatrixAccount as _, createMatrixSetupDmPolicy as a, resolveSingleAccountPromotionTarget as c, syncMatrixOwnProfile as d, config_update_exports as f, resolveDefaultMatrixAccountId as g, resolveConfiguredMatrixBotUserIds as h, matrixSetupContract as i, singleAccountKeysToMove as l, listMatrixAccountIds as m, finishMatrixSetupAfterConfigWrite as n, moveSingleMatrixAccountConfigToNamedAccount as o, updateMatrixAccountConfig as p, matrixSetupAdapter as r, namedAccountPromotionKeys as s, createMatrixSetupWizardProxy as t, profile_exports as u, resolveMatrixAccountAsync as v };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
|
|
2
|
+
import os from "node:os";
|
|
3
|
+
// extensions/matrix/src/matrix/sqlite-state.ts
|
|
4
|
+
function resolveStateDirOverride(options) {
|
|
5
|
+
if (!options) return;
|
|
6
|
+
return options.stateDir || getMatrixRuntime().state.resolveStateDir(options.env ?? process.env, os.homedir);
|
|
7
|
+
}
|
|
8
|
+
function resolveMatrixSqliteStateKey(options) {
|
|
9
|
+
return resolveStateDirOverride(options) ?? "";
|
|
10
|
+
}
|
|
11
|
+
function resolveMatrixSqliteStateEnv(options) {
|
|
12
|
+
const stateDir = resolveStateDirOverride(options);
|
|
13
|
+
if (!stateDir) return options?.env;
|
|
14
|
+
return {
|
|
15
|
+
...options?.env ?? process.env,
|
|
16
|
+
OPENCLAW_STATE_DIR: stateDir
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
async function updateMatrixKeyedState(store, key, update, onUndefined = "keep") {
|
|
20
|
+
let observation = await store.observe(key);
|
|
21
|
+
for (;;) {
|
|
22
|
+
const value = update(observation.value);
|
|
23
|
+
if (value === void 0 && onUndefined === "skip") return false;
|
|
24
|
+
const result = await store.compareAndApply(key, observation.comparison, value === void 0 ? {
|
|
25
|
+
operation: "update",
|
|
26
|
+
action: "keep"
|
|
27
|
+
} : {
|
|
28
|
+
operation: "update",
|
|
29
|
+
action: "set",
|
|
30
|
+
value
|
|
31
|
+
});
|
|
32
|
+
if (result.status !== "conflict") return true;
|
|
33
|
+
observation = result.current;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export { resolveMatrixSqliteStateKey as n, updateMatrixKeyedState as r, resolveMatrixSqliteStateEnv as t };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
|
|
2
|
+
import { r as assertMatrixSupportedStateFile } from "./retired-state-BsxdpJNk.mjs";
|
|
3
|
+
import { t as resolveMatrixSqliteStateEnv } from "./sqlite-state-D6Zpz1q1.mjs";
|
|
4
|
+
import { o as resolveMatrixStoragePaths, r as recordCurrentStorageMetaDeviceId } from "./storage-CCarF_gm.mjs";
|
|
4
5
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
5
6
|
import path from "node:path";
|
|
6
7
|
import { resolveDateTimestampMs } from "openclaw/plugin-sdk/number-runtime";
|
|
7
|
-
|
|
8
|
+
// extensions/matrix/src/matrix/monitor/startup-verification.ts
|
|
8
9
|
const STARTUP_VERIFICATION_STATE_FILENAME = "startup-verification.json";
|
|
9
10
|
const STARTUP_VERIFICATION_NAMESPACE = "startup-verification";
|
|
10
11
|
const STARTUP_VERIFICATION_MAX_ENTRIES = 1e3;
|
|
@@ -97,5 +98,4 @@ async function ensureMatrixStartupVerification(params) {
|
|
|
97
98
|
};
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
|
-
//#endregion
|
|
101
101
|
export { ensureMatrixStartupVerification };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as resolveMatrixStateLayoutChildDepth } from "./storage-paths-
|
|
1
|
+
import { c as resolveMatrixStateLayoutChildDepth } from "./storage-paths-e_Vq6cvw.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { hasNodeErrorCode } from "@openclaw/fs-safe/path";
|
|
4
4
|
import { walkDirectory } from "@openclaw/fs-safe/walk";
|
|
5
|
-
|
|
5
|
+
// extensions/matrix/src/matrix/state-layout-walk.ts
|
|
6
6
|
/** Traverse only shipped Matrix layouts; archives and unrelated descendants stay unopened. */
|
|
7
7
|
async function walkMatrixStateFiles(stateDir, includeFile, stateRootDepths = []) {
|
|
8
8
|
const matrixRoot = path.resolve(stateDir, "matrix");
|
|
@@ -23,5 +23,4 @@ async function walkMatrixStateFiles(stateDir, includeFile, stateRootDepths = [])
|
|
|
23
23
|
failedDirs: result.failedDirs.filter((failure) => failure.path !== matrixRoot || !hasNodeErrorCode(failure.error, "ENOENT"))
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { walkMatrixStateFiles as t };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
2
|
-
import { n as isMatrixActiveTokenRootDirectory, r as resolveMatrixAccountStorageRoot } from "./storage-paths-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
|
|
2
|
+
import { n as isMatrixActiveTokenRootDirectory, r as resolveMatrixAccountStorageRoot } from "./storage-paths-e_Vq6cvw.mjs";
|
|
3
|
+
import { i as assertMatrixSupportedStateRoot, r as assertMatrixSupportedStateFile } from "./retired-state-BsxdpJNk.mjs";
|
|
4
|
+
import { r as updateMatrixKeyedState, t as resolveMatrixSqliteStateEnv } from "./sqlite-state-D6Zpz1q1.mjs";
|
|
5
|
+
import { n as MATRIX_RECOVERY_KEY_FILENAME, s as scoreMatrixCryptoStateInStore, t as MATRIX_IDB_SNAPSHOT_FILENAME } from "./crypto-state-store-CzAmeC_Z.mjs";
|
|
5
6
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
6
7
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
8
|
import path from "node:path";
|
|
8
9
|
import fs from "node:fs";
|
|
9
10
|
import os from "node:os";
|
|
10
11
|
import { readDirectoryEntriesSync } from "openclaw/plugin-sdk/path-existence-runtime";
|
|
11
|
-
|
|
12
|
+
// extensions/matrix/src/matrix/client/storage-metadata.ts
|
|
12
13
|
const STORAGE_META_NAMESPACE = "storage-meta";
|
|
13
14
|
const STORAGE_META_STATE_KEY = "current";
|
|
14
15
|
const STORAGE_META_MAX_ENTRIES = 10;
|
|
@@ -36,8 +37,7 @@ function normalizeMatrixStorageMetadata(value) {
|
|
|
36
37
|
if (value.currentTokenStateClaimed === true) metadata.currentTokenStateClaimed = true;
|
|
37
38
|
return Object.keys(metadata).length > 0 ? metadata : null;
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
-
//#region extensions/matrix/src/matrix/client/storage.ts
|
|
40
|
+
// extensions/matrix/src/matrix/client/storage.ts
|
|
41
41
|
const DEFAULT_ACCOUNT_KEY = "default";
|
|
42
42
|
const STORAGE_META_FILENAME = "storage-meta.json";
|
|
43
43
|
function openStorageMetaStore(rootDir) {
|
|
@@ -175,8 +175,8 @@ async function maybeMigrateLegacyStorage({ storagePaths }) {
|
|
|
175
175
|
const { rootDir, storagePath } = storagePaths;
|
|
176
176
|
await assertMatrixSupportedStateRoot(rootDir);
|
|
177
177
|
if (!fs.existsSync(storagePath)) return;
|
|
178
|
-
const syncCache = await import("./sync-cache-state-
|
|
179
|
-
const { Utf8InputError } = await import("./runtime-doctor-migrations-
|
|
178
|
+
const syncCache = await import("./sync-cache-state-BMvqW4Ii.mjs").then((n) => n.o);
|
|
179
|
+
const { Utf8InputError } = await import("./runtime-doctor-migrations-CSvRANPN.mjs").then((n) => n.t);
|
|
180
180
|
const logger = getMatrixRuntime().logging.getChildLogger({ module: "matrix-storage" });
|
|
181
181
|
let persisted;
|
|
182
182
|
try {
|
|
@@ -272,5 +272,4 @@ async function repairCurrentTokenStorageMetaDeviceId(params) {
|
|
|
272
272
|
deviceId
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
//#endregion
|
|
276
275
|
export { resolveMatrixStateFilePath as a, repairCurrentTokenStorageMetaDeviceId as i, maybeMigrateLegacyStorage as n, resolveMatrixStoragePaths as o, recordCurrentStorageMetaDeviceId as r, writeStorageMeta as s, claimCurrentTokenStorageState as t };
|
|
@@ -2,7 +2,7 @@ import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/acco
|
|
|
2
2
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import crypto from "node:crypto";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
|
|
5
|
+
// extensions/matrix/src/storage-paths.ts
|
|
6
6
|
const MATRIX_TOKEN_HASH_DIRECTORY_PATTERN = /^[a-f0-9]{16}$/u;
|
|
7
7
|
const MATRIX_SERVER_USER_DIRECTORY_PATTERN = /^.+__.+$/u;
|
|
8
8
|
function isMatrixActiveTokenRootDirectory(name) {
|
|
@@ -49,5 +49,4 @@ function resolveMatrixAccountStorageRoot(params) {
|
|
|
49
49
|
tokenHash
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { resolveMatrixCredentialsFilename as a, resolveMatrixStateLayoutChildDepth as c, resolveMatrixCredentialsDir as i, sanitizeMatrixPathSegment as l, isMatrixActiveTokenRootDirectory as n, resolveMatrixCredentialsPath as o, resolveMatrixAccountStorageRoot as r, resolveMatrixHomeserverKey as s, hashMatrixAccessToken as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as listBindingsForAccount, i as listAllBindings, n as getMatrixThreadBindingManager, s as resolveBindingKey } from "./thread-bindings-shared-
|
|
1
|
+
import { a as listBindingsForAccount, i as listAllBindings, n as getMatrixThreadBindingManager, s as resolveBindingKey } from "./thread-bindings-shared-DEAGGuDA.mjs";
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { getSessionBindingService } from "openclaw/plugin-sdk/conversation-binding-runtime";
|
|
4
|
-
|
|
4
|
+
// extensions/matrix/src/matrix/subagent-hooks.ts
|
|
5
5
|
async function handleMatrixSubagentEnded(event) {
|
|
6
6
|
const accountId = normalizeOptionalString(event.accountId) || void 0;
|
|
7
7
|
const matching = (accountId ? listBindingsForAccount(accountId) : listAllBindings()).filter((entry) => entry.targetSessionKey === event.targetSessionKey && entry.targetKind === "subagent");
|
|
@@ -49,5 +49,4 @@ function handleMatrixSubagentDeliveryTarget(event) {
|
|
|
49
49
|
...threadId ? { threadId } : {}
|
|
50
50
|
} };
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { handleMatrixSubagentDeliveryTarget, handleMatrixSubagentEnded };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { n as __exportAll } from "./runtime-doctor-migrations-
|
|
2
|
-
import {
|
|
1
|
+
import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
|
|
2
|
+
import { c as readMatrixStateChunks, l as writeMatrixStateChunks, o as chunkMatrixStateJson } from "./retired-state-BsxdpJNk.mjs";
|
|
3
|
+
import { t as resolveMatrixSqliteStateEnv } from "./sqlite-state-D6Zpz1q1.mjs";
|
|
3
4
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
5
|
import { randomUUID } from "node:crypto";
|
|
5
6
|
import path from "node:path";
|
|
@@ -7,7 +8,7 @@ import { asSafeIntegerInRange } from "openclaw/plugin-sdk/number-runtime";
|
|
|
7
8
|
import { sha256Hex } from "openclaw/plugin-sdk/node-crypto-runtime";
|
|
8
9
|
import fs from "node:fs/promises";
|
|
9
10
|
import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
|
|
10
|
-
|
|
11
|
+
// extensions/matrix/src/matrix/client/sync-cache-state.ts
|
|
11
12
|
var sync_cache_state_exports = /* @__PURE__ */ __exportAll({
|
|
12
13
|
MATRIX_SYNC_CACHE_VERSION: () => 1,
|
|
13
14
|
deleteMatrixSyncCacheStateFromStore: () => deleteMatrixSyncCacheStateFromStore,
|
|
@@ -127,7 +128,7 @@ function buildSyncCacheRows(payload) {
|
|
|
127
128
|
};
|
|
128
129
|
}
|
|
129
130
|
async function readLegacyMatrixSyncCacheState(storageRootDir) {
|
|
130
|
-
const { decodeUtf8Input, Utf8InputError } = await import("./runtime-doctor-migrations-
|
|
131
|
+
const { decodeUtf8Input, Utf8InputError } = await import("./runtime-doctor-migrations-CSvRANPN.mjs").then((n) => n.t);
|
|
131
132
|
try {
|
|
132
133
|
const raw = decodeUtf8Input(await fs.readFile(resolveLegacySyncCachePath(storageRootDir)), "Legacy Matrix sync cache");
|
|
133
134
|
const persisted = normalizeLegacyPersistedStore(JSON.parse(raw));
|
|
@@ -161,5 +162,4 @@ async function deleteMatrixSyncCacheStateFromStore(params) {
|
|
|
161
162
|
await fs.rm(resolveLegacySyncCachePath(storageRootDir), { force: true }).catch(() => void 0);
|
|
162
163
|
});
|
|
163
164
|
}
|
|
164
|
-
//#endregion
|
|
165
165
|
export { readPersistedStoreFromStore as a, readLegacyMatrixSyncCacheState as i, hasMatrixSyncCacheStateInStore as n, sync_cache_state_exports as o, openMatrixSyncCacheStoreOptions as r, writeMatrixSyncCacheStateToStore as s, deleteMatrixSyncCacheStateFromStore as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// extensions/matrix/src/matrix/sync-state.ts
|
|
2
2
|
function isMatrixReadySyncState(state) {
|
|
3
3
|
return state === "PREPARED" || state === "SYNCING" || state === "CATCHUP";
|
|
4
4
|
}
|
|
@@ -8,5 +8,4 @@ function isMatrixDisconnectedSyncState(state) {
|
|
|
8
8
|
function isMatrixTerminalSyncState(state) {
|
|
9
9
|
return state === "STOPPED";
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { isMatrixReadySyncState as n, isMatrixTerminalSyncState as r, isMatrixDisconnectedSyncState as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
|
-
|
|
2
|
+
// extensions/matrix/src/matrix/target-ids.ts
|
|
3
3
|
const MATRIX_PREFIX = "matrix:";
|
|
4
4
|
const ROOM_PREFIX = "room:";
|
|
5
5
|
const CHANNEL_PREFIX = "channel:";
|
|
@@ -97,5 +97,4 @@ function resolveMatrixDirectUserId(params) {
|
|
|
97
97
|
const userId = stripKnownPrefixes(params.from ?? "", [MATRIX_PREFIX, USER_PREFIX]);
|
|
98
98
|
return isMatrixQualifiedUserId(userId) ? userId : void 0;
|
|
99
99
|
}
|
|
100
|
-
//#endregion
|
|
101
100
|
export { normalizeMatrixResolvableTarget as a, normalizeMatrixMessagingTarget as i, isMatrixQualifiedUserId as n, resolveMatrixDirectUserId as o, isMatrixRoomId as r, resolveMatrixTargetIdentity as s, isMatrixInviteAutoJoinTarget as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
2
|
import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
|
|
3
|
-
|
|
3
|
+
// extensions/matrix/src/matrix/monitor/task-runner.ts
|
|
4
4
|
const monitorTaskSignal = new AsyncLocalStorage();
|
|
5
5
|
const MATRIX_MONITOR_IDLE_TIMEOUT_MS = 3e4;
|
|
6
6
|
function getMatrixMonitorTaskSignal() {
|
|
@@ -48,5 +48,4 @@ function createMatrixMonitorTaskRunner(params) {
|
|
|
48
48
|
waitForIdle
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
//#endregion
|
|
52
51
|
export { getMatrixMonitorTaskSignal as n, createMatrixMonitorTaskRunner as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as resolveMatrixTargetIdentity } from "./target-ids-
|
|
1
|
+
import { s as resolveMatrixTargetIdentity } from "./target-ids-DltG_ZHJ.mjs";
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
|
-
|
|
3
|
+
// extensions/matrix/src/thread-binding-api.ts
|
|
4
4
|
const defaultTopLevelPlacement = "child";
|
|
5
5
|
function resolveMatrixInboundConversation(params) {
|
|
6
6
|
const rawTarget = params.to?.trim() || params.conversationId?.trim() || "";
|
|
@@ -13,5 +13,4 @@ function resolveMatrixInboundConversation(params) {
|
|
|
13
13
|
};
|
|
14
14
|
return parentConversationId ? { conversationId: parentConversationId } : null;
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { resolveMatrixInboundConversation as n, defaultTopLevelPlacement as t };
|