@openclaw/matrix 2026.10.2 → 2026.10.5-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-selection-BDeeqwwR.mjs → account-selection-Bs_jCAaG.mjs} +3 -5
- package/dist/.setup/{approval-handler.runtime-QkHLH2az.mjs → approval-handler.runtime-rxLn8CbP.mjs} +60 -83
- package/dist/.setup/{channel-CeRXEAEP.mjs → channel-BcwGspPw.mjs} +92 -120
- package/dist/.setup/{channel.runtime-DBQA2y1F.mjs → channel.runtime-CUc6rbu1.mjs} +23 -18
- package/dist/.setup/{channel.setup-DC2t7_PK.mjs → channel.setup-CwuYD_CT.mjs} +2 -3
- package/dist/.setup/{cli-Be8tdNw8.mjs → cli-mbL9jCro.mjs} +80 -120
- package/dist/.setup/{cli-metadata-CtcjBFhc.mjs → cli-metadata-6MOGuyHq.mjs} +1 -1
- package/dist/.setup/{client-DY3HExqI.mjs → client-BlTvpEWC.mjs} +2 -2
- package/dist/.setup/{client-bootstrap-CZvJjr29.mjs → client-bootstrap-D05xy1HB.mjs} +2 -3
- package/dist/.setup/{client-support-D7BlioUb.mjs → client-support-D-xHScuo.mjs} +1 -1
- package/dist/.setup/{client-kmih04ng.mjs → client-vPPbaxNp.mjs} +14 -24
- package/dist/.setup/{create-client-CbJVyFDy.mjs → create-client-CroC4BVc.mjs} +4 -4
- package/dist/.setup/{credentials-C2dvc_kB.mjs → credentials-Bf9PQ7xs.mjs} +4 -18
- package/dist/.setup/{crypto-runtime-B2AjWo-i.mjs → crypto-runtime-CpJ0b7vY.mjs} +80 -123
- package/dist/.setup/{deps-CFNl7tQo.mjs → deps-L_1bUAGL.mjs} +20 -37
- package/dist/.setup/{direct-management-DJtQhLKH.mjs → direct-management-B3wYhx_M.mjs} +25 -51
- package/dist/.setup/{directory-live-DW5UykLL.mjs → directory-live-B1WbfSHo.mjs} +3 -3
- package/dist/.setup/{draft-stream-B87DfA6a.mjs → draft-stream-Bdrh7dRt.mjs} +2 -3
- package/dist/.setup/{encryption-guidance-BEjKbiMR.mjs → encryption-guidance-D5_IsDIy.mjs} +1 -1
- package/dist/.setup/{env-vars-dGqak9dN.mjs → env-vars-aEBngJPa.mjs} +2 -17
- package/dist/.setup/{event-helpers-CspuhE9k.mjs → event-helpers-CxNgMQqH.mjs} +5 -7
- package/dist/.setup/{exec-approvals-BLDAMyHs.mjs → exec-approvals-BgNWWJg1.mjs} +6 -12
- package/dist/.setup/{file-sync-store-Clc9iEdn.mjs → file-sync-store-BdKx_gMi.mjs} +2 -5
- package/dist/.setup/{http-client-DfJY5Ck0.mjs → http-client-ByR4STVQ.mjs} +55 -59
- package/dist/.setup/{messages-uCbwLRKS.mjs → messages-B1CZqU8u.mjs} +4 -16
- package/dist/.setup/{monitor-skIntQVG.mjs → monitor-Dk_fQL1k.mjs} +176 -232
- package/dist/.setup/{onboarding-Cm_tOJxs.mjs → onboarding-CrSexor_.mjs} +33 -50
- package/dist/.setup/{outbound-CqQou3ny.mjs → outbound-LR3SqPIq.mjs} +2 -2
- package/dist/.setup/{profile-update-C1n8SRqH.mjs → profile-update-C7bjaGR6.mjs} +2 -3
- package/dist/.setup/{reaction-events-Cqq46xsG.mjs → reaction-events-CTSvOlXO.mjs} +4 -4
- package/dist/.setup/{resolve-targets-DFeU1Ww6.mjs → resolve-targets-BVVbbvP6.mjs} +15 -21
- package/dist/.setup/{retired-state-BXUQ2I-C.mjs → retired-state-DW5pLH05.mjs} +22 -3
- package/dist/.setup/{room-info-BPMbwe8I.mjs → room-info-9Uqlpt1V.mjs} +4 -4
- package/dist/.setup/{sdk-CgQGkCsS.mjs → sdk-Cfc6m7fY.mjs} +115 -195
- package/dist/.setup/{secret-contract-JlB6VmI3.mjs → secret-contract-DSBRvhdZ.mjs} +1 -1
- package/dist/.setup/{secret-contract-api-B-iJoQEv.mjs → secret-contract-api-DzEJ-X7n.mjs} +1 -1
- package/dist/.setup/{send-B1Y2L4wj.mjs → send-LCOuTVc1.mjs} +10 -30
- package/dist/.setup/{setup-bootstrap-UNIGyKnk.mjs → setup-bootstrap-CV-hHBXu.mjs} +2 -2
- package/dist/.setup/setup-core-CKnNTfgD.mjs +673 -0
- package/dist/.setup/{setup-plugin-api-BRs9bcp4.mjs → setup-plugin-api-BDAYk1a5.mjs} +1 -1
- package/dist/.setup/{startup-verification-D00eUt74.mjs → startup-verification-CgfUb4yJ.mjs} +3 -3
- package/dist/.setup/{storage-D7agewjH.mjs → storage-DkC6bHgA.mjs} +24 -49
- package/dist/.setup/{subagent-hooks-D5kd_kzN.mjs → subagent-hooks-D8jyeQsO.mjs} +1 -1
- package/dist/.setup/{sync-cache-state-C2z64uyk.mjs → sync-cache-state-D4G-fi3t.mjs} +20 -33
- package/dist/.setup/{target-ids-Nwx7cMVE.mjs → target-ids-HhcaKX1n.mjs} +15 -1
- package/dist/.setup/{thread-binding-api-DRMC62cs.mjs → thread-binding-api-BvuaKpd0.mjs} +1 -1
- package/dist/.setup/{thread-bindings-DveHVZqN.mjs → thread-bindings-CT4P-OSZ.mjs} +38 -58
- package/dist/.setup/{thread-bindings-shared-hxKkYC1W.mjs → thread-bindings-shared-CbsFNbAY.mjs} +19 -37
- package/dist/.setup/{tool-actions-BqlK2ilM.mjs → tool-actions-DAp6_XSJ.mjs} +17 -18
- package/dist/.setup/{verification-kMlFYUn0.mjs → verification-B3VswneT.mjs} +15 -21
- package/dist/api.js +7 -7
- 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 +13 -22
- package/dist/helper-api.js +2 -2
- package/dist/index.js +1 -1
- package/dist/plugin-entry.handlers.runtime.js +2 -2
- package/dist/runtime-api.js +4 -4
- package/dist/secret-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/setup-entry.js +2 -2
- package/dist/setup-plugin-api.js +1 -1
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/thread-binding-api.js +1 -1
- package/dist/thread-bindings-runtime.js +1 -1
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/package.json +1 -1
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm.d.ts +129 -129
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.cjs +688 -688
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.js +512 -512
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm +0 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm.d.ts +84 -84
- package/node_modules/@openclaw/fs-safe/CHANGELOG.md +35 -0
- package/node_modules/@openclaw/fs-safe/README.md +1 -1
- package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/advanced.js +1 -1
- package/node_modules/@openclaw/fs-safe/dist/archive-durability.js +1 -1
- package/node_modules/@openclaw/fs-safe/dist/archive-merge.js +4 -4
- package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-read.js +5 -4
- package/node_modules/@openclaw/fs-safe/dist/archive-staging.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/archive-staging.js +22 -38
- package/node_modules/@openclaw/fs-safe/dist/copy-path-admission.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-path-admission.js +117 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-root-file-sync.d.ts +8 -5
- package/node_modules/@openclaw/fs-safe/dist/copy-root-file-sync.js +27 -50
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +57 -11
- package/node_modules/@openclaw/fs-safe/dist/guarded-mutation.js +5 -5
- package/node_modules/@openclaw/fs-safe/dist/guest-native-python.js +52 -5
- package/node_modules/@openclaw/fs-safe/dist/guest.js +1 -1
- package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/native-operations.d.ts +0 -1
- package/node_modules/@openclaw/fs-safe/dist/native-operations.js +22 -26
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.js +5 -1
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +4 -1
- package/node_modules/@openclaw/fs-safe/dist/permission-exec.js +2 -1
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.d.ts +6 -1
- package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +2 -2
- package/node_modules/@openclaw/fs-safe/dist/publish-file.js +34 -7
- package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.js +1 -4
- package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +6 -0
- package/node_modules/@openclaw/fs-safe/dist/root-create-input.d.ts +15 -1
- package/node_modules/@openclaw/fs-safe/dist/root-create-input.js +4 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.js +1 -1
- package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +0 -1
- package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +6 -12
- package/node_modules/@openclaw/fs-safe/dist/root-impl.js +15 -15
- package/node_modules/@openclaw/fs-safe/dist/root-paths.js +1 -1
- package/node_modules/@openclaw/fs-safe/dist/root-walk.js +4 -4
- package/node_modules/@openclaw/fs-safe/dist/root-write-verification.d.ts +10 -1
- package/node_modules/@openclaw/fs-safe/dist/root-write-verification.js +20 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-temp-dir.js +19 -7
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.js +25 -3
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-retained.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-retained.js +187 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock.js +15 -1
- package/node_modules/@openclaw/fs-safe/dist/temp-directory-diagnostics.d.ts +10 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-directory-diagnostics.js +29 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-target.js +1 -1
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.js +6 -6
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.d.ts +4 -4
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.js +17 -16
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-descriptor.js +20 -28
- package/node_modules/@openclaw/fs-safe/dist/walk.js +2 -13
- package/node_modules/@openclaw/fs-safe/dist/watch-native.d.ts +2 -2
- package/node_modules/@openclaw/fs-safe/dist/watch-native.js +3 -1
- package/node_modules/@openclaw/fs-safe/dist/watch-rescan.js +3 -9
- package/node_modules/@openclaw/fs-safe/dist/watch.js +2 -3
- package/node_modules/@openclaw/fs-safe/docs/advanced.md +1 -1
- package/node_modules/@openclaw/fs-safe/docs/archive.md +3 -0
- package/node_modules/@openclaw/fs-safe/docs/atomic.md +11 -3
- package/node_modules/@openclaw/fs-safe/docs/contributing.md +1 -1
- package/node_modules/@openclaw/fs-safe/docs/copy.md +48 -0
- package/node_modules/@openclaw/fs-safe/docs/guest.md +21 -4
- package/node_modules/@openclaw/fs-safe/docs/path-scope.md +4 -0
- package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +46 -8
- package/node_modules/@openclaw/fs-safe/docs/temp.md +12 -0
- package/node_modules/@openclaw/fs-safe/docs/watch.md +3 -2
- package/node_modules/@openclaw/fs-safe/package.json +15 -15
- package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
- package/node_modules/matrix-widget-api/lib/interfaces/RtcLivekitActions.d.ts +6 -12
- package/node_modules/matrix-widget-api/lib/interfaces/RtcLivekitActions.js.map +1 -1
- package/node_modules/matrix-widget-api/package.json +1 -1
- package/node_modules/matrix-widget-api/src/interfaces/RtcLivekitActions.ts +6 -13
- package/node_modules/music-metadata/README.md +35 -32
- package/node_modules/music-metadata/lib/ParserFactory.d.ts +1 -1
- package/node_modules/music-metadata/lib/ParserFactory.js +17 -13
- package/node_modules/music-metadata/lib/aiff/AiffParser.js +19 -12
- package/node_modules/music-metadata/lib/aiff/AiffToken.d.ts +1 -1
- package/node_modules/music-metadata/lib/aiff/AiffToken.js +2 -1
- package/node_modules/music-metadata/lib/apev2/APEv2Parser.d.ts +4 -3
- package/node_modules/music-metadata/lib/apev2/APEv2Parser.js +59 -16
- package/node_modules/music-metadata/lib/apev2/APEv2TagMapper.js +1 -0
- package/node_modules/music-metadata/lib/apev2/APEv2Token.d.ts +1 -1
- package/node_modules/music-metadata/lib/apev2/APEv2Token.js +1 -1
- package/node_modules/music-metadata/lib/asf/AsfGuid.js +56 -50
- package/node_modules/music-metadata/lib/asf/AsfObject.d.ts +1 -1
- package/node_modules/music-metadata/lib/asf/AsfObject.js +3 -2
- package/node_modules/music-metadata/lib/asf/AsfParser.js +15 -7
- package/node_modules/music-metadata/lib/asf/AsfTagMapper.d.ts +3 -2
- package/node_modules/music-metadata/lib/asf/AsfTagMapper.js +21 -4
- package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.d.ts +1 -1
- package/node_modules/music-metadata/lib/common/CombinedTagMapper.d.ts +2 -2
- package/node_modules/music-metadata/lib/common/CombinedTagMapper.js +6 -6
- package/node_modules/music-metadata/lib/common/FourCC.js +3 -2
- package/node_modules/music-metadata/lib/common/GenericTagMapper.d.ts +1 -1
- package/node_modules/music-metadata/lib/common/GenericTagTypes.js +1 -1
- package/node_modules/music-metadata/lib/common/MetadataCollector.d.ts +3 -1
- package/node_modules/music-metadata/lib/common/MetadataCollector.js +28 -9
- package/node_modules/music-metadata/lib/common/Util.js +25 -17
- package/node_modules/music-metadata/lib/core.d.ts +4 -4
- package/node_modules/music-metadata/lib/core.js +18 -11
- package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.js +29 -16
- package/node_modules/music-metadata/lib/dsf/DsfChunk.d.ts +1 -1
- package/node_modules/music-metadata/lib/dsf/DsfParser.js +3 -5
- package/node_modules/music-metadata/lib/ebml/EbmlIterator.d.ts +1 -1
- package/node_modules/music-metadata/lib/ebml/EbmlIterator.js +35 -6
- package/node_modules/music-metadata/lib/ebml/types.d.ts +1 -1
- package/node_modules/music-metadata/lib/ebml/types.js +1 -1
- package/node_modules/music-metadata/lib/flac/FlacParser.d.ts +1 -1
- package/node_modules/music-metadata/lib/flac/FlacParser.js +6 -5
- package/node_modules/music-metadata/lib/flac/FlacToken.d.ts +1 -1
- package/node_modules/music-metadata/lib/flac/FlacToken.js +1 -1
- package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.d.ts +1 -1
- package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.js +212 -42
- package/node_modules/music-metadata/lib/id3v2/AbstractID3Parser.js +5 -5
- package/node_modules/music-metadata/lib/id3v2/FrameHeader.d.ts +1 -1
- package/node_modules/music-metadata/lib/id3v2/FrameHeader.js +8 -5
- package/node_modules/music-metadata/lib/id3v2/FrameParser.d.ts +2 -1
- package/node_modules/music-metadata/lib/id3v2/FrameParser.js +54 -23
- package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.d.ts +1 -1
- package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.js +1 -1
- package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.js +3 -3
- package/node_modules/music-metadata/lib/id3v2/ID3v2ChapterToken.js +2 -2
- package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.d.ts +1 -1
- package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js +32 -16
- package/node_modules/music-metadata/lib/id3v2/ID3v2Token.d.ts +2 -2
- package/node_modules/music-metadata/lib/id3v2/ID3v2Token.js +2 -3
- package/node_modules/music-metadata/lib/index.js +6 -3
- package/node_modules/music-metadata/lib/lrc/LyricsParser.js +3 -5
- package/node_modules/music-metadata/lib/matroska/MatroskaDtd.js +7 -3
- package/node_modules/music-metadata/lib/matroska/MatroskaParser.js +22 -11
- package/node_modules/music-metadata/lib/matroska/types.d.ts +2 -2
- package/node_modules/music-metadata/lib/mp4/Atom.d.ts +4 -3
- package/node_modules/music-metadata/lib/mp4/Atom.js +44 -11
- package/node_modules/music-metadata/lib/mp4/AtomToken.d.ts +1 -1
- package/node_modules/music-metadata/lib/mp4/AtomToken.js +30 -8
- package/node_modules/music-metadata/lib/mp4/MP4Parser.d.ts +2 -0
- package/node_modules/music-metadata/lib/mp4/MP4Parser.js +79 -54
- package/node_modules/music-metadata/lib/mp4/MP4TagMapper.d.ts +2 -2
- package/node_modules/music-metadata/lib/mpeg/MpegLoader.js +1 -1
- package/node_modules/music-metadata/lib/mpeg/MpegParser.js +41 -19
- package/node_modules/music-metadata/lib/mpeg/ReplayGainDataFormat.d.ts +2 -2
- package/node_modules/music-metadata/lib/mpeg/ReplayGainDataFormat.js +1 -1
- package/node_modules/music-metadata/lib/mpeg/XingTag.d.ts +1 -1
- package/node_modules/music-metadata/lib/musepack/MusepackParser.js +2 -2
- package/node_modules/music-metadata/lib/musepack/sv7/BitReader.js +1 -1
- package/node_modules/music-metadata/lib/musepack/sv7/MpcSv7Parser.js +4 -3
- package/node_modules/music-metadata/lib/musepack/sv7/StreamVersion7.js +3 -3
- package/node_modules/music-metadata/lib/musepack/sv8/MpcSv8Parser.js +7 -5
- package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.js +2 -2
- package/node_modules/music-metadata/lib/ogg/OggParser.js +23 -13
- package/node_modules/music-metadata/lib/ogg/OggToken.d.ts +2 -0
- package/node_modules/music-metadata/lib/ogg/OggToken.js +1 -1
- package/node_modules/music-metadata/lib/ogg/flac/FlacStream.d.ts +2 -2
- package/node_modules/music-metadata/lib/ogg/flac/FlacStream.js +2 -2
- package/node_modules/music-metadata/lib/ogg/opus/OpusStream.d.ts +2 -2
- package/node_modules/music-metadata/lib/ogg/opus/OpusStream.js +8 -4
- package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.d.ts +2 -2
- package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.js +2 -1
- package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.d.ts +2 -2
- package/node_modules/music-metadata/lib/ogg/vorbis/Vorbis.d.ts +1 -1
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.js +1 -1
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.d.ts +4 -3
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.js +16 -9
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.js +4 -0
- package/node_modules/music-metadata/lib/riff/RiffChunk.d.ts +3 -1
- package/node_modules/music-metadata/lib/riff/RiffChunk.js +3 -2
- package/node_modules/music-metadata/lib/riff/RiffInfoTagMap.d.ts +1 -1
- package/node_modules/music-metadata/lib/type.d.ts +3 -3
- package/node_modules/music-metadata/lib/type.js +1 -1
- package/node_modules/music-metadata/lib/wav/WaveChunk.d.ts +1 -1
- package/node_modules/music-metadata/lib/wav/WaveChunk.js +3 -2
- package/node_modules/music-metadata/lib/wav/WaveParser.d.ts +6 -2
- package/node_modules/music-metadata/lib/wav/WaveParser.js +75 -22
- package/node_modules/music-metadata/lib/wavpack/WavPackParser.js +22 -13
- package/node_modules/music-metadata/lib/wavpack/WavPackToken.js +3 -2
- package/node_modules/music-metadata/package.json +3 -2
- package/node_modules/uint8array-extras/index.d.ts +7 -7
- package/node_modules/uint8array-extras/index.js +27 -13
- package/node_modules/uint8array-extras/package.json +6 -6
- package/node_modules/uint8array-extras/readme.md +7 -7
- package/package.json +7 -7
- package/dist/.setup/accounts-C_r0UlEm.mjs +0 -138
- package/dist/.setup/config-update-CZndPxNd.mjs +0 -102
- package/dist/.setup/profile-DS0xdJAi.mjs +0 -80
- package/dist/.setup/setup-core-6DppLENo.mjs +0 -377
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.d.ts +0 -17
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.js +0 -66
- package/node_modules/@openclaw/fs-safe/dist/publish-file-native.d.ts +0 -4
- package/node_modules/@openclaw/fs-safe/dist/publish-file-native.js +0 -35
- package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.d.ts +0 -7
- package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.js +0 -16
- package/dist/.setup/{errors-DKVS3_DO.mjs → errors-Bw4EHwKX.mjs} +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { r as matrixSetupContract, t as createMatrixSetupWizardProxy } from "./setup-core-6DppLENo.mjs";
|
|
2
|
+
import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-CKnNTfgD.mjs";
|
|
4
3
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
5
4
|
import { createChannelConfigUiHints } from "openclaw/plugin-sdk/channel-core";
|
|
6
5
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -315,7 +314,7 @@ const matrixPluginBase = {
|
|
|
315
314
|
order: 70,
|
|
316
315
|
quickstartAllowFrom: true
|
|
317
316
|
},
|
|
318
|
-
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-
|
|
317
|
+
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-CrSexor_.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
|
|
319
318
|
setupContract: matrixSetupContract,
|
|
320
319
|
capabilities: {
|
|
321
320
|
chatTypes: [
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
|
|
2
2
|
import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-CKnNTfgD.mjs";
|
|
4
4
|
import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import { n as withResolvedActionClient } from "./client-DY3HExqI.mjs";
|
|
8
|
-
import { d as resolveMatrixAuthContext } from "./client-kmih04ng.mjs";
|
|
5
|
+
import { n as withResolvedActionClient } from "./client-BlTvpEWC.mjs";
|
|
6
|
+
import { d as resolveMatrixAuthContext } from "./client-vPPbaxNp.mjs";
|
|
9
7
|
import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Dm_YMVFT.mjs";
|
|
10
8
|
import { i as setMatrixConsoleLogging } from "./logger-CXQnpXCt.mjs";
|
|
11
9
|
import { r as setMatrixSdkLogMode } from "./logging-BKV8TYQq.mjs";
|
|
12
10
|
import { n as isOpenClawManagedMatrixDevice, r as summarizeMatrixDeviceHealth } from "./device-health-Be60VF1w.mjs";
|
|
13
|
-
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-
|
|
14
|
-
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-
|
|
15
|
-
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
11
|
+
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-C7bjaGR6.mjs";
|
|
12
|
+
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-B3VswneT.mjs";
|
|
16
13
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
17
14
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
18
15
|
import { parseStrictInteger, timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
@@ -136,6 +133,17 @@ function parseOptionalInt(value, fieldName, opts = {}) {
|
|
|
136
133
|
if (opts.min !== void 0 && parsed < opts.min) throw new Error(opts.min === 1 ? `${fieldName} must be a positive integer` : `${fieldName} must be a non-negative integer`);
|
|
137
134
|
return parsed;
|
|
138
135
|
}
|
|
136
|
+
async function runMatrixCliAccountCommand(options, config) {
|
|
137
|
+
const context = resolveMatrixCliAccountContext(options.account);
|
|
138
|
+
await runMatrixCliCommand(options, {
|
|
139
|
+
...config,
|
|
140
|
+
run: () => config.run(context),
|
|
141
|
+
onText: (result, verbose) => {
|
|
142
|
+
printAccountLabel(context.accountId);
|
|
143
|
+
config.onText(result, verbose, context.accountId);
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
139
147
|
async function runMatrixCliCommand(options, config) {
|
|
140
148
|
const verbose = options.verbose === true;
|
|
141
149
|
const json = options.json === true;
|
|
@@ -190,17 +198,6 @@ function sanitizeMatrixCliText(value) {
|
|
|
190
198
|
function isAnsiFinalByte(code) {
|
|
191
199
|
return code >= 64 && code <= 126;
|
|
192
200
|
}
|
|
193
|
-
function resolveBackupStatus(status) {
|
|
194
|
-
return {
|
|
195
|
-
serverVersion: status.backup?.serverVersion ?? status.backupVersion ?? null,
|
|
196
|
-
activeVersion: status.backup?.activeVersion ?? null,
|
|
197
|
-
trusted: status.backup?.trusted ?? null,
|
|
198
|
-
matchesDecryptionKey: status.backup?.matchesDecryptionKey ?? null,
|
|
199
|
-
decryptionKeyCached: status.backup?.decryptionKeyCached ?? null,
|
|
200
|
-
keyLoadAttempted: status.backup?.keyLoadAttempted ?? false,
|
|
201
|
-
keyLoadError: status.backup?.keyLoadError ?? null
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
201
|
function yesNoUnknown(value) {
|
|
205
202
|
return value === true ? "yes" : value === false ? "no" : "unknown";
|
|
206
203
|
}
|
|
@@ -217,12 +214,6 @@ function printVerificationIdentity(status) {
|
|
|
217
214
|
console.log(`User: ${formatMatrixCliText(status.userId)}`);
|
|
218
215
|
console.log(`Device: ${formatMatrixCliText(status.deviceId)}`);
|
|
219
216
|
}
|
|
220
|
-
function printVerificationBackupSummary(status) {
|
|
221
|
-
printBackupSummary(resolveBackupStatus(status));
|
|
222
|
-
}
|
|
223
|
-
function printVerificationBackupStatus(status) {
|
|
224
|
-
printBackupStatus(resolveBackupStatus(status));
|
|
225
|
-
}
|
|
226
217
|
function printVerificationTrustDiagnostics(status) {
|
|
227
218
|
console.log(`Locally trusted: ${status.localVerified ? "yes" : "no"}`);
|
|
228
219
|
console.log(`Cross-signing verified: ${status.crossSigningVerified ? "yes" : "no"}`);
|
|
@@ -274,7 +265,7 @@ function printBackupSummary(backup) {
|
|
|
274
265
|
if (backup.serverVersion) console.log(`Backup version: ${formatMatrixCliText(backup.serverVersion)}`);
|
|
275
266
|
}
|
|
276
267
|
function buildVerificationGuidance(status, accountId) {
|
|
277
|
-
const backup =
|
|
268
|
+
const backup = status.backup;
|
|
278
269
|
const nextSteps = /* @__PURE__ */ new Set();
|
|
279
270
|
if (!status.verified) {
|
|
280
271
|
if (status.recoveryKeyAccepted === true && status.backupUsable === true) {
|
|
@@ -312,7 +303,7 @@ function printGuidance(lines) {
|
|
|
312
303
|
function printVerificationStatus(status, verbose = false, accountId) {
|
|
313
304
|
console.log(`Verified by owner: ${status.verified ? "yes" : "no"}`);
|
|
314
305
|
if (status.serverDeviceKnown === false) console.log("Device issue: current Matrix device is missing from the homeserver device list");
|
|
315
|
-
const backup =
|
|
306
|
+
const backup = status.backup;
|
|
316
307
|
const backupIssue = resolveMatrixRoomKeyBackupIssue(backup);
|
|
317
308
|
printBackupSummary(backup);
|
|
318
309
|
if (backupIssue.message) console.log(`Backup issue: ${backupIssue.message}`);
|
|
@@ -405,7 +396,7 @@ async function addMatrixAccount(params) {
|
|
|
405
396
|
backupVersion: null
|
|
406
397
|
};
|
|
407
398
|
if (accountConfig.encryption === true) {
|
|
408
|
-
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-
|
|
399
|
+
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-CV-hHBXu.mjs");
|
|
409
400
|
verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
|
|
410
401
|
previousCfg: cfg,
|
|
411
402
|
cfg: updated,
|
|
@@ -545,28 +536,22 @@ function printMatrixOwnDevices(devices) {
|
|
|
545
536
|
function registerMatrixDeviceCommands(root) {
|
|
546
537
|
const devices = root.command("devices").description("Inspect and clean up Matrix devices");
|
|
547
538
|
devices.command("list").description("List server-side Matrix devices for this account").option("--account <id>", "Account ID (for multi-account setups)").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (options) => {
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
run: async () => await listMatrixOwnDevices({
|
|
539
|
+
await runMatrixCliAccountCommand(options, {
|
|
540
|
+
run: async ({ accountId, cfg }) => await listMatrixOwnDevices({
|
|
551
541
|
accountId,
|
|
552
542
|
cfg
|
|
553
543
|
}),
|
|
554
|
-
onText:
|
|
555
|
-
printAccountLabel(accountId);
|
|
556
|
-
printMatrixOwnDevices(result);
|
|
557
|
-
},
|
|
544
|
+
onText: printMatrixOwnDevices,
|
|
558
545
|
errorPrefix: "Device listing failed"
|
|
559
546
|
});
|
|
560
547
|
});
|
|
561
548
|
devices.command("prune-stale").description("Delete stale OpenClaw-managed devices for this account").option("--account <id>", "Account ID (for multi-account setups)").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (options) => {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
run: async () => await pruneMatrixStaleGatewayDevices({
|
|
549
|
+
await runMatrixCliAccountCommand(options, {
|
|
550
|
+
run: async ({ accountId, cfg }) => await pruneMatrixStaleGatewayDevices({
|
|
565
551
|
accountId,
|
|
566
552
|
cfg
|
|
567
553
|
}),
|
|
568
554
|
onText: (result, verbose) => {
|
|
569
|
-
printAccountLabel(accountId);
|
|
570
555
|
console.log(`Deleted stale OpenClaw devices: ${result.deletedDeviceIds.length ? result.deletedDeviceIds.map((deviceId) => formatMatrixCliText(deviceId)).join(", ") : "none"}`);
|
|
571
556
|
console.log(`Current device: ${formatMatrixCliText(result.currentDeviceId)}`);
|
|
572
557
|
console.log(`Remaining devices: ${result.remainingDevices.length}`);
|
|
@@ -583,8 +568,6 @@ function registerMatrixDeviceCommands(root) {
|
|
|
583
568
|
}
|
|
584
569
|
//#endregion
|
|
585
570
|
//#region extensions/matrix/src/cli-direct.ts
|
|
586
|
-
const loadMatrixActionClientModule = createLazyRuntimeModule(() => import("./client-DY3HExqI.mjs").then((n) => n.t));
|
|
587
|
-
const loadMatrixDirectManagementModule = createLazyRuntimeModule(() => import("./direct-management-DJtQhLKH.mjs").then((n) => n.t));
|
|
588
571
|
function printDirectRoomCandidate(room) {
|
|
589
572
|
const members = room.joinedMembers === null ? "unavailable" : room.joinedMembers.map((member) => formatMatrixCliText(member)).join(", ") || "none";
|
|
590
573
|
console.log(`- ${formatMatrixCliText(room.roomId)} [${room.source}] strict=${room.strict ? "yes" : "no"} joined=${members}`);
|
|
@@ -603,7 +586,7 @@ function printDirectRoomInspection(result) {
|
|
|
603
586
|
}
|
|
604
587
|
async function inspectMatrixDirectRoom(params) {
|
|
605
588
|
const cfg = getMatrixRuntime().config.current();
|
|
606
|
-
const [{ withResolvedActionClient }, { inspectMatrixDirectRooms }] = await Promise.all([
|
|
589
|
+
const [{ withResolvedActionClient }, { inspectMatrixDirectRooms }] = await Promise.all([import("./client-BlTvpEWC.mjs").then((n) => n.t), import("./direct-management-B3wYhx_M.mjs").then((n) => n.t)]);
|
|
607
590
|
return await withResolvedActionClient({
|
|
608
591
|
accountId: params.accountId,
|
|
609
592
|
cfg
|
|
@@ -621,7 +604,7 @@ async function repairMatrixDirectRoom(params) {
|
|
|
621
604
|
cfg,
|
|
622
605
|
accountId: params.accountId
|
|
623
606
|
});
|
|
624
|
-
const [{ withStartedActionClient }, { repairMatrixDirectRooms }] = await Promise.all([
|
|
607
|
+
const [{ withStartedActionClient }, { repairMatrixDirectRooms }] = await Promise.all([import("./client-BlTvpEWC.mjs").then((n) => n.t), import("./direct-management-B3wYhx_M.mjs").then((n) => n.t)]);
|
|
625
608
|
return await withStartedActionClient({
|
|
626
609
|
accountId: params.accountId,
|
|
627
610
|
cfg
|
|
@@ -659,7 +642,8 @@ function toCliDirectRoomInspection(accountId, inspection) {
|
|
|
659
642
|
}
|
|
660
643
|
function registerMatrixDirectCommands(root) {
|
|
661
644
|
const direct = root.command("direct").description("Inspect and repair Matrix direct-room state");
|
|
662
|
-
direct.command(
|
|
645
|
+
const command = (name, description) => direct.command(name).description(description).requiredOption("--user-id <id>", "Peer Matrix user ID").option("--account <id>", "Account ID (for multi-account setups)").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON");
|
|
646
|
+
command("inspect", "Inspect direct-room mappings for a Matrix user").action(async (options) => {
|
|
663
647
|
const accountId = resolveMatrixCliAccountContext(options.account).accountId;
|
|
664
648
|
await runMatrixCliCommand(options, {
|
|
665
649
|
run: async () => await inspectMatrixDirectRoom({
|
|
@@ -670,7 +654,7 @@ function registerMatrixDirectCommands(root) {
|
|
|
670
654
|
errorPrefix: "Direct room inspection failed"
|
|
671
655
|
});
|
|
672
656
|
});
|
|
673
|
-
|
|
657
|
+
command("repair", "Repair Matrix direct-room mappings for a Matrix user").action(async (options) => {
|
|
674
658
|
const accountId = resolveMatrixCliAccountContext(options.account).accountId;
|
|
675
659
|
await runMatrixCliCommand(options, {
|
|
676
660
|
run: async () => await repairMatrixDirectRoom({
|
|
@@ -694,16 +678,12 @@ function registerMatrixDirectCommands(root) {
|
|
|
694
678
|
//#endregion
|
|
695
679
|
//#region extensions/matrix/src/cli-encryption.ts
|
|
696
680
|
function isMatrixVerificationSetupComplete(status) {
|
|
697
|
-
return status.encryptionEnabled && status.verified && status.crossSigningVerified && status.signedByOwner && status.serverDeviceKnown === true && resolveMatrixRoomKeyBackupIssue(
|
|
681
|
+
return status.encryptionEnabled && status.verified && status.crossSigningVerified && status.signedByOwner && status.serverDeviceKnown === true && resolveMatrixRoomKeyBackupIssue(status.backup).code === "ok";
|
|
698
682
|
}
|
|
699
683
|
function buildNoopMatrixVerificationBootstrap(status) {
|
|
700
684
|
return {
|
|
701
685
|
success: true,
|
|
702
|
-
verification:
|
|
703
|
-
...status,
|
|
704
|
-
backup: resolveBackupStatus(status),
|
|
705
|
-
serverDeviceKnown: status.serverDeviceKnown ?? null
|
|
706
|
-
},
|
|
686
|
+
verification: status,
|
|
707
687
|
crossSigning: {
|
|
708
688
|
userId: status.userId,
|
|
709
689
|
masterKeyPublished: status.crossSigningVerified,
|
|
@@ -770,11 +750,11 @@ function printMatrixEncryptionSetupResult(result, verbose = false) {
|
|
|
770
750
|
console.log(`Bootstrap success: ${result.bootstrap.success ? "yes" : "no"}`);
|
|
771
751
|
if (result.bootstrap.error) console.log(`Bootstrap error: ${formatMatrixCliText(result.bootstrap.error)}`);
|
|
772
752
|
console.log(`Verified by owner: ${result.status.verified ? "yes" : "no"}`);
|
|
773
|
-
|
|
753
|
+
printBackupSummary(result.status.backup);
|
|
774
754
|
if (verbose) {
|
|
775
755
|
printVerificationIdentity(result.status);
|
|
776
756
|
printVerificationTrustDiagnostics(result.status);
|
|
777
|
-
|
|
757
|
+
printBackupStatus(result.status.backup);
|
|
778
758
|
console.log(`Recovery key stored: ${result.status.recoveryKeyStored ? "yes" : "no"}`);
|
|
779
759
|
printTimestamp("Recovery key created at", result.status.recoveryKeyCreatedAt);
|
|
780
760
|
console.log(`Pending verifications: ${result.status.pendingVerifications}`);
|
|
@@ -828,14 +808,12 @@ function registerMatrixProfileCommands(root) {
|
|
|
828
808
|
function registerMatrixVerificationBackupCommands(verify) {
|
|
829
809
|
const backup = verify.command("backup").description("Matrix room-key backup health and restore");
|
|
830
810
|
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) => {
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
run: async () => await getMatrixRoomKeyBackupStatus({
|
|
811
|
+
await runMatrixCliAccountCommand(options, {
|
|
812
|
+
run: async ({ accountId, cfg }) => await getMatrixRoomKeyBackupStatus({
|
|
834
813
|
accountId,
|
|
835
814
|
cfg
|
|
836
815
|
}),
|
|
837
|
-
onText: (status, verbose) => {
|
|
838
|
-
printAccountLabel(accountId);
|
|
816
|
+
onText: (status, verbose, accountId) => {
|
|
839
817
|
printBackupSummary(status);
|
|
840
818
|
if (verbose) printBackupStatus(status);
|
|
841
819
|
printBackupGuidance(status, accountId);
|
|
@@ -844,9 +822,8 @@ function registerMatrixVerificationBackupCommands(verify) {
|
|
|
844
822
|
});
|
|
845
823
|
});
|
|
846
824
|
backup.command("reset").description("Delete the current server backup and create a fresh room-key backup baseline, repairing secret storage if needed for a durable reset").option("--account <id>", "Account ID (for multi-account setups)").option("--yes", "Confirm destructive backup reset", false).option("--rotate-recovery-key", "Create a new Matrix recovery key for the fresh backup").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (options) => {
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
run: async () => {
|
|
825
|
+
await runMatrixCliAccountCommand(options, {
|
|
826
|
+
run: async ({ accountId, cfg }) => {
|
|
850
827
|
if (options.yes !== true) throw new Error(`Refusing to reset Matrix room-key backup without --yes. If you accept losing unrecoverable history, re-run ${formatMatrixCliCommand("verify backup reset --yes", accountId)}.`);
|
|
851
828
|
return await resetMatrixRoomKeyBackup({
|
|
852
829
|
accountId,
|
|
@@ -854,8 +831,7 @@ function registerMatrixVerificationBackupCommands(verify) {
|
|
|
854
831
|
rotateRecoveryKey: options.rotateRecoveryKey === true
|
|
855
832
|
});
|
|
856
833
|
},
|
|
857
|
-
onText: (result, verbose) => {
|
|
858
|
-
printAccountLabel(accountId);
|
|
834
|
+
onText: (result, verbose, accountId) => {
|
|
859
835
|
console.log(`Reset success: ${result.success ? "yes" : "no"}`);
|
|
860
836
|
if (result.error) console.log(`Error: ${formatMatrixCliText(result.error)}`);
|
|
861
837
|
console.log(`Previous backup version: ${formatMatrixCliText(result.previousVersion, "none")}`);
|
|
@@ -877,15 +853,13 @@ function registerMatrixVerificationBackupCommands(verify) {
|
|
|
877
853
|
});
|
|
878
854
|
});
|
|
879
855
|
backup.command("restore").description("Restore encrypted room keys from server backup").option("--account <id>", "Account ID (for multi-account setups)").option("--recovery-key <key>", "Optional recovery key to load before restoring (prefer --recovery-key-stdin)").option("--recovery-key-stdin", "Read the Matrix recovery key from stdin").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (options) => {
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
run: async () => await restoreMatrixRoomKeyBackup({
|
|
856
|
+
await runMatrixCliAccountCommand(options, {
|
|
857
|
+
run: async ({ accountId, cfg }) => await restoreMatrixRoomKeyBackup({
|
|
883
858
|
accountId,
|
|
884
859
|
cfg,
|
|
885
860
|
recoveryKey: await resolveMatrixCliRecoveryKeyInput(options)
|
|
886
861
|
}),
|
|
887
|
-
onText: (result, verbose) => {
|
|
888
|
-
printAccountLabel(accountId);
|
|
862
|
+
onText: (result, verbose, accountId) => {
|
|
889
863
|
console.log(`Restore success: ${result.success ? "yes" : "no"}`);
|
|
890
864
|
if (result.error) console.log(`Error: ${formatMatrixCliText(result.error)}`);
|
|
891
865
|
console.log(`Backup version: ${formatMatrixCliText(result.backupVersion, "none")}`);
|
|
@@ -907,16 +881,14 @@ function registerMatrixVerificationBackupCommands(verify) {
|
|
|
907
881
|
});
|
|
908
882
|
});
|
|
909
883
|
verify.command("bootstrap").description("Bootstrap Matrix cross-signing and device verification state").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").action(async (options) => {
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
run: async () => await bootstrapMatrixVerification({
|
|
884
|
+
await runMatrixCliAccountCommand(options, {
|
|
885
|
+
run: async ({ accountId, cfg }) => await bootstrapMatrixVerification({
|
|
913
886
|
accountId,
|
|
914
887
|
cfg,
|
|
915
888
|
recoveryKey: await resolveMatrixCliRecoveryKeyInput(options),
|
|
916
889
|
forceResetCrossSigning: options.forceResetCrossSigning === true
|
|
917
890
|
}),
|
|
918
|
-
onText: (result, verbose) => {
|
|
919
|
-
printAccountLabel(accountId);
|
|
891
|
+
onText: (result, verbose, accountId) => {
|
|
920
892
|
console.log(`Bootstrap success: ${result.success ? "yes" : "no"}`);
|
|
921
893
|
if (result.error) console.log(`Error: ${formatMatrixCliText(result.error)}`);
|
|
922
894
|
console.log(`Verified by owner: ${result.verification.verified ? "yes" : "no"}`);
|
|
@@ -924,12 +896,12 @@ function registerMatrixVerificationBackupCommands(verify) {
|
|
|
924
896
|
if (verbose) {
|
|
925
897
|
printVerificationTrustDiagnostics(result.verification);
|
|
926
898
|
console.log(`Cross-signing published: ${result.crossSigning.published ? "yes" : "no"} (master=${result.crossSigning.masterKeyPublished ? "yes" : "no"}, self=${result.crossSigning.selfSigningKeyPublished ? "yes" : "no"}, user=${result.crossSigning.userSigningKeyPublished ? "yes" : "no"})`);
|
|
927
|
-
|
|
899
|
+
printBackupStatus(result.verification.backup);
|
|
928
900
|
printTimestamp("Recovery key created at", result.verification.recoveryKeyCreatedAt);
|
|
929
901
|
console.log(`Pending verifications: ${result.pendingVerifications}`);
|
|
930
902
|
} else {
|
|
931
903
|
console.log(`Cross-signing published: ${result.crossSigning.published ? "yes" : "no"}`);
|
|
932
|
-
|
|
904
|
+
printBackupSummary(result.verification.backup);
|
|
933
905
|
}
|
|
934
906
|
printVerificationGuidance({
|
|
935
907
|
...result.verification,
|
|
@@ -945,27 +917,25 @@ function registerMatrixVerificationBackupCommands(verify) {
|
|
|
945
917
|
});
|
|
946
918
|
});
|
|
947
919
|
verify.command("device [key]").description("Verify device using a Matrix recovery key").option("--account <id>", "Account ID (for multi-account setups)").option("--recovery-key-stdin", "Read the Matrix recovery key from stdin").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (key, options) => {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
run: async () => await verifyMatrixRecoveryKey(await requireMatrixCliRecoveryKeyInput({
|
|
920
|
+
await runMatrixCliAccountCommand(options, {
|
|
921
|
+
run: async ({ accountId, cfg }) => await verifyMatrixRecoveryKey(await requireMatrixCliRecoveryKeyInput({
|
|
951
922
|
recoveryKey: key,
|
|
952
923
|
recoveryKeyStdin: options.recoveryKeyStdin
|
|
953
924
|
}), {
|
|
954
925
|
accountId,
|
|
955
926
|
cfg
|
|
956
927
|
}),
|
|
957
|
-
onText: (result, verbose) => {
|
|
958
|
-
printAccountLabel(accountId);
|
|
928
|
+
onText: (result, verbose, accountId) => {
|
|
959
929
|
if (!result.success) console.error(`Verification failed: ${formatMatrixCliText(result.error)}`);
|
|
960
930
|
else console.log("Device verification completed successfully.");
|
|
961
931
|
printVerificationIdentity(result);
|
|
962
932
|
console.log(`Recovery key accepted: ${result.recoveryKeyAccepted ? "yes" : "no"}`);
|
|
963
933
|
console.log(`Backup usable: ${result.backupUsable ? "yes" : "no"}`);
|
|
964
934
|
console.log(`Device verified by owner: ${result.deviceOwnerVerified ? "yes" : "no"}`);
|
|
965
|
-
|
|
935
|
+
printBackupSummary(result.backup);
|
|
966
936
|
if (verbose) {
|
|
967
937
|
printVerificationTrustDiagnostics(result);
|
|
968
|
-
|
|
938
|
+
printBackupStatus(result.backup);
|
|
969
939
|
printTimestamp("Recovery key created at", result.recoveryKeyCreatedAt);
|
|
970
940
|
if (result.success) printTimestamp("Verified at", result.verifiedAt);
|
|
971
941
|
}
|
|
@@ -986,10 +956,10 @@ function registerMatrixVerificationBackupCommands(verify) {
|
|
|
986
956
|
//#endregion
|
|
987
957
|
//#region extensions/matrix/src/cli-verification.ts
|
|
988
958
|
function matrixCliVerificationDmLookupOptions(options) {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
959
|
+
return {
|
|
960
|
+
...options.roomId !== void 0 ? { verificationDmRoomId: options.roomId } : {},
|
|
961
|
+
...options.userId !== void 0 ? { verificationDmUserId: options.userId } : {}
|
|
962
|
+
};
|
|
993
963
|
}
|
|
994
964
|
function formatMatrixVerificationDmFollowupParts(params) {
|
|
995
965
|
if (!params.roomId || !params.userId) return [];
|
|
@@ -1000,14 +970,11 @@ function formatMatrixVerificationDmFollowupParts(params) {
|
|
|
1000
970
|
sanitizeMatrixCliText(params.roomId)
|
|
1001
971
|
];
|
|
1002
972
|
}
|
|
1003
|
-
function
|
|
1004
|
-
|
|
973
|
+
function formatMatrixVerificationPreferredDmFollowupParts(summary, options) {
|
|
974
|
+
const summaryParts = formatMatrixVerificationDmFollowupParts({
|
|
1005
975
|
roomId: summary.roomId,
|
|
1006
976
|
userId: summary.otherUserId
|
|
1007
977
|
});
|
|
1008
|
-
}
|
|
1009
|
-
function formatMatrixVerificationPreferredDmFollowupParts(summary, options) {
|
|
1010
|
-
const summaryParts = formatMatrixVerificationSummaryDmFollowupParts(summary);
|
|
1011
978
|
return summaryParts.length ? summaryParts : formatMatrixVerificationDmFollowupParts(options);
|
|
1012
979
|
}
|
|
1013
980
|
function formatMatrixVerificationFollowupCommand(params) {
|
|
@@ -1054,7 +1021,10 @@ async function promptMatrixVerificationSasMatch() {
|
|
|
1054
1021
|
}
|
|
1055
1022
|
function printMatrixVerificationRequestGuidance(summary, accountId) {
|
|
1056
1023
|
const requestId = formatMatrixVerificationCommandId(summary);
|
|
1057
|
-
const dmParts =
|
|
1024
|
+
const dmParts = formatMatrixVerificationDmFollowupParts({
|
|
1025
|
+
roomId: summary.roomId,
|
|
1026
|
+
userId: summary.otherUserId
|
|
1027
|
+
});
|
|
1058
1028
|
printGuidance([
|
|
1059
1029
|
`Accept the verification request in another Matrix client for this account.`,
|
|
1060
1030
|
`Then run ${formatMatrixVerificationFollowupCommand({
|
|
@@ -1081,15 +1051,13 @@ function registerMatrixVerificationSummaryCommand(verify, params) {
|
|
|
1081
1051
|
const command = verify.command(`${params.name} <id>`).description(params.description).option("--account <id>", "Account ID (for multi-account setups)").option("--user-id <id>", "Matrix user ID for DM verification follow-up").option("--room-id <id>", "Matrix direct-message room ID for verification follow-up");
|
|
1082
1052
|
params.configure?.(command);
|
|
1083
1053
|
command.option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (id, options) => {
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
run: () => params.run(id, {
|
|
1054
|
+
await runMatrixCliAccountCommand(options, {
|
|
1055
|
+
run: ({ accountId, cfg }) => params.run(id, {
|
|
1087
1056
|
accountId,
|
|
1088
1057
|
cfg,
|
|
1089
1058
|
...matrixCliVerificationDmLookupOptions(options)
|
|
1090
1059
|
}, options),
|
|
1091
|
-
onText: (summary) => {
|
|
1092
|
-
printAccountLabel(accountId);
|
|
1060
|
+
onText: (summary, _verbose, accountId) => {
|
|
1093
1061
|
printMatrixVerificationSummary(summary);
|
|
1094
1062
|
params.afterText?.(summary, accountId, options);
|
|
1095
1063
|
},
|
|
@@ -1100,11 +1068,11 @@ function registerMatrixVerificationSummaryCommand(verify, params) {
|
|
|
1100
1068
|
async function runMatrixCliSelfVerificationCommand(options) {
|
|
1101
1069
|
let resolvedAccountId;
|
|
1102
1070
|
await runMatrixCliCommand(options, {
|
|
1103
|
-
run:
|
|
1071
|
+
run: () => {
|
|
1104
1072
|
const timeoutMs = parseOptionalInt(options.timeoutMs, "--timeout-ms", { min: 1 });
|
|
1105
1073
|
const { accountId, cfg } = resolveMatrixCliAccountContext(options.account);
|
|
1106
1074
|
resolvedAccountId = accountId;
|
|
1107
|
-
return
|
|
1075
|
+
return runMatrixSelfVerification({
|
|
1108
1076
|
accountId,
|
|
1109
1077
|
cfg,
|
|
1110
1078
|
timeoutMs,
|
|
@@ -1128,8 +1096,8 @@ async function runMatrixCliSelfVerificationCommand(options) {
|
|
|
1128
1096
|
printMatrixVerificationSummary(summary);
|
|
1129
1097
|
console.log(`Device verified by owner: ${summary.deviceOwnerVerified ? "yes" : "no"}`);
|
|
1130
1098
|
printVerificationTrustDiagnostics(summary.ownerVerification);
|
|
1131
|
-
|
|
1132
|
-
if (verbose)
|
|
1099
|
+
printBackupSummary(summary.ownerVerification.backup);
|
|
1100
|
+
if (verbose) printBackupStatus(summary.ownerVerification.backup);
|
|
1133
1101
|
console.log("Self-verification complete.");
|
|
1134
1102
|
},
|
|
1135
1103
|
onTextError: () => {
|
|
@@ -1142,26 +1110,21 @@ async function runMatrixCliSelfVerificationCommand(options) {
|
|
|
1142
1110
|
function registerMatrixVerificationCommands(root) {
|
|
1143
1111
|
const verify = root.command("verify").description("Device verification for Matrix E2EE");
|
|
1144
1112
|
verify.command("list").description("List pending Matrix verification requests").option("--account <id>", "Account ID (for multi-account setups)").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (options) => {
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
run: async () => await listMatrixVerifications({
|
|
1113
|
+
await runMatrixCliAccountCommand(options, {
|
|
1114
|
+
run: ({ accountId, cfg }) => listMatrixVerifications({
|
|
1148
1115
|
accountId,
|
|
1149
1116
|
cfg
|
|
1150
1117
|
}),
|
|
1151
|
-
onText:
|
|
1152
|
-
printAccountLabel(accountId);
|
|
1153
|
-
printMatrixVerificationSummaries(summaries);
|
|
1154
|
-
},
|
|
1118
|
+
onText: printMatrixVerificationSummaries,
|
|
1155
1119
|
errorPrefix: "Verification listing failed"
|
|
1156
1120
|
});
|
|
1157
1121
|
});
|
|
1158
1122
|
verify.command("self").description("Interactively self-verify this Matrix device").option("--account <id>", "Account ID (for multi-account setups)").option("--timeout-ms <ms>", "How long to wait for the other Matrix client").option("--verbose", "Show detailed diagnostics").action(runMatrixCliSelfVerificationCommand);
|
|
1159
1123
|
verify.command("request").description("Request Matrix device verification from another Matrix client").option("--account <id>", "Account ID (for multi-account setups)").option("--own-user", "Request self-verification for this Matrix account").option("--user-id <id>", "Matrix user ID to verify").option("--device-id <id>", "Matrix device ID to verify").option("--room-id <id>", "Matrix direct-message room ID for verification").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (options) => {
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
run: async () => {
|
|
1124
|
+
await runMatrixCliAccountCommand(options, {
|
|
1125
|
+
run: ({ accountId, cfg }) => {
|
|
1163
1126
|
if (options.ownUser === true && (options.userId || options.deviceId || options.roomId)) throw new Error("--own-user cannot be combined with --user-id, --device-id, or --room-id");
|
|
1164
|
-
return
|
|
1127
|
+
return requestMatrixVerification({
|
|
1165
1128
|
accountId,
|
|
1166
1129
|
cfg,
|
|
1167
1130
|
ownUser: options.ownUser === true ? true : void 0,
|
|
@@ -1170,8 +1133,7 @@ function registerMatrixVerificationCommands(root) {
|
|
|
1170
1133
|
roomId: options.roomId
|
|
1171
1134
|
});
|
|
1172
1135
|
},
|
|
1173
|
-
onText: (summary) => {
|
|
1174
|
-
printAccountLabel(accountId);
|
|
1136
|
+
onText: (summary, _verbose, accountId) => {
|
|
1175
1137
|
printMatrixVerificationSummary(summary);
|
|
1176
1138
|
printMatrixVerificationRequestGuidance(summary, accountId);
|
|
1177
1139
|
},
|
|
@@ -1205,7 +1167,7 @@ function registerMatrixVerificationCommands(root) {
|
|
|
1205
1167
|
verify.command("sas <id>").description("Show SAS emoji or decimals for a Matrix verification request").option("--account <id>", "Account ID (for multi-account setups)").option("--user-id <id>", "Matrix user ID for DM verification follow-up").option("--room-id <id>", "Matrix direct-message room ID for verification follow-up").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (id, options) => {
|
|
1206
1168
|
const { accountId, cfg } = resolveMatrixCliAccountContext(options.account);
|
|
1207
1169
|
await runMatrixCliCommand(options, {
|
|
1208
|
-
run:
|
|
1170
|
+
run: () => getMatrixVerificationSas(id, {
|
|
1209
1171
|
accountId,
|
|
1210
1172
|
cfg,
|
|
1211
1173
|
...matrixCliVerificationDmLookupOptions(options)
|
|
@@ -1246,16 +1208,14 @@ function registerMatrixVerificationCommands(root) {
|
|
|
1246
1208
|
errorPrefix: "Verification cancel failed"
|
|
1247
1209
|
});
|
|
1248
1210
|
verify.command("status").description("Check Matrix device verification status").option("--account <id>", "Account ID (for multi-account setups)").option("--verbose", "Show detailed diagnostics").option("--include-recovery-key", "Include stored recovery key in output").option("--allow-degraded-local-state", "Return best-effort diagnostics without preparing the Matrix account").option("--json", "Output as JSON").action(async (options) => {
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
run: async () => await getMatrixVerificationStatus({
|
|
1211
|
+
await runMatrixCliAccountCommand(options, {
|
|
1212
|
+
run: ({ accountId, cfg }) => getMatrixVerificationStatus({
|
|
1252
1213
|
accountId,
|
|
1253
1214
|
cfg,
|
|
1254
1215
|
includeRecoveryKey: options.includeRecoveryKey === true,
|
|
1255
1216
|
...options.allowDegradedLocalState === true ? { readiness: "none" } : {}
|
|
1256
1217
|
}),
|
|
1257
|
-
onText: (status, verbose) => {
|
|
1258
|
-
printAccountLabel(accountId);
|
|
1218
|
+
onText: (status, verbose, accountId) => {
|
|
1259
1219
|
printVerificationStatus(status, verbose, accountId);
|
|
1260
1220
|
},
|
|
1261
1221
|
shouldFail: (status) => status.serverDeviceKnown === false,
|
|
@@ -2,7 +2,7 @@ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
|
2
2
|
//#region extensions/matrix/src/cli-metadata.ts
|
|
3
3
|
function registerMatrixCliMetadata(api) {
|
|
4
4
|
api.registerCli(async ({ program }) => {
|
|
5
|
-
const { registerMatrixCli } = await import("./cli-
|
|
5
|
+
const { registerMatrixCli } = await import("./cli-mbL9jCro.mjs");
|
|
6
6
|
registerMatrixCli({ program });
|
|
7
7
|
}, { descriptors: [{
|
|
8
8
|
name: "matrix",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
|
|
2
|
-
import { C as resolveMatrixRoomId } from "./send-
|
|
2
|
+
import { C as resolveMatrixRoomId } from "./send-LCOuTVc1.mjs";
|
|
3
3
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
4
4
|
//#region extensions/matrix/src/matrix/actions/client.ts
|
|
5
5
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -7,7 +7,7 @@ var client_exports = /* @__PURE__ */ __exportAll({
|
|
|
7
7
|
withResolvedRoomAction: () => withResolvedRoomAction,
|
|
8
8
|
withStartedActionClient: () => withStartedActionClient
|
|
9
9
|
});
|
|
10
|
-
const loadMatrixActionClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-
|
|
10
|
+
const loadMatrixActionClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-D05xy1HB.mjs"));
|
|
11
11
|
async function withResolvedActionClient(opts, run, mode = "stop") {
|
|
12
12
|
const { withResolvedRuntimeMatrixClient } = await loadMatrixActionClientRuntime();
|
|
13
13
|
return await withResolvedRuntimeMatrixClient(opts, run, mode);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
2
|
-
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
3
2
|
import { captureChannelReadAuthority } from "openclaw/plugin-sdk/fetch-runtime";
|
|
4
3
|
//#region extensions/matrix/src/matrix/client-bootstrap.ts
|
|
5
|
-
const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-
|
|
4
|
+
const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-vPPbaxNp.mjs").then((n) => n.t));
|
|
6
5
|
async function ensureResolvedClientReadiness(params) {
|
|
7
6
|
if (params.readiness === "started") {
|
|
8
7
|
if (params.lease) await params.lease.start();
|
|
@@ -24,7 +23,7 @@ async function resolveRuntimeMatrixClientWithReadiness(opts) {
|
|
|
24
23
|
return { client: opts.client };
|
|
25
24
|
}
|
|
26
25
|
if (!opts.cfg) throw new Error("Matrix runtime client requires a resolved runtime config. Load and resolve config at the command or gateway boundary, then pass cfg through the runtime path.");
|
|
27
|
-
const cfg =
|
|
26
|
+
const cfg = opts.cfg;
|
|
28
27
|
const { acquireSharedMatrixClient, resolveMatrixAuthContext } = await loadMatrixSharedClientRuntimeDeps();
|
|
29
28
|
assertCurrent?.();
|
|
30
29
|
const authContext = resolveMatrixAuthContext({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as formatMatrixErrorReason } from "./errors-
|
|
1
|
+
import { t as formatMatrixErrorReason } from "./errors-Bw4EHwKX.mjs";
|
|
2
2
|
import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
|
|
3
3
|
//#region extensions/matrix/src/matrix/sync-state.ts
|
|
4
4
|
function isMatrixReadySyncState(state) {
|