@openclaw/matrix 2026.10.10 → 2026.11.5-beta.1
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-Co94mKNj.mjs → account-selection-Cow3TMFO.mjs} +11 -11
- package/dist/.setup/{approval-handler.runtime-DtNvJpfB.mjs → approval-handler.runtime-_0gqiVgR.mjs} +16 -51
- package/dist/.setup/{approval-reactions-DMDBJos0.mjs → approval-reactions-Bz_8XB01.mjs} +2 -2
- package/dist/.setup/{channel-CNjJyBS_.mjs → channel-ByHcZU28.mjs} +292 -357
- package/dist/.setup/channel.runtime-sNicWjmD.mjs +71 -0
- package/dist/.setup/{channel.setup-IjRB0ymg.mjs → channel.setup-Bmba21y9.mjs} +28 -39
- package/dist/.setup/{cli-CuEJNM3c.mjs → cli-B26pps0Q.mjs} +250 -308
- package/dist/.setup/{cli-metadata-rWmD_rzx.mjs → cli-metadata-CKGwVfmT.mjs} +1 -1
- package/dist/.setup/{client-7eyTX0cu.mjs → client-Bqu801rH.mjs} +88 -174
- package/dist/.setup/{client-CV0MkCZG.mjs → client-N8TEwtmk.mjs} +6 -6
- package/dist/.setup/{client-bootstrap-BjcmTmyR.mjs → client-bootstrap-k6Zm1M8Y.mjs} +5 -10
- package/dist/.setup/{client-support-CFofPPPm.mjs → client-support-CqXAOZp3.mjs} +1 -14
- package/dist/.setup/{create-client-C4Lnqs2C.mjs → create-client-DaGljdrk.mjs} +6 -6
- package/dist/.setup/{credentials-B0vpXvcB.mjs → credentials-DVmY0miU.mjs} +6 -20
- package/dist/.setup/{credentials-read-WCQSEvI8.mjs → credentials-read-rPqEpuxv.mjs} +3 -3
- package/dist/.setup/{crypto-runtime-Crp1is7m.mjs → crypto-runtime-KQupbxSM.mjs} +74 -158
- package/dist/.setup/{crypto-state-store-CM57gchf.mjs → crypto-state-store-p1mdYTWH.mjs} +14 -9
- package/dist/.setup/{crypto-store-ownership-Bratn-Np.mjs → crypto-store-ownership-7lVHeXWL.mjs} +1 -1
- package/dist/.setup/{crypto-unsafe-state-doctor-Brv4bIyx.mjs → crypto-unsafe-state-doctor-CG2nJk8P.mjs} +7 -6
- package/dist/.setup/{deps-O7rEnklr.mjs → deps-CVPT2Ros.mjs} +4 -3
- package/dist/.setup/device-health-D7n-lPeb.mjs +7 -0
- package/dist/.setup/{direct-management-DDaWVbQI.mjs → direct-management-D59C1WO-.mjs} +22 -28
- package/dist/.setup/{directory-live-B-csizuK.mjs → directory-live-YixmpyLW.mjs} +5 -5
- package/dist/.setup/doctor-contract-GiXgCj7k.mjs +37 -0
- package/dist/.setup/{draft-stream-dmhBHufd.mjs → draft-stream-C09OtoJZ.mjs} +10 -16
- package/dist/.setup/{encryption-guidance-Cn6-Tlx0.mjs → encryption-guidance-DfbEaKct.mjs} +1 -1
- package/dist/.setup/{exec-approvals-D7vv3AZS.mjs → exec-approvals-C3rCm0Sn.mjs} +31 -41
- package/dist/.setup/{file-sync-store-q5KCV2Lp.mjs → file-sync-store-NW6eDuai.mjs} +52 -8
- package/dist/.setup/{http-client-CxTmU1kT.mjs → http-client-CqnKFKUH.mjs} +19 -31
- package/dist/.setup/{idb-persistence-BF0MZglD.mjs → idb-persistence-CmoPtwDD.mjs} +22 -15
- package/dist/.setup/{joined-room-encryption-Dl7Sb9FF.mjs → joined-room-encryption-9sJK1kM-.mjs} +4 -3
- package/dist/.setup/{logger-BX5kXvh1.mjs → logger-B9TwnY6C.mjs} +2 -2
- package/dist/.setup/{logging-BLcaOSRD.mjs → logging-Bnsn7s4r.mjs} +20 -14
- package/dist/.setup/{messages-BiHM0DM3.mjs → messages-BjzsVgS6.mjs} +39 -22
- package/dist/.setup/{monitor-CPwDgRFY.mjs → monitor-D4vhbNUM.mjs} +647 -816
- package/dist/.setup/{onboarding-DiVtpjNu.mjs → onboarding-DKmt3jpW.mjs} +116 -128
- package/dist/.setup/{outbound-DwP97VpQ.mjs → outbound-wsXTF0z_.mjs} +2 -2
- package/dist/.setup/{profile-update-DnNA9mEa.mjs → profile-update-DX060MnL.mjs} +14 -14
- package/dist/.setup/{reaction-events-ClY9h_FC.mjs → reaction-events-BMsatzs4.mjs} +74 -99
- package/dist/.setup/{resolve-targets-B8PAwHVS.mjs → resolve-targets-Yz_3aN_2.mjs} +2 -2
- package/dist/.setup/{retired-state-vIr2IB90.mjs → retired-state-Bs3Gqkge.mjs} +6 -3
- package/dist/.setup/{room-info-T_PR_liR.mjs → room-info-OGKjk422.mjs} +21 -8
- package/dist/.setup/{doctor-contract-DybEjJcd.mjs → runtime-doctor-migrations-CSvRANPN.mjs} +12 -47
- package/dist/.setup/{sdk-Cj3ggJHG.mjs → sdk-BXcIyN-I.mjs} +95 -107
- package/dist/.setup/{send-C1qeMQAy.mjs → send-CWjH-l-T.mjs} +169 -251
- package/dist/.setup/{send-currentness-CAUVR-f3.mjs → send-currentness-D1x6YP9O.mjs} +9 -15
- package/dist/.setup/{setup-bootstrap-DDhwWvDs.mjs → setup-bootstrap-yKeGh4Iy.mjs} +2 -2
- package/dist/.setup/{setup-core-D2r4BivQ.mjs → setup-core-BaKffgBi.mjs} +19 -42
- package/dist/.setup/setup-plugin-api-B_t4waBw.mjs +2 -0
- package/dist/.setup/{startup-verification-B3LEbW33.mjs → startup-verification-C-lhD0gk.mjs} +9 -22
- package/dist/.setup/{storage-CxN4jqKI.mjs → storage-BLLN9jYG.mjs} +18 -22
- package/dist/.setup/{subagent-hooks-CT-rdJmh.mjs → subagent-hooks-D-lCcLGQ.mjs} +1 -1
- package/dist/.setup/{sync-cache-state-qYrd2EEh.mjs → sync-cache-state-B4hJFIPw.mjs} +10 -10
- package/dist/.setup/sync-state-Cu1nagBV.mjs +11 -0
- package/dist/.setup/task-runner-CYyGHdNW.mjs +51 -0
- package/dist/.setup/{thread-bindings-D2ZR6mEZ.mjs → thread-bindings-BA2xESjV.mjs} +34 -49
- package/dist/.setup/{thread-bindings-shared-FMu_szTm.mjs → thread-bindings-shared-CBlJu3Wz.mjs} +2 -2
- package/dist/.setup/{tool-actions-CdKa0DC4.mjs → tool-actions-CRuiVbqj.mjs} +59 -67
- package/dist/.setup/{url-validation-C77p4qT9.mjs → url-validation-DesoKUns.mjs} +1 -2
- package/dist/.setup/{verification-jP3tm-xD.mjs → verification-C5x4Hy5Y.mjs} +7 -7
- package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
- package/dist/api.js +6 -6
- package/dist/auth-presence.js +1 -1
- 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 +149 -127
- package/dist/helper-api.js +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin-entry.handlers.runtime.js +2 -2
- package/dist/runtime-api.js +3 -3
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/thread-bindings-runtime.js +1 -1
- package/node_modules/@babel/runtime/helpers/asyncIterator.js +1 -1
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +12 -6
- package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +1 -1
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +12 -6
- package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +16 -19
- package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +5 -5
- package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +16 -19
- package/node_modules/@babel/runtime/helpers/toPrimitive.js +5 -5
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@openclaw/fs-safe/CHANGELOG.md +94 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-file-input.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/copy-file-input.js +3 -1
- package/node_modules/@openclaw/fs-safe/dist/copy-path-admission.js +2 -2
- package/node_modules/@openclaw/fs-safe/dist/copy-root-file-sync.js +8 -1
- package/node_modules/@openclaw/fs-safe/dist/file-open-error.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/file-open-error.js +14 -0
- package/node_modules/@openclaw/fs-safe/dist/file-sync.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/file-sync.js +6 -1
- package/node_modules/@openclaw/fs-safe/dist/guest-native-python.js +3 -0
- package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/native-config.js +14 -3
- package/node_modules/@openclaw/fs-safe/dist/native-operations.js +2 -0
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.js +9 -2
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +40 -32
- package/node_modules/@openclaw/fs-safe/dist/output.js +6 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/path.js +5 -1
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.js +25 -2
- package/node_modules/@openclaw/fs-safe/dist/publication-handle.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/publication-handle.js +32 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.js +19 -9
- package/node_modules/@openclaw/fs-safe/dist/publish-file.js +23 -24
- package/node_modules/@openclaw/fs-safe/dist/publish-rename-fallback.d.ts +21 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-rename-fallback.js +102 -0
- package/node_modules/@openclaw/fs-safe/dist/root-create-native.js +2 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.d.ts +3 -1
- package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.js +8 -5
- package/node_modules/@openclaw/fs-safe/dist/root-directory-list-types.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +19 -9
- package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.js +3 -3
- package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +2 -2
- package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +27 -13
- package/node_modules/@openclaw/fs-safe/dist/root-path.js +2 -2
- package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +18 -3
- package/node_modules/@openclaw/fs-safe/dist/watch-hints.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +68 -21
- package/node_modules/@openclaw/fs-safe/dist/watch-io-error.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-io-error.js +27 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-io-worker.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-io-worker.js +93 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-io.d.ts +47 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-io.js +236 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-native.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/watch-native.js +3 -3
- package/node_modules/@openclaw/fs-safe/dist/watch-probe.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-probe.js +135 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-rescan.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/watch-rescan.js +86 -24
- package/node_modules/@openclaw/fs-safe/dist/watch-scan.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-scan.js +78 -16
- package/node_modules/@openclaw/fs-safe/dist/watch-stream.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-stream.js +23 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-types.d.ts +3 -1
- package/node_modules/@openclaw/fs-safe/dist/watch.js +60 -13
- package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
- package/node_modules/@openclaw/fs-safe/docs/advanced.md +5 -2
- package/node_modules/@openclaw/fs-safe/docs/compiler-qualification.md +392 -0
- package/node_modules/@openclaw/fs-safe/docs/config.md +7 -1
- package/node_modules/@openclaw/fs-safe/docs/contributing.md +25 -5
- package/node_modules/@openclaw/fs-safe/docs/copy.md +10 -0
- package/node_modules/@openclaw/fs-safe/docs/durability.md +9 -3
- package/node_modules/@openclaw/fs-safe/docs/errors.md +13 -0
- package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.5.md +6 -4
- package/node_modules/@openclaw/fs-safe/docs/native-helper.md +6 -4
- package/node_modules/@openclaw/fs-safe/docs/output.md +4 -2
- package/node_modules/@openclaw/fs-safe/docs/path.md +5 -2
- package/node_modules/@openclaw/fs-safe/docs/permissions.md +15 -0
- package/node_modules/@openclaw/fs-safe/docs/security-model.md +9 -0
- package/node_modules/@openclaw/fs-safe/docs/staged-file.md +2 -0
- package/node_modules/@openclaw/fs-safe/docs/testing.md +1 -1
- package/node_modules/@openclaw/fs-safe/docs/watch.md +62 -5
- package/node_modules/@openclaw/fs-safe/docs/writing.md +6 -1
- package/node_modules/@openclaw/fs-safe/package.json +18 -16
- 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-freebsd-arm64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-freebsd-arm64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-freebsd-x64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-freebsd-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-arm64-msvc/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/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/@tokenizer/inflate/README.md +30 -1
- package/node_modules/@tokenizer/inflate/lib/GzipHandler.js +1 -1
- package/node_modules/@tokenizer/inflate/lib/ZipHandler.d.ts +8 -3
- package/node_modules/@tokenizer/inflate/lib/ZipHandler.js +101 -26
- package/node_modules/@tokenizer/inflate/lib/ZipLimitError.d.ts +16 -0
- package/node_modules/@tokenizer/inflate/lib/ZipLimitError.js +10 -0
- package/node_modules/@tokenizer/inflate/lib/ZipToken.d.ts +1 -1
- package/node_modules/@tokenizer/inflate/lib/ZipToken.js +11 -7
- package/node_modules/@tokenizer/inflate/lib/index.d.ts +2 -1
- package/node_modules/@tokenizer/inflate/lib/index.js +2 -1
- package/node_modules/@tokenizer/inflate/package.json +16 -15
- package/node_modules/argparse/lib/argparse.js +1 -1
- package/node_modules/argparse/package.json +1 -1
- package/node_modules/fake-indexeddb/build/cjs/FDBCursor.js +20 -18
- package/node_modules/fake-indexeddb/build/cjs/FDBKeyRange.js +6 -6
- package/node_modules/fake-indexeddb/build/cjs/FDBTransaction.js +20 -2
- package/node_modules/fake-indexeddb/build/cjs/lib/RecordStore.js +3 -3
- package/node_modules/fake-indexeddb/build/cjs/lib/binarySearchTree.js +11 -13
- package/node_modules/fake-indexeddb/build/cjs/lib/cmp.js +44 -14
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/auto.js +54 -0
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/binarySearchTree.js +413 -0
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/fakeIndexedDB.js +1018 -0
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/forceCloseDatabase.js +99 -0
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/getAll.js +707 -0
- package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/memoryLeaks.js +42 -0
- package/node_modules/fake-indexeddb/build/esm/FDBCursor.js +19 -18
- package/node_modules/fake-indexeddb/build/esm/FDBKeyRange.js +6 -6
- package/node_modules/fake-indexeddb/build/esm/FDBTransaction.js +20 -2
- package/node_modules/fake-indexeddb/build/esm/lib/RecordStore.js +3 -3
- package/node_modules/fake-indexeddb/build/esm/lib/binarySearchTree.js +11 -13
- package/node_modules/fake-indexeddb/build/esm/lib/cmp.js +41 -11
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/auto.js +52 -0
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/binarySearchTree.js +409 -0
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/fakeIndexedDB.js +1014 -0
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/forceCloseDatabase.js +95 -0
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/getAll.js +703 -0
- package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/memoryLeaks.js +38 -0
- package/node_modules/fake-indexeddb/package.json +1 -1
- package/node_modules/file-type/node_modules/strtok3/LICENSE.txt +21 -0
- package/node_modules/file-type/node_modules/strtok3/README.md +591 -0
- package/node_modules/file-type/node_modules/strtok3/lib/AbortSignal.d.ts +2 -0
- package/node_modules/file-type/node_modules/strtok3/lib/AbortSignal.js +7 -0
- package/node_modules/file-type/node_modules/strtok3/lib/AbstractTokenizer.d.ts +114 -0
- package/node_modules/file-type/node_modules/strtok3/lib/AbstractTokenizer.js +196 -0
- package/node_modules/file-type/node_modules/strtok3/lib/BlobTokenizer.d.ts +29 -0
- package/node_modules/file-type/node_modules/strtok3/lib/BlobTokenizer.js +56 -0
- package/node_modules/file-type/node_modules/strtok3/lib/BufferSizeError.d.ts +19 -0
- package/node_modules/file-type/node_modules/strtok3/lib/BufferSizeError.js +27 -0
- package/node_modules/file-type/node_modules/strtok3/lib/BufferTokenizer.d.ts +29 -0
- package/node_modules/file-type/node_modules/strtok3/lib/BufferTokenizer.js +50 -0
- package/node_modules/file-type/node_modules/strtok3/lib/FileTokenizer.d.ts +47 -0
- package/node_modules/file-type/node_modules/strtok3/lib/FileTokenizer.js +83 -0
- package/node_modules/file-type/node_modules/strtok3/lib/NotRegularFileError.d.ts +5 -0
- package/node_modules/file-type/node_modules/strtok3/lib/NotRegularFileError.js +8 -0
- package/node_modules/file-type/node_modules/strtok3/lib/ReadStreamTokenizer.d.ts +34 -0
- package/node_modules/file-type/node_modules/strtok3/lib/ReadStreamTokenizer.js +125 -0
- package/node_modules/file-type/node_modules/strtok3/lib/core.d.ts +41 -0
- package/node_modules/file-type/node_modules/strtok3/lib/core.js +69 -0
- package/node_modules/file-type/node_modules/strtok3/lib/index.d.ts +17 -0
- package/node_modules/file-type/node_modules/strtok3/lib/index.js +23 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/AbstractStreamReader.d.ts +54 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/AbstractStreamReader.js +73 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/Deferred.d.ts +6 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/Deferred.js +10 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/Errors.d.ts +10 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/Errors.js +16 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/StreamReader.d.ts +30 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/StreamReader.js +104 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamByobReader.d.ts +14 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamByobReader.js +29 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +19 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +67 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +14 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamReader.js +13 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamReaderFactory.d.ts +5 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +19 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/index.d.ts +6 -0
- package/node_modules/file-type/node_modules/strtok3/lib/stream/index.js +5 -0
- package/node_modules/file-type/node_modules/strtok3/lib/types.d.ts +146 -0
- package/node_modules/file-type/node_modules/strtok3/lib/types.js +1 -0
- package/node_modules/file-type/node_modules/strtok3/package.json +95 -0
- package/node_modules/file-type/package.json +28 -27
- package/node_modules/file-type/readme.md +32 -3
- package/node_modules/file-type/source/detectors/ebml.js +2 -2
- package/node_modules/file-type/source/detectors/png.js +1 -0
- package/node_modules/file-type/source/detectors/zip.js +71 -112
- package/node_modules/file-type/source/index.d.ts +18 -8
- package/node_modules/file-type/source/index.js +75 -49
- package/node_modules/file-type/source/index.test-d.ts +29 -21
- package/node_modules/file-type/source/supported.js +4 -0
- package/node_modules/file-type/source/tokens.js +2 -2
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs +737 -686
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs.map +1 -1
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js +8 -8
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js.map +1 -1
- package/node_modules/markdown-it/dist/markdown-it.cjs.js +660 -518
- package/node_modules/markdown-it/dist/markdown-it.cjs.js.map +1 -1
- package/node_modules/markdown-it/dist/markdown-it.d.mts +1 -0
- package/node_modules/markdown-it/dist/markdown-it.mjs +179 -124
- package/node_modules/markdown-it/dist/markdown-it.mjs.map +1 -1
- package/node_modules/markdown-it/package.json +11 -11
- package/node_modules/matrix-js-sdk/CHANGELOG.md +23 -0
- package/node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts +3 -1
- package/node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/PushRules.js +2 -0
- package/node_modules/matrix-js-sdk/lib/@types/PushRules.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/event.d.ts +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/event.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/event.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/matrix-sdk-crypto-wasm.d.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/client.d.ts +88 -37
- package/node_modules/matrix-js-sdk/lib/client.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/client.js +72 -47
- package/node_modules/matrix-js-sdk/lib/client.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto-api/index.d.ts +3 -3
- package/node_modules/matrix-js-sdk/lib/crypto-api/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto-api/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/embedded.d.ts +17 -1
- package/node_modules/matrix-js-sdk/lib/embedded.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/embedded.js +46 -1
- package/node_modules/matrix-js-sdk/lib/embedded.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/errors.d.ts +1 -1
- package/node_modules/matrix-js-sdk/lib/errors.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/errors.js +2 -2
- package/node_modules/matrix-js-sdk/lib/errors.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts +7 -1
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.js +14 -5
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/interface.d.ts +34 -8
- package/node_modules/matrix-js-sdk/lib/http-api/interface.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/interface.js +10 -3
- package/node_modules/matrix-js-sdk/lib/http-api/interface.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/refresh.d.ts +30 -11
- package/node_modules/matrix-js-sdk/lib/http-api/refresh.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/refresh.js +72 -5
- package/node_modules/matrix-js-sdk/lib/http-api/refresh.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/utils.js +1 -3
- package/node_modules/matrix-js-sdk/lib/matrix.d.ts +1 -1
- package/node_modules/matrix-js-sdk/lib/matrix.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrix.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js +20 -6
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.d.ts +5 -0
- 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/MatrixRTCSession.d.ts +27 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js +58 -36
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.js +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts +76 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js +264 -47
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.d.ts +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.js +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.d.ts +8 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.js +10 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.d.ts +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.js +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts +104 -11
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js +263 -19
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.d.ts +22 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.js +38 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.d.ts +7 -0
- 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 +27 -0
- package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.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 +8 -0
- package/node_modules/matrix-js-sdk/lib/models/thread.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/oauth/authorize.js +1 -1
- package/node_modules/matrix-js-sdk/lib/oauth/authorize.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts +3 -5
- package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/oauth/index.js +7 -7
- package/node_modules/matrix-js-sdk/lib/oauth/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.d.ts +10 -4
- package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.js +34 -24
- package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/receipt-accumulator.d.ts +10 -11
- package/node_modules/matrix-js-sdk/lib/receipt-accumulator.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/receipt-accumulator.js +26 -25
- package/node_modules/matrix-js-sdk/lib/receipt-accumulator.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/room-summary-api.d.ts +71 -0
- package/node_modules/matrix-js-sdk/lib/room-summary-api.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/room-summary-api.js +82 -0
- package/node_modules/matrix-js-sdk/lib/room-summary-api.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.d.ts +7 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.js +41 -25
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js +1 -7
- package/node_modules/matrix-js-sdk/lib/sync.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sync.js +6 -1
- package/node_modules/matrix-js-sdk/lib/sync.js.map +1 -1
- package/node_modules/matrix-js-sdk/package.json +6 -6
- package/node_modules/matrix-js-sdk/src/@types/PushRules.ts +2 -0
- package/node_modules/matrix-js-sdk/src/@types/event.ts +1 -1
- package/node_modules/matrix-js-sdk/src/@types/matrix-sdk-crypto-wasm.d.ts +15 -12
- package/node_modules/matrix-js-sdk/src/client.ts +105 -62
- package/node_modules/matrix-js-sdk/src/crypto-api/index.ts +3 -3
- package/node_modules/matrix-js-sdk/src/embedded.ts +61 -2
- package/node_modules/matrix-js-sdk/src/errors.ts +2 -1
- package/node_modules/matrix-js-sdk/src/http-api/fetch.ts +14 -5
- package/node_modules/matrix-js-sdk/src/http-api/interface.ts +36 -8
- package/node_modules/matrix-js-sdk/src/http-api/refresh.ts +101 -17
- package/node_modules/matrix-js-sdk/src/http-api/utils.ts +1 -5
- package/node_modules/matrix-js-sdk/src/matrix.ts +1 -1
- package/node_modules/matrix-js-sdk/src/matrixrtc/CallMembership.ts +22 -4
- package/node_modules/matrix-js-sdk/src/matrixrtc/IMembershipManager.ts +6 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSession.ts +72 -49
- package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSessionManager.ts +1 -1
- package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManager.ts +284 -61
- package/node_modules/matrix-js-sdk/src/matrixrtc/index.ts +7 -1
- package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/common.ts +12 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/index.ts +1 -1
- package/node_modules/matrix-js-sdk/src/matrixrtc/types.ts +351 -23
- package/node_modules/matrix-js-sdk/src/matrixrtc/utils.ts +54 -1
- package/node_modules/matrix-js-sdk/src/models/room-sticky-events.ts +26 -1
- package/node_modules/matrix-js-sdk/src/models/thread.ts +9 -0
- package/node_modules/matrix-js-sdk/src/oauth/authorize.ts +1 -1
- package/node_modules/matrix-js-sdk/src/oauth/index.ts +7 -8
- package/node_modules/matrix-js-sdk/src/oauth/tokenRefresher.ts +15 -5
- package/node_modules/matrix-js-sdk/src/receipt-accumulator.ts +30 -26
- package/node_modules/matrix-js-sdk/src/room-summary-api.ts +114 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/backup.ts +46 -33
- package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +1 -7
- package/node_modules/matrix-js-sdk/src/sync.ts +9 -1
- package/node_modules/music-metadata/README.md +125 -37
- package/node_modules/music-metadata/lib/ParseError.d.ts +10 -3
- package/node_modules/music-metadata/lib/ParseError.js +2 -0
- package/node_modules/music-metadata/lib/ParserFactory.d.ts +1 -1
- package/node_modules/music-metadata/lib/ParserFactory.js +20 -8
- package/node_modules/music-metadata/lib/aiff/AiffParser.d.ts +1 -0
- package/node_modules/music-metadata/lib/aiff/AiffParser.js +25 -17
- package/node_modules/music-metadata/lib/aiff/AiffToken.d.ts +9 -3
- package/node_modules/music-metadata/lib/aiff/AiffToken.js +10 -0
- package/node_modules/music-metadata/lib/apev2/APEv2Parser.d.ts +4 -3
- package/node_modules/music-metadata/lib/apev2/APEv2Parser.js +6 -30
- package/node_modules/music-metadata/lib/asf/AsfGuid.js +49 -49
- package/node_modules/music-metadata/lib/asf/AsfObject.d.ts +12 -6
- package/node_modules/music-metadata/lib/asf/AsfObject.js +201 -58
- package/node_modules/music-metadata/lib/asf/AsfParser.d.ts +4 -0
- package/node_modules/music-metadata/lib/asf/AsfParser.js +119 -27
- package/node_modules/music-metadata/lib/caf/CafLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/caf/CafLoader.js +8 -0
- package/node_modules/music-metadata/lib/caf/CafParser.d.ts +37 -0
- package/node_modules/music-metadata/lib/caf/CafParser.js +253 -0
- package/node_modules/music-metadata/lib/caf/CafTagMap.d.ts +8 -0
- package/node_modules/music-metadata/lib/caf/CafTagMap.js +38 -0
- package/node_modules/music-metadata/lib/caf/CafToken.d.ts +75 -0
- package/node_modules/music-metadata/lib/caf/CafToken.js +135 -0
- package/node_modules/music-metadata/lib/common/Allocation.d.ts +14 -0
- package/node_modules/music-metadata/lib/common/Allocation.js +70 -0
- package/node_modules/music-metadata/lib/common/BasicParser.d.ts +2 -0
- package/node_modules/music-metadata/lib/common/BasicParser.js +8 -0
- package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.d.ts +1 -1
- package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.js +3 -3
- package/node_modules/music-metadata/lib/common/CombinedTagMapper.js +4 -3
- package/node_modules/music-metadata/lib/common/GenericTagMapper.d.ts +1 -1
- package/node_modules/music-metadata/lib/common/GenericTagMapper.js +4 -2
- package/node_modules/music-metadata/lib/common/GenericTagTypes.d.ts +2 -2
- package/node_modules/music-metadata/lib/common/MetadataCollector.d.ts +6 -5
- package/node_modules/music-metadata/lib/common/MetadataCollector.js +57 -30
- package/node_modules/music-metadata/lib/common/TrackInfo.d.ts +8 -0
- package/node_modules/music-metadata/lib/common/TrackInfo.js +68 -0
- package/node_modules/music-metadata/lib/common/Util.d.ts +1 -1
- package/node_modules/music-metadata/lib/common/Util.js +6 -12
- package/node_modules/music-metadata/lib/core.d.ts +1 -1
- package/node_modules/music-metadata/lib/core.js +10 -18
- package/node_modules/music-metadata/lib/dsdiff/DsdiffLoader.js +1 -1
- package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.d.ts +7 -3
- package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.js +69 -33
- package/node_modules/music-metadata/lib/dsf/DsfParser.d.ts +4 -3
- package/node_modules/music-metadata/lib/dsf/DsfParser.js +1 -1
- package/node_modules/music-metadata/lib/ebml/EbmlIterator.d.ts +28 -19
- package/node_modules/music-metadata/lib/ebml/EbmlIterator.js +97 -67
- package/node_modules/music-metadata/lib/ebml/types.d.ts +36 -8
- package/node_modules/music-metadata/lib/ebml/types.js +2 -1
- package/node_modules/music-metadata/lib/flac/FlacParser.js +10 -18
- package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.d.ts +1 -1
- package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.js +5 -1
- package/node_modules/music-metadata/lib/id3v2/AbstractID3Parser.js +1 -4
- package/node_modules/music-metadata/lib/id3v2/EmbeddedID3v2.d.ts +5 -0
- package/node_modules/music-metadata/lib/id3v2/EmbeddedID3v2.js +29 -0
- package/node_modules/music-metadata/lib/id3v2/FrameParser.d.ts +5 -3
- package/node_modules/music-metadata/lib/id3v2/FrameParser.js +59 -33
- package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js +15 -8
- package/node_modules/music-metadata/lib/index.d.ts +2 -0
- package/node_modules/music-metadata/lib/index.js +8 -4
- package/node_modules/music-metadata/lib/matroska/MatroskaDtd.d.ts +630 -2
- package/node_modules/music-metadata/lib/matroska/MatroskaDtd.js +58 -40
- package/node_modules/music-metadata/lib/matroska/MatroskaParser.d.ts +4 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaParser.js +211 -68
- package/node_modules/music-metadata/lib/matroska/types.d.ts +33 -131
- package/node_modules/music-metadata/lib/matroska/types.js +1 -18
- package/node_modules/music-metadata/lib/mp4/Atom.js +7 -0
- package/node_modules/music-metadata/lib/mp4/AtomToken.d.ts +17 -4
- package/node_modules/music-metadata/lib/mp4/AtomToken.js +124 -21
- package/node_modules/music-metadata/lib/mp4/MP4Parser.d.ts +12 -3
- package/node_modules/music-metadata/lib/mp4/MP4Parser.js +559 -242
- package/node_modules/music-metadata/lib/mpeg/AdtsFrameHeader.d.ts +17 -0
- package/node_modules/music-metadata/lib/mpeg/AdtsFrameHeader.js +44 -0
- package/node_modules/music-metadata/lib/mpeg/MpegFrameHeader.d.ts +41 -0
- package/node_modules/music-metadata/lib/mpeg/MpegFrameHeader.js +84 -0
- package/node_modules/music-metadata/lib/mpeg/MpegParser.d.ts +11 -24
- package/node_modules/music-metadata/lib/mpeg/MpegParser.js +77 -337
- package/node_modules/music-metadata/lib/musepack/MusepackConentError.d.ts +4 -3
- package/node_modules/music-metadata/lib/musepack/sv7/BitReader.js +3 -2
- package/node_modules/music-metadata/lib/musepack/sv7/MpcSv7Parser.js +3 -6
- package/node_modules/music-metadata/lib/musepack/sv8/MpcSv8Parser.js +1 -4
- package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.js +1 -0
- package/node_modules/music-metadata/lib/ogg/OggLoader.js +1 -1
- package/node_modules/music-metadata/lib/ogg/OggParser.d.ts +4 -3
- package/node_modules/music-metadata/lib/ogg/OggParser.js +54 -9
- package/node_modules/music-metadata/lib/ogg/OggStreamMetadata.d.ts +14 -0
- package/node_modules/music-metadata/lib/ogg/OggStreamMetadata.js +27 -0
- package/node_modules/music-metadata/lib/ogg/OggToken.d.ts +1 -0
- package/node_modules/music-metadata/lib/ogg/OggToken.js +3 -1
- package/node_modules/music-metadata/lib/ogg/flac/FlacStream.d.ts +3 -1
- package/node_modules/music-metadata/lib/ogg/flac/FlacStream.js +21 -3
- package/node_modules/music-metadata/lib/ogg/opus/Opus.d.ts +4 -3
- package/node_modules/music-metadata/lib/ogg/opus/Opus.js +1 -0
- package/node_modules/music-metadata/lib/ogg/opus/OpusStream.js +4 -2
- package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.js +2 -1
- package/node_modules/music-metadata/lib/ogg/theora/Theora.d.ts +5 -0
- package/node_modules/music-metadata/lib/ogg/theora/Theora.js +7 -2
- package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.d.ts +5 -2
- package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.js +43 -3
- package/node_modules/music-metadata/lib/ogg/vorbis/Vorbis.js +4 -3
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.d.ts +11 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.js +29 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.d.ts +6 -4
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.js +24 -18
- package/node_modules/music-metadata/lib/riff/RiffChunk.js +3 -0
- package/node_modules/music-metadata/lib/type.d.ts +49 -6
- package/node_modules/music-metadata/lib/type.js +22 -1
- package/node_modules/music-metadata/lib/wav/WaveChunk.d.ts +4 -3
- package/node_modules/music-metadata/lib/wav/WaveChunk.js +2 -0
- package/node_modules/music-metadata/lib/wav/WaveParser.d.ts +0 -1
- package/node_modules/music-metadata/lib/wav/WaveParser.js +21 -23
- package/node_modules/music-metadata/lib/wavpack/WavPackParser.d.ts +4 -3
- package/node_modules/music-metadata/lib/wavpack/WavPackParser.js +6 -6
- package/node_modules/music-metadata/package.json +26 -22
- package/node_modules/strtok3/LICENSE.txt +21 -21
- package/node_modules/strtok3/README.md +712 -399
- package/node_modules/strtok3/lib/AbortSignal.d.ts +2 -0
- package/node_modules/strtok3/lib/AbortSignal.js +7 -0
- package/node_modules/strtok3/lib/AbstractTokenizer.d.ts +40 -2
- package/node_modules/strtok3/lib/AbstractTokenizer.js +101 -16
- package/node_modules/strtok3/lib/BlobTokenizer.d.ts +1 -1
- package/node_modules/strtok3/lib/BlobTokenizer.js +14 -11
- package/node_modules/strtok3/lib/BufferSizeError.d.ts +19 -0
- package/node_modules/strtok3/lib/BufferSizeError.js +27 -0
- package/node_modules/strtok3/lib/BufferTokenizer.d.ts +1 -1
- package/node_modules/strtok3/lib/BufferTokenizer.js +7 -9
- package/node_modules/strtok3/lib/FileTokenizer.d.ts +13 -3
- package/node_modules/strtok3/lib/FileTokenizer.js +29 -7
- package/node_modules/strtok3/lib/NotRegularFileError.d.ts +5 -0
- package/node_modules/strtok3/lib/NotRegularFileError.js +8 -0
- package/node_modules/strtok3/lib/ReadStreamTokenizer.js +32 -9
- package/node_modules/strtok3/lib/TokenizerBoundaryError.d.ts +7 -0
- package/node_modules/strtok3/lib/TokenizerBoundaryError.js +10 -0
- package/node_modules/strtok3/lib/TokenizerView.d.ts +9 -0
- package/node_modules/strtok3/lib/TokenizerView.js +184 -0
- package/node_modules/strtok3/lib/core.d.ts +10 -6
- package/node_modules/strtok3/lib/core.js +16 -22
- package/node_modules/strtok3/lib/index.d.ts +5 -4
- package/node_modules/strtok3/lib/index.js +3 -2
- package/node_modules/strtok3/lib/isRandomAccessTokenizer.d.ts +6 -0
- package/node_modules/strtok3/lib/isRandomAccessTokenizer.js +10 -0
- package/node_modules/strtok3/lib/stream/AbstractStreamReader.js +5 -3
- package/node_modules/strtok3/lib/stream/Errors.js +3 -3
- package/node_modules/strtok3/lib/stream/StreamReader.d.ts +4 -3
- package/node_modules/strtok3/lib/stream/StreamReader.js +46 -25
- package/node_modules/strtok3/lib/stream/WebStreamByobReader.js +5 -3
- package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +1 -1
- package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +9 -4
- package/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +13 -3
- package/node_modules/strtok3/lib/stream/WebStreamReader.js +1 -1
- package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +1 -1
- package/node_modules/strtok3/lib/stream/index.d.ts +1 -1
- package/node_modules/strtok3/lib/types.d.ts +25 -1
- package/node_modules/strtok3/package.json +97 -94
- package/node_modules/typebox/build/format/duration.d.mts +2 -2
- package/node_modules/typebox/build/format/duration.mjs +2 -2
- package/node_modules/typebox/build/format/idn_email.d.mts +1 -0
- package/node_modules/typebox/build/format/idn_email.mjs +1 -0
- package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -1
- package/node_modules/typebox/build/format/idn_hostname.mjs +1 -1
- package/node_modules/typebox/build/format/ipv4.d.mts +2 -2
- package/node_modules/typebox/build/format/ipv4.mjs +2 -2
- package/node_modules/typebox/build/format/ipv6.d.mts +1 -1
- package/node_modules/typebox/build/format/ipv6.mjs +1 -1
- package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
- package/node_modules/typebox/build/schema/build.mjs +1 -0
- package/node_modules/typebox/build/schema/engine/_unique.d.mts +4 -2
- package/node_modules/typebox/build/schema/engine/_unique.mjs +7 -3
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +0 -3
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +15 -17
- package/node_modules/typebox/build/schema/engine/contains.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/engine/index.mjs +1 -0
- package/node_modules/typebox/build/schema/engine/items.mjs +7 -4
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/minContains.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
- package/node_modules/typebox/build/system/hashing/hash.mjs +63 -34
- package/node_modules/typebox/build/system/locale/en_US.mjs +2 -1
- package/node_modules/typebox/build/system/memory/assign.d.mts +2 -8
- package/node_modules/typebox/build/system/memory/assign.mjs +13 -6
- package/node_modules/typebox/build/system/memory/clone.d.mts +4 -5
- package/node_modules/typebox/build/system/memory/clone.mjs +8 -96
- package/node_modules/typebox/build/system/memory/create.d.mts +1 -5
- package/node_modules/typebox/build/system/memory/create.mjs +18 -13
- package/node_modules/typebox/build/system/memory/deep.d.mts +2 -0
- package/node_modules/typebox/build/system/memory/deep.mjs +108 -0
- package/node_modules/typebox/build/system/memory/discard.d.mts +1 -1
- package/node_modules/typebox/build/system/memory/discard.mjs +9 -8
- package/node_modules/typebox/build/system/memory/finalize.d.mts +4 -0
- package/node_modules/typebox/build/system/memory/finalize.mjs +30 -0
- package/node_modules/typebox/build/system/memory/keys.d.mts +2 -0
- package/node_modules/typebox/build/system/memory/keys.mjs +8 -0
- package/node_modules/typebox/build/system/memory/update.d.mts +1 -4
- package/node_modules/typebox/build/system/memory/update.mjs +43 -16
- package/node_modules/typebox/build/type/engine/call/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/call/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +2 -24
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +2 -29
- package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/evaluate/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -1
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +6 -1
- package/node_modules/typebox/build/type/engine/evaluate/property.d.mts +30 -0
- package/node_modules/typebox/build/type/engine/evaluate/property.mjs +29 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +1 -4
- package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +2 -2
- package/node_modules/typebox/build/type/engine/object/from_union.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +1 -4
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +1 -4
- package/node_modules/typebox/build/type/engine/this/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/this/index.mjs +1 -0
- package/node_modules/typebox/build/value/clone/clone.d.mts +4 -3
- package/node_modules/typebox/build/value/clone/clone.mjs +5 -7
- package/node_modules/typebox/build/value/repair/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +25 -14
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +1 -1
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
- package/node_modules/zod/src/v4/core/compile.ts +9 -0
- package/node_modules/zod/src/v4/core/schemas.ts +35 -1
- package/node_modules/zod/src/v4/core/util.ts +13 -0
- package/node_modules/zod/src/v4/core/versions.ts +1 -1
- package/node_modules/zod/v4/core/compile.cjs +8 -0
- package/node_modules/zod/v4/core/compile.js +8 -0
- package/node_modules/zod/v4/core/schemas.cjs +30 -0
- package/node_modules/zod/v4/core/schemas.d.cts +3 -1
- package/node_modules/zod/v4/core/schemas.d.ts +3 -1
- package/node_modules/zod/v4/core/schemas.js +30 -0
- package/node_modules/zod/v4/core/util.cjs +15 -0
- package/node_modules/zod/v4/core/util.d.cts +2 -0
- package/node_modules/zod/v4/core/util.d.ts +2 -0
- package/node_modules/zod/v4/core/util.js +14 -0
- package/node_modules/zod/v4/core/versions.cjs +1 -1
- package/node_modules/zod/v4/core/versions.js +1 -1
- package/openclaw.plugin.json +11 -0
- package/package.json +11 -11
- package/dist/.setup/channel.runtime-DaGbm27q.mjs +0 -74
- package/dist/.setup/device-health-DnKAXW1v.mjs +0 -20
- package/dist/.setup/inbound-dedupe-CZnOq0ja.mjs +0 -47
- package/dist/.setup/setup-plugin-api-SO1hdrsT.mjs +0 -2
- package/node_modules/music-metadata/node_modules/content-type/LICENSE +0 -22
- package/node_modules/music-metadata/node_modules/content-type/README.md +0 -71
- package/node_modules/music-metadata/node_modules/content-type/dist/index.d.ts +0 -46
- package/node_modules/music-metadata/node_modules/content-type/dist/index.js +0 -176
- package/node_modules/music-metadata/node_modules/content-type/dist/index.js.map +0 -1
- package/node_modules/music-metadata/node_modules/content-type/package.json +0 -52
- package/node_modules/typebox/build/system/memory/freeze.d.mts +0 -4
- package/node_modules/typebox/build/system/memory/freeze.mjs +0 -6
|
@@ -17,6 +17,15 @@ path components.
|
|
|
17
17
|
case since `5ddca80`. Exposure is limited to consumers that call
|
|
18
18
|
`resolveRootPath()` or `resolveRootPathSync()` directly.
|
|
19
19
|
|
|
20
|
+
Releases through 0.26.5 also mishandle symlink targets containing another
|
|
21
|
+
symlink followed by `..`. Synchronous resolvers can admit an existing outside
|
|
22
|
+
target as an unrelated in-root path; both synchronous and asynchronous resolvers
|
|
23
|
+
can misresolve a missing target. The pending fix uses kernel canonicalization
|
|
24
|
+
for symlink hops and existing ancestors before interpreting a missing suffix.
|
|
25
|
+
Parent steps after unresolved components fail closed.
|
|
26
|
+
Acyclic chains of dangling symlinks still resolve to a missing-path result.
|
|
27
|
+
`resolveLocalPathFromRootsSync()` shares the synchronous fix.
|
|
28
|
+
|
|
20
29
|
## Threat model
|
|
21
30
|
|
|
22
31
|
You hand a `root()` boundary to a piece of code that takes caller-controlled relative paths. The library defends against a caller that:
|
|
@@ -77,6 +77,8 @@ Modes retaining owner read/write skip the extra mode-only file sync, so a crash
|
|
|
77
77
|
may leave the tighter staged `0600` instead of the wider requested mode. Modes
|
|
78
78
|
removing owner read or write, and corrections of an observed wider staged mode,
|
|
79
79
|
retain the post-chmod file sync. No parent is created or chmodded.
|
|
80
|
+
File and directory synchronization runs asynchronously on the retained descriptors;
|
|
81
|
+
cleanup waits for any pending publication synchronization before closing them.
|
|
80
82
|
Creation uses an exclusive, no-follow, close-on-exec open of a generated direct
|
|
81
83
|
child name. Writes use that descriptor. Inspection uses non-following metadata
|
|
82
84
|
operations, never a potentially blocking reopen of the leaf.
|
|
@@ -106,7 +106,7 @@ must retain that limitation rather than call it proved kernel overflow.
|
|
|
106
106
|
### Nightly workload
|
|
107
107
|
|
|
108
108
|
The nightly workflow runs on `ubuntu-latest` (x64), `ubuntu-24.04-arm`,
|
|
109
|
-
`
|
|
109
|
+
`xcode-27` (arm64), `xcode-27` under Rosetta (`x64`), and the Windows latest 16-core runner,
|
|
110
110
|
using Node 24 and freshly built native bindings. Each job has a 25-minute
|
|
111
111
|
budget, uploads one JSON result per scenario (including failures), and fails
|
|
112
112
|
if any scenario fails. Remaining scenarios still run after a failure. Only
|
|
@@ -108,12 +108,24 @@ Linux discards queued events for watches retired by fs-safe, including their
|
|
|
108
108
|
`IN_IGNORED` echoes, without invalidating unrelated subscriptions. A genuinely
|
|
109
109
|
unknown descriptor or kernel queue overflow still invalidates every subscription.
|
|
110
110
|
|
|
111
|
+
Windows may briefly report `EPERM` from `realpath` while an unrelated directory
|
|
112
|
+
is being deleted. Hint admission retries that observation at most twice before
|
|
113
|
+
reporting uncertainty; it never ignores persistent failures or relaxes the
|
|
114
|
+
identity checks on selected paths.
|
|
115
|
+
|
|
111
116
|
`mode` is required. `poll` never starts or loads the watch hub; guarded scans
|
|
112
117
|
may still use the existing addon. Existing `FS_SAFE_NATIVE_MODE=off` and
|
|
113
118
|
`require` policies apply: `require` plus an unavailable event backend rejects
|
|
114
119
|
`auto` too. Health reports the selected `events` or `poll` mode and failures
|
|
115
120
|
from selection have `operation: "watch"`.
|
|
116
121
|
|
|
122
|
+
If macOS cannot create or start an FSEvents stream during initial admission,
|
|
123
|
+
`auto` falls back to guarded polling. This includes the system-wide stream
|
|
124
|
+
ceiling: FSEvents does not expose a distinct capacity error. Explicit `events`
|
|
125
|
+
and native `require` mode reject with `helper-unavailable` instead. Exclusion
|
|
126
|
+
configuration failures remain fatal, and a stream failure after readiness
|
|
127
|
+
does not silently change the subscription's mode.
|
|
128
|
+
|
|
117
129
|
Linux installs each watch **before** enumerating children. It opens directories
|
|
118
130
|
beneath the Root using the shared guarded native open (openat2, or its checked
|
|
119
131
|
openat fallback), checks exact identities, verifies the procfs namespace, and
|
|
@@ -190,13 +202,50 @@ handles and delivery queues, and closing one does not retire another's observati
|
|
|
190
202
|
| `persistent` | `true`; `false` lets Node exit with the subscription still open |
|
|
191
203
|
| `intervalMs` | 30000 with events; 1000 with poll; minimum 20 ms |
|
|
192
204
|
| `pollIntervalMs` | Optional polling override; minimum 20 ms, maximum 2147483647 ms (same as `intervalMs`) |
|
|
205
|
+
| `fullReconcileIntervalMs` | 300000 ms (5 minutes); minimum 20 ms, maximum 2147483647 ms |
|
|
193
206
|
| `maxDirectories` | 4096 observed directories, including scope ancestors |
|
|
194
207
|
| `maxEntries` | 100000 examined entries per pass, including excluded entries |
|
|
195
208
|
| `maxPendingPaths` | 256; maximum 4096 |
|
|
196
209
|
| Reconciliation | One active pass and one coalesced pending pass; no convergence/pass budget |
|
|
197
210
|
|
|
198
|
-
|
|
199
|
-
|
|
211
|
+
On Node, bulk watcher filesystem observations run in a shared `worker_thread`,
|
|
212
|
+
including exact metadata probes, path resolution, synchronous directory reads and
|
|
213
|
+
all pre/post observation guards. The worker retains open listing handles until
|
|
214
|
+
joined disposal. Policy callbacks and native event delivery remain with the
|
|
215
|
+
subscription, and host snapshot bookkeeping yields every 32 entries. The worker
|
|
216
|
+
is shared across subscriptions with the same native policy and stops when its
|
|
217
|
+
last subscription closes; `persistent: false` still permits process exit.
|
|
218
|
+
Ordinary single Root operations retain their synchronous observation fences.
|
|
219
|
+
Source-loader, test-hook, Bun and Deno execution uses the same guarded helpers
|
|
220
|
+
with explicit event-loop yields between entries, probes and directory checks.
|
|
221
|
+
A slow filesystem call or user callback cannot be preempted in that fallback;
|
|
222
|
+
callbacks must remain cheap. Worker startup/observation failures fail closed.
|
|
223
|
+
|
|
224
|
+
Periodic metadata checks run without needing an event. Each check compares exact
|
|
225
|
+
bigint identities, mode, link count, size, mtime and ctime with the last guarded
|
|
226
|
+
observations. Observations less than one second old are re-listed until the
|
|
227
|
+
clock update window passes, because timestamp storage precision alone does not
|
|
228
|
+
prove update frequency. A later guarded listing must confirm each such directory
|
|
229
|
+
before its cached names become reusable, even if the next tick arrives after
|
|
230
|
+
that window. Entirely unchanged ticks retain their previous snapshot after the
|
|
231
|
+
final identity fence. Each probe also verifies the Root's canonical path, so
|
|
232
|
+
moving an ancestor above the Root cannot preserve admission using only an
|
|
233
|
+
unchanged inode. Unchanged directories reuse their guarded listings; changed
|
|
234
|
+
directories and newly discovered children are listed and verified through the
|
|
235
|
+
ordinary Root guards. File metadata is checked separately because in-place writes
|
|
236
|
+
need not change the parent directory's timestamps. Probe metadata never admits a
|
|
237
|
+
new name or authorizes a read. Reused directory identities and observations are
|
|
238
|
+
checked again after the pass to detect ancestor swaps during file probes.
|
|
239
|
+
|
|
240
|
+
Full guarded reconciliation still runs every five minutes by default, controlled
|
|
241
|
+
by `fullReconcileIntervalMs`. It also runs on a probe error, identity mismatch,
|
|
242
|
+
timestamp regression, or devices whose guarded timestamps show only coarse
|
|
243
|
+
(millisecond or worse) resolution. A single aligned timestamp on an otherwise
|
|
244
|
+
precise device does not disable incremental checks. This safety net catches missed events and provides conservative
|
|
245
|
+
behavior on filesystems that cannot support incremental checks. Listing work
|
|
246
|
+
scales with changed directories; stat-only probes still scale with watched
|
|
247
|
+
entries. `exclude` callbacks must remain cheap; they are evaluated on cached
|
|
248
|
+
entries during incremental checks so changing an exclusion still takes effect.
|
|
200
249
|
Hint validation, scope relevance, and spelling-alias admission share the internal
|
|
201
250
|
hint module. Bounded change merging preserves structural precedence and insertion
|
|
202
251
|
order; nameless children require remaining tree depth, while folded subtrees also
|
|
@@ -209,8 +258,12 @@ hints, vanished or hard-linked leaves, changed topology, uncertain identities,
|
|
|
209
258
|
backend loss, and batches without filenames still receive a full guarded pass.
|
|
210
259
|
`reconcile()`, initial admission, and scope replacement always reconcile every scope.
|
|
211
260
|
The periodic timer is independent of event traffic, so frequent hints cannot defer
|
|
212
|
-
the full
|
|
213
|
-
|
|
261
|
+
the full safety-net check. Repeated passes reuse bounded pathname strings and
|
|
262
|
+
unchanged guarded observations; neither raw hints nor probes grant filesystem authority.
|
|
263
|
+
On Windows with the native helper, each listing fence obtains exact directory
|
|
264
|
+
identity and physical path from one short-lived handle. Native-off and POSIX
|
|
265
|
+
scans retain the JavaScript checks. Both paths recheck the Root and reject
|
|
266
|
+
substituted directories or redirected ancestors at the same fences.
|
|
214
267
|
When polling is selected, the interval is `pollIntervalMs`, then `intervalMs`,
|
|
215
268
|
then 1000 ms, in that order. This applies to explicit `mode: "poll"`, `auto`
|
|
216
269
|
selecting polling, and `auto` falling back after an unsupported event backend.
|
|
@@ -242,7 +295,9 @@ observe a selected sentinel edit and drain its trailing events.
|
|
|
242
295
|
Each later pass compares with the previous snapshot, publishes bounded differences,
|
|
243
296
|
and adopts its result as the next snapshot. Vanishing entries, kind changes, and
|
|
244
297
|
transient descendant scan errors produce structural invalidations, preserving the
|
|
245
|
-
Root identity checks.
|
|
298
|
+
Root identity checks. A hinted child absent from both scans invalidates its
|
|
299
|
+
admitted parent, since a consumer may have observed that child between scans.
|
|
300
|
+
The unobserved child spelling is not published. Events during a pass coalesce into one pending pass and
|
|
246
301
|
retain bounded detail regardless of how long the scan takes. The 25 ms hint
|
|
247
302
|
coalescing window does not impose a scan deadline. A full native callback queue
|
|
248
303
|
retains its bounded pending batch for retry. Pending native and JavaScript hint queues degrade to coarse subtree hints when
|
|
@@ -268,6 +323,8 @@ await `close()` or `[Symbol.asyncDispose]()` to join owned work.
|
|
|
268
323
|
`health()` returns `starting`, `ready`, `reconciling`, `unavailable`, or `closed`,
|
|
269
324
|
the actual mode, observed `directories`, and optional `{ operation, code, error }`
|
|
270
325
|
failure. A running reconciliation reports `reconciling`, then returns to `ready`.
|
|
326
|
+
A Root that disappears during identity revalidation reports `path-mismatch`; its underlying filesystem error remains available as the cause.
|
|
327
|
+
|
|
271
328
|
Observation becomes `unavailable` on loss of Root authority (removed, replaced,
|
|
272
329
|
or inaccessible), fatal native backend/registration failures such as `watch-limit`,
|
|
273
330
|
deterministic size limits (`too-large`, operation `scan`), or callback contract
|
|
@@ -225,7 +225,12 @@ await fs.create("config/flushed.json", initial, { atomic: true, durable: "file"
|
|
|
225
225
|
|
|
226
226
|
`atomic: true` finishes all bytes in a sibling stage before publication.
|
|
227
227
|
The native backend uses its no-replace rename; the JavaScript fallback hardlinks
|
|
228
|
-
the completed stage and
|
|
228
|
+
the completed stage and removes its verified temporary name. On POSIX it pins
|
|
229
|
+
the destination before closing the stage descriptor, preventing NFS deferred
|
|
230
|
+
unlink from retaining an extra link. Identity and link counts are rechecked
|
|
231
|
+
after this handoff.
|
|
232
|
+
Unreadable final modes retain the original descriptor on platforms without a
|
|
233
|
+
read-free file open; strict post-publication checks still apply there.
|
|
229
234
|
When the OS refuses hardlinks, it uses the [placeholder-rename fallback](#publication-without-hardlinks).
|
|
230
235
|
Other processes can briefly observe both linked names, or an empty placeholder
|
|
231
236
|
before the atomic replacement. Entries present at the exclusive claim are preserved, including dangling symlinks;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/fs-safe",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.13",
|
|
4
4
|
"description": "Capability-style filesystem roots for Node.js apps that handle untrusted relative paths.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"filesystem",
|
|
@@ -157,7 +157,8 @@
|
|
|
157
157
|
"test:coverage:collect": "pnpm build && pnpm archive:wasm:allocator-tests && vitest run --coverage --coverage.reporter=json --coverage.thresholds.lines=0 --coverage.thresholds.functions=0 --coverage.thresholds.statements=0 --coverage.thresholds.branches=0",
|
|
158
158
|
"test:coverage:merge": "node scripts/merge-coverage.mjs",
|
|
159
159
|
"test:security": "vitest run test/fs-safe.test.ts test/read-boundary-bypass.test.ts test/write-boundary-bypass.test.ts test/additional-boundary-bypass.test.ts test/adversarial-boundary-payloads.test.ts",
|
|
160
|
-
"check": "pnpm lint:file-size && pnpm lint:fs-boundary && pnpm
|
|
160
|
+
"check": "pnpm lint:file-size && pnpm lint:fs-boundary && pnpm check:runtime",
|
|
161
|
+
"check:runtime": "pnpm build && pnpm archive:wasm:allocator-tests && pnpm docs:check && pnpm test && node scripts/check-pack.mjs",
|
|
161
162
|
"docs:check": "node scripts/check-doc-examples.mjs",
|
|
162
163
|
"docs:site": "node scripts/build-docs-site.mjs",
|
|
163
164
|
"native:build": "pnpm --filter @openclaw/fs-safe-native-build build",
|
|
@@ -179,23 +180,24 @@
|
|
|
179
180
|
"archive:producer-smoke": "node scripts/archive-producer-smoke.mjs"
|
|
180
181
|
},
|
|
181
182
|
"optionalDependencies": {
|
|
182
|
-
"@openclaw/fs-safe-darwin-arm64": "0.26.
|
|
183
|
-
"@openclaw/fs-safe-darwin-x64": "0.26.
|
|
184
|
-
"@openclaw/fs-safe-freebsd-arm64": "0.26.
|
|
185
|
-
"@openclaw/fs-safe-freebsd-x64": "0.26.
|
|
186
|
-
"@openclaw/fs-safe-linux-arm64-gnu": "0.26.
|
|
187
|
-
"@openclaw/fs-safe-linux-arm64-musl": "0.26.
|
|
188
|
-
"@openclaw/fs-safe-linux-x64-gnu": "0.26.
|
|
189
|
-
"@openclaw/fs-safe-linux-x64-musl": "0.26.
|
|
190
|
-
"@openclaw/fs-safe-win32-arm64-msvc": "0.26.
|
|
191
|
-
"@openclaw/fs-safe-win32-x64-msvc": "0.26.
|
|
183
|
+
"@openclaw/fs-safe-darwin-arm64": "0.26.13",
|
|
184
|
+
"@openclaw/fs-safe-darwin-x64": "0.26.13",
|
|
185
|
+
"@openclaw/fs-safe-freebsd-arm64": "0.26.13",
|
|
186
|
+
"@openclaw/fs-safe-freebsd-x64": "0.26.13",
|
|
187
|
+
"@openclaw/fs-safe-linux-arm64-gnu": "0.26.13",
|
|
188
|
+
"@openclaw/fs-safe-linux-arm64-musl": "0.26.13",
|
|
189
|
+
"@openclaw/fs-safe-linux-x64-gnu": "0.26.13",
|
|
190
|
+
"@openclaw/fs-safe-linux-x64-musl": "0.26.13",
|
|
191
|
+
"@openclaw/fs-safe-win32-arm64-msvc": "0.26.13",
|
|
192
|
+
"@openclaw/fs-safe-win32-x64-msvc": "0.26.13",
|
|
192
193
|
"jszip": "^3.10.2"
|
|
193
194
|
},
|
|
194
195
|
"devDependencies": {
|
|
195
|
-
"@emnapi/runtime": "2.0.0-
|
|
196
|
-
"@napi-rs/cli": "3.10.
|
|
196
|
+
"@emnapi/runtime": "2.0.0-beta.2",
|
|
197
|
+
"@napi-rs/cli": "3.10.9",
|
|
197
198
|
"@types/node": "^26.6.5",
|
|
198
|
-
"@vitest/coverage-v8": "5.0.
|
|
199
|
+
"@vitest/coverage-v8": "5.0.5",
|
|
200
|
+
"acorn": "8.19.0",
|
|
199
201
|
"fast-check": "^4.10.2",
|
|
200
202
|
"istanbul-lib-coverage": "3.2.2",
|
|
201
203
|
"istanbul-lib-report": "3.0.1",
|
|
@@ -203,7 +205,7 @@
|
|
|
203
205
|
"sigstore": "5.0.0",
|
|
204
206
|
"tar": "7.5.22",
|
|
205
207
|
"typescript": "^7.0.2",
|
|
206
|
-
"vite": "8.3.
|
|
208
|
+
"vite": "8.3.5",
|
|
207
209
|
"vitest": "^5.0.3"
|
|
208
210
|
},
|
|
209
211
|
"engines": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -65,9 +65,34 @@ extractFiles('example.zip').catch(console.error);
|
|
|
65
65
|
A class for handling ZIP file parsing and extraction.
|
|
66
66
|
#### Constructor
|
|
67
67
|
```ts
|
|
68
|
-
new ZipHandler(tokenizer: ITokenizer)
|
|
68
|
+
new ZipHandler(tokenizer: ITokenizer, options?: ZipHandlerOptions)
|
|
69
69
|
```
|
|
70
70
|
- **tokenizer**: An instance of ITokenizer to read the ZIP archive.
|
|
71
|
+
- **options**: Optional per-entry byte limits. Each accepts a positive safe integer or `Infinity`.
|
|
72
|
+
Omitted limits default to `Infinity`, preserving unlimited processing.
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
const zipHandler = new ZipHandler(tokenizer, {
|
|
76
|
+
maxDataDescriptorScanBytes: 1024 * 1024,
|
|
77
|
+
maxCompressedSize: 1024 * 1024,
|
|
78
|
+
maxUncompressedSize: 4 * 1024 * 1024
|
|
79
|
+
});
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`maxDataDescriptorScanBytes` bounds bytes before the descriptor signature when the compressed
|
|
83
|
+
size is unknown, even for ignored entries. Signature lookahead uses up to four additional bytes.
|
|
84
|
+
`maxCompressedSize` bounds compressed data buffered for selected entries, and
|
|
85
|
+
`maxUncompressedSize` bounds their decompressed output, including stored entries.
|
|
86
|
+
Limits apply to local-header and central-directory sizes before allocation, and to actual
|
|
87
|
+
output before retaining chunks or combining buffers. Decompression is canceled on overflow.
|
|
88
|
+
These are per-entry limits, not a total process memory budget; tokenizer lookahead and native
|
|
89
|
+
decompression have their own buffers. Configure tokenizer limits separately where available.
|
|
90
|
+
|
|
91
|
+
A limit violation throws the exported `ZipLimitError` (a `RangeError`), with `limit`,
|
|
92
|
+
`requestedSize`, and `maxSize` properties. No data handler is called for the rejected entry.
|
|
93
|
+
Invalid options throw `RangeError` when constructing the handler. After a processing failure,
|
|
94
|
+
close the tokenizer; extraction is not resumable.
|
|
95
|
+
|
|
71
96
|
#### Methods
|
|
72
97
|
|
|
73
98
|
- `isZip(): Promise<boolean>`
|
|
@@ -110,5 +135,9 @@ This module is a [pure ECMAScript Module (ESM)](https://gist.github.com/sindreso
|
|
|
110
135
|
The distributed JavaScript codebase is compliant with the [ECMAScript 2020 (11th Edition)](https://en.wikipedia.org/wiki/ECMAScript_version_history#11th_Edition_%E2%80%93_ECMAScript_2020) standard.
|
|
111
136
|
If used with Node.js, it requires version ≥ 18.
|
|
112
137
|
|
|
138
|
+
## Contributing
|
|
139
|
+
|
|
140
|
+
See the [contribution guide](CONTRIBUTING.md) for code style and development checks.
|
|
141
|
+
|
|
113
142
|
## License
|
|
114
143
|
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ITokenizer } from 'strtok3';
|
|
2
|
-
import { type
|
|
2
|
+
import { type ZipHandlerOptions } from './ZipLimitError.js';
|
|
3
|
+
import { type IFileHeader, type ILocalFileHeader } from './ZipToken.js';
|
|
3
4
|
export type InflateFileFilterResult = {
|
|
4
5
|
handler: InflatedDataHandler | false;
|
|
5
6
|
stop?: boolean;
|
|
@@ -13,7 +14,11 @@ export type InflatedDataHandler = (fileData: Uint8Array) => Promise<void>;
|
|
|
13
14
|
export declare class ZipHandler {
|
|
14
15
|
private tokenizer;
|
|
15
16
|
private syncBuffer;
|
|
16
|
-
|
|
17
|
+
private readonly limits;
|
|
18
|
+
constructor(tokenizer: ITokenizer, options?: ZipHandlerOptions);
|
|
19
|
+
/** Reject oversized entries before retaining data or allocating a combined buffer. */
|
|
20
|
+
private checkLimit;
|
|
21
|
+
private checkEntrySize;
|
|
17
22
|
isZip(): Promise<boolean>;
|
|
18
23
|
private peekSignature;
|
|
19
24
|
findEndOfCentralDirectoryLocator(): Promise<number>;
|
|
@@ -21,6 +26,6 @@ export declare class ZipHandler {
|
|
|
21
26
|
unzip(fileCb: InflateFileFilter): Promise<void>;
|
|
22
27
|
private iterateOverCentralDirectory;
|
|
23
28
|
private inflate;
|
|
24
|
-
private
|
|
29
|
+
private decompressDeflateRaw;
|
|
25
30
|
private readLocalFileHeader;
|
|
26
31
|
}
|