@openclaw/matrix 2026.10.10-beta.5 → 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-config-CRsKoMqJ.mjs → account-config-CVM2a28p.mjs} +1 -2
- package/dist/.setup/{account-selection-Bs_jCAaG.mjs → account-selection-Cow3TMFO.mjs} +15 -18
- package/dist/.setup/{approval-handler.runtime-6u08WKWh.mjs → approval-handler.runtime-_0gqiVgR.mjs} +19 -55
- package/dist/.setup/{approval-reactions-D2pEUrFS.mjs → approval-reactions-Bz_8XB01.mjs} +4 -5
- package/dist/.setup/{backup-health-Dm_YMVFT.mjs → backup-health-BxH69np2.mjs} +1 -2
- package/dist/.setup/{channel-CqkLHNdp.mjs → channel-ByHcZU28.mjs} +306 -385
- package/dist/.setup/channel.runtime-sNicWjmD.mjs +71 -0
- package/dist/.setup/{channel.setup-ClA7V_Ba.mjs → channel.setup-Bmba21y9.mjs} +30 -45
- package/dist/.setup/{cli-BLgMlO3I.mjs → cli-B26pps0Q.mjs} +264 -333
- package/dist/.setup/{cli-metadata-COWLWR3E.mjs → cli-metadata-CKGwVfmT.mjs} +3 -5
- package/dist/.setup/{client-C4Gibhzl.mjs → client-Bqu801rH.mjs} +98 -190
- package/dist/.setup/{client-C7pZ6gAl.mjs → client-N8TEwtmk.mjs} +7 -8
- package/dist/.setup/{client-bootstrap-kOIDV4z_.mjs → client-bootstrap-k6Zm1M8Y.mjs} +6 -12
- package/dist/.setup/{client-support-D-xHScuo.mjs → client-support-CqXAOZp3.mjs} +3 -18
- package/dist/.setup/{config-paths-CnREYb1Y.mjs → config-paths-DBpHxDyc.mjs} +1 -2
- package/dist/.setup/{create-client-BS8UYx6N.mjs → create-client-DaGljdrk.mjs} +8 -9
- package/dist/.setup/{credentials-CPnJZaZB.mjs → credentials-DVmY0miU.mjs} +9 -24
- package/dist/.setup/{credentials-read-D2ULV55A.mjs → credentials-read-rPqEpuxv.mjs} +7 -8
- package/dist/.setup/{credentials-state-B3cuUFwZ.mjs → credentials-state-jxq29yQw.mjs} +1 -2
- package/dist/.setup/{crypto-node.runtime-6Aj_ltHQ.mjs → crypto-node.runtime-E_hqXGxm.mjs} +1 -2
- package/dist/.setup/{crypto-runtime-D8yY7kjD.mjs → crypto-runtime-KQupbxSM.mjs} +80 -171
- package/dist/.setup/{crypto-state-store-D4wrCvFs.mjs → crypto-state-store-p1mdYTWH.mjs} +16 -12
- package/dist/.setup/{crypto-store-ownership-Z_Y5WRKr.mjs → crypto-store-ownership-7lVHeXWL.mjs} +3 -4
- package/dist/.setup/{crypto-unsafe-state-doctor-C8szCYmf.mjs → crypto-unsafe-state-doctor-CG2nJk8P.mjs} +10 -10
- package/dist/.setup/{deps-L_1bUAGL.mjs → deps-CVPT2Ros.mjs} +5 -5
- package/dist/.setup/device-health-D7n-lPeb.mjs +7 -0
- package/dist/.setup/{direct-management-B3wYhx_M.mjs → direct-management-D59C1WO-.mjs} +27 -37
- package/dist/.setup/{directory-live-BpSz-FQB.mjs → directory-live-YixmpyLW.mjs} +7 -8
- package/dist/.setup/doctor-contract-GiXgCj7k.mjs +37 -0
- package/dist/.setup/{draft-stream-K6Lu-JEI.mjs → draft-stream-C09OtoJZ.mjs} +11 -18
- package/dist/.setup/{encryption-guidance-D5_IsDIy.mjs → encryption-guidance-DfbEaKct.mjs} +3 -4
- package/dist/.setup/{env-vars-aEBngJPa.mjs → env-vars-Bh1iOXJ1.mjs} +1 -2
- package/dist/.setup/{errors-Bw4EHwKX.mjs → errors-CL3YJV8U.mjs} +1 -2
- package/dist/.setup/{event-helpers-CxNgMQqH.mjs → event-helpers-DDUjVVf7.mjs} +1 -2
- package/dist/.setup/{exec-approvals-DtNw0e04.mjs → exec-approvals-C3rCm0Sn.mjs} +35 -48
- package/dist/.setup/{file-sync-store-CUH8EAJq.mjs → file-sync-store-NW6eDuai.mjs} +54 -11
- package/dist/.setup/{http-client-ByR4STVQ.mjs → http-client-CqnKFKUH.mjs} +23 -38
- package/dist/.setup/{idb-persistence-BHTYPRe_.mjs → idb-persistence-CmoPtwDD.mjs} +25 -19
- package/dist/.setup/{idb-persistence-lock-Bh3ZLIsE.mjs → idb-persistence-lock-CH2K6d_3.mjs} +1 -2
- package/dist/.setup/{joined-room-encryption-BAD70N5n.mjs → joined-room-encryption-9sJK1kM-.mjs} +5 -5
- package/dist/.setup/{logger-CXQnpXCt.mjs → logger-B9TwnY6C.mjs} +4 -5
- package/dist/.setup/{logging-BKV8TYQq.mjs → logging-Bnsn7s4r.mjs} +21 -16
- package/dist/.setup/{messages-O6G0-_xr.mjs → messages-BjzsVgS6.mjs} +45 -33
- package/dist/.setup/{monitor-BSEZMFyq.mjs → monitor-D4vhbNUM.mjs} +675 -853
- package/dist/.setup/{onboarding-DQLF7huY.mjs → onboarding-DKmt3jpW.mjs} +119 -132
- package/dist/.setup/{outbound-C0bqZr89.mjs → outbound-wsXTF0z_.mjs} +3 -4
- package/dist/.setup/{profile-update-BbfEg9Fx.mjs → profile-update-DX060MnL.mjs} +18 -20
- package/dist/.setup/{reaction-events-51DOeO0I.mjs → reaction-events-BMsatzs4.mjs} +76 -102
- package/dist/.setup/{resolve-targets-BJ5sIKeM.mjs → resolve-targets-Yz_3aN_2.mjs} +4 -5
- package/dist/.setup/{retired-state-DOCruzWd.mjs → retired-state-Bs3Gqkge.mjs} +10 -10
- package/dist/.setup/{room-info-DAJKw-I8.mjs → room-info-OGKjk422.mjs} +24 -13
- package/dist/.setup/{runtime-1kn1P6io.mjs → runtime-Ck8TjD7L.mjs} +1 -2
- package/dist/.setup/{doctor-contract-CsTNmbMa.mjs → runtime-doctor-migrations-CSvRANPN.mjs} +17 -58
- package/dist/.setup/{runtime-setter-api-i2MOXoT3.mjs → runtime-setter-api-CpwhcBQK.mjs} +1 -1
- package/dist/.setup/{sdk-ByU8So5S.mjs → sdk-BXcIyN-I.mjs} +114 -141
- package/dist/.setup/{secret-contract-DxyzKSzf.mjs → secret-contract-AKnr45nw.mjs} +2 -3
- package/dist/.setup/{secret-contract-api-Dukgvike.mjs → secret-contract-api-DMSwMIxd.mjs} +1 -1
- package/dist/.setup/{send-CFx1h7xE.mjs → send-CWjH-l-T.mjs} +189 -287
- package/dist/.setup/{send-currentness-C2rMVVIQ.mjs → send-currentness-D1x6YP9O.mjs} +11 -19
- package/dist/.setup/{setup-bootstrap-DANlsW-o.mjs → setup-bootstrap-yKeGh4Iy.mjs} +4 -5
- package/dist/.setup/{setup-core-EQceJMZZ.mjs → setup-core-BaKffgBi.mjs} +28 -58
- package/dist/.setup/setup-plugin-api-B_t4waBw.mjs +2 -0
- package/dist/.setup/{startup-verification-UU8DUvi4.mjs → startup-verification-C-lhD0gk.mjs} +11 -25
- package/dist/.setup/{state-layout-walk-BQMgMykU.mjs → state-layout-walk-BqCZTHpp.mjs} +2 -3
- package/dist/.setup/{storage-l8V0XsGM.mjs → storage-BLLN9jYG.mjs} +22 -28
- package/dist/.setup/{storage-paths-B51JM-pC.mjs → storage-paths-e_Vq6cvw.mjs} +1 -2
- package/dist/.setup/{subagent-hooks-CSY4iwa_.mjs → subagent-hooks-D-lCcLGQ.mjs} +2 -3
- package/dist/.setup/{sync-cache-state-Cnm4TCEI.mjs → sync-cache-state-B4hJFIPw.mjs} +11 -12
- package/dist/.setup/sync-state-Cu1nagBV.mjs +11 -0
- package/dist/.setup/{target-ids-HhcaKX1n.mjs → target-ids-DltG_ZHJ.mjs} +1 -2
- package/dist/.setup/task-runner-CYyGHdNW.mjs +51 -0
- package/dist/.setup/{thread-binding-api-BvuaKpd0.mjs → thread-binding-api-OtSciHmZ.mjs} +2 -3
- package/dist/.setup/{thread-bindings-C0gv7BEN.mjs → thread-bindings-BA2xESjV.mjs} +37 -54
- package/dist/.setup/{thread-bindings-shared-CPjUA0Ib.mjs → thread-bindings-shared-CBlJu3Wz.mjs} +3 -4
- package/dist/.setup/{tool-actions-DGYRJDEV.mjs → tool-actions-CRuiVbqj.mjs} +67 -80
- package/dist/.setup/{url-validation-CF6pG6eE.mjs → url-validation-DesoKUns.mjs} +2 -4
- package/dist/.setup/{verification-DUxuApWC.mjs → verification-C5x4Hy5Y.mjs} +8 -9
- package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
- package/dist/api.js +8 -8
- package/dist/auth-presence.js +3 -4
- 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 +155 -136
- package/dist/helper-api.js +3 -3
- package/dist/index.js +3 -4
- package/dist/plugin-entry.handlers.runtime.js +3 -4
- package/dist/runtime-api.js +7 -8
- package/dist/runtime-setter-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +2 -2
- package/dist/setup-entry.js +4 -5
- package/dist/setup-plugin-api.js +1 -1
- package/dist/subagent-hooks-api.js +2 -3
- package/dist/thread-binding-api.js +1 -1
- package/dist/thread-bindings-runtime.js +1 -1
- package/node_modules/@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/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/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/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/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-BfZdvlho.mjs +0 -76
- package/dist/.setup/device-health-Be60VF1w.mjs +0 -21
- package/dist/.setup/inbound-dedupe-C-EBGY0B.mjs +0 -48
- package/dist/.setup/setup-plugin-api-f8mWghxf.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
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Compiler qualification investigation
|
|
3
|
+
description: "Hypotheses, experiments, and acceptance gates for tsc-ts and scriptc in fs-safe."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Compiler qualification investigation
|
|
7
|
+
|
|
8
|
+
Status: investigation plan, 2026-10-17. This document does not qualify a compiler, runtime, or package change.
|
|
9
|
+
|
|
10
|
+
Investigate two separate capabilities:
|
|
11
|
+
|
|
12
|
+
1. Use **tsc-ts** to check TypeScript and emit the existing Node.js package faster.
|
|
13
|
+
2. Use **scriptc** to compile fs-safe application code into native programs while preserving its safety contracts.
|
|
14
|
+
|
|
15
|
+
The second capability changes the runtime. A faster compiler does not establish faster filesystem operations.
|
|
16
|
+
Keep both investigations open until measurements and contract proof support a decision.
|
|
17
|
+
Prepare small draft PRs. Obtain explicit maintainer approval before merging, releasing, or deploying anything.
|
|
18
|
+
|
|
19
|
+
## Frozen baseline
|
|
20
|
+
|
|
21
|
+
| Input | Investigation identity |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| fs-safe | `0f396cd9cbd05519a9600d95daadcf827bff6b76`, package `0.26.7` |
|
|
24
|
+
| Package manager | `pnpm@12.10.1` |
|
|
25
|
+
| Official compiler | Lockfile resolves `typescript@7.0.2` |
|
|
26
|
+
| tsc-ts source | `7e21c1012710cc438fd30da0f22f30e276d4222b` |
|
|
27
|
+
| scriptc source | `66125d783b0e03af6e28843229c10b6436333c08` |
|
|
28
|
+
| Initial candidate | Published `tsc-ts@0.0.2` + `@tsc-ts/linux-x64-gnu@0.0.2`; release tag target `b0dbfb0ea2240b59d51de5de1aae3a35a9f3dc10`, distinct from inspected main above. |
|
|
29
|
+
|
|
30
|
+
Do not equate a release binary with a later source revision that declares the same package version.
|
|
31
|
+
Freeze source, lockfile, compiler libraries, runner, flags, and binary identities for each comparison.
|
|
32
|
+
Changes to those inputs require new evidence for the affected experiment.
|
|
33
|
+
|
|
34
|
+
The frozen [tsconfig](https://github.com/openclaw/fs-safe/blob/0f396cd9cbd05519a9600d95daadcf827bff6b76/tsconfig.json) includes 317 source TypeScript files. It excludes the test tree and JavaScript tooling.
|
|
35
|
+
Its contract includes strict NodeNext, ES2022 output, declarations, `noUncheckedIndexedAccess`, and `verbatimModuleSyntax`.
|
|
36
|
+
|
|
37
|
+
The [build script](https://github.com/openclaw/fs-safe/blob/0f396cd9cbd05519a9600d95daadcf827bff6b76/scripts/prepack-build.mjs) invokes the official compiler through Node.
|
|
38
|
+
It then prepares the Windows helper and Rust/WASM archive artifact.
|
|
39
|
+
Measure the compiler separately from the complete build.
|
|
40
|
+
|
|
41
|
+
The [package API checker](https://github.com/openclaw/fs-safe/blob/0f396cd9cbd05519a9600d95daadcf827bff6b76/scripts/public-api-surface.mjs) imports `typescript/unstable/ast` and `typescript/unstable/sync`.
|
|
42
|
+
Keep that dependency when evaluating a different compiler CLI.
|
|
43
|
+
Its export-name and error-code checks do not prove complete declaration-signature parity.
|
|
44
|
+
|
|
45
|
+
## Hypotheses and experiments
|
|
46
|
+
|
|
47
|
+
| ID | Hypothesis | Experiment | Acceptance gate |
|
|
48
|
+
| --- | --- | --- | --- |
|
|
49
|
+
| H1 | tsc-ts preserves checking and emission. | Compare the official compiler and native tsc-ts on identical source, config, libraries, and consumer fixtures. | Equal exit status and diagnostics. Explain every emitted JS or declaration difference. |
|
|
50
|
+
| H2 | Compiler acceleration materially improves this package's workflow. | Measure compiler-only checking, emission, and complete builds separately. | Repeatable benefit on representative runners without hiding failed runs or memory regressions. |
|
|
51
|
+
| H3 | Candidate output preserves the published package contract. | Install each generated tarball and exercise all public subpaths, declarations, assets, and lifecycle behavior. | Consumer behavior and types remain compatible. No accidental fallback to official-compiler output. |
|
|
52
|
+
| H4 | scriptc supports the host mechanisms fs-safe requires. | Probe real native loading, exact identities, flags, disposal, Workers, and WASM before a whole-library build. | Preserve every required mechanism or identify a reviewed architecture change. Unsupported remains unsupported. |
|
|
53
|
+
| H5 | Native compilation helps actual filesystem workloads. | Measure lexical work, guarded I/O, archives, and watch workloads after semantic qualification. | Representative end-to-end gains with unchanged safety, cancellation, and resource ownership. |
|
|
54
|
+
| H6 | Differential findings reveal ordinary fs-safe or consumer bugs. | Reproduce each discrepancy with the official compiler and normal Node/Bun. | Establish the violated contract and repair its owner independently of compiler adoption. |
|
|
55
|
+
| H7 | A fork is necessary and maintainable. | Minimize an upstream blocker, identify its owner, and test the smallest patch. | Accepted requirement, reproducible defect, bounded maintenance cost, and upstream synchronization plan. |
|
|
56
|
+
|
|
57
|
+
### Compiler parity protocol
|
|
58
|
+
|
|
59
|
+
1. Record source and lockfile hashes, effective config, resolved input files, compiler versions, libraries, and binary hashes.
|
|
60
|
+
2. Compare the locked official compiler with the candidate native executable.
|
|
61
|
+
3. Use the matching TypeScript-Go oracle and Node-hosted tsc-ts to localize disagreements when needed.
|
|
62
|
+
4. Compare diagnostics by category, code, relative file, span, and message.
|
|
63
|
+
5. Include valid consumers and intentional type errors. A candidate must not silently omit invalid inputs.
|
|
64
|
+
6. Compare emitted file inventories and bytes, including every `.js` and `.d.ts` file.
|
|
65
|
+
7. Investigate differences before introducing normalization. Preserve error locations and meaningful output differences.
|
|
66
|
+
8. Compile consumer fixtures against both declaration sets. Cover overloads, generics, unions, disposal, defaults, and public subpaths.
|
|
67
|
+
|
|
68
|
+
Reuse upstream corpus and package tests where they answer the same question.
|
|
69
|
+
The inspected [upstream benchmark](https://github.com/vercel-labs/tsc-ts/blob/7e21c1012710cc438fd30da0f22f30e276d4222b/packages/tsc-ts/scripts/bench.mjs#L77-L106) needs care.
|
|
70
|
+
Its whole-project timer ignores child status, and that comparison omits native tsc-ts.
|
|
71
|
+
Record this as an upstream follow-up. Do not use that timing table as fs-safe qualification.
|
|
72
|
+
|
|
73
|
+
### First harness
|
|
74
|
+
|
|
75
|
+
Run `scripts/compiler-qualification.mjs` on an isolated validation host after
|
|
76
|
+
`pnpm install --frozen-lockfile`. Supply the candidate's native executable,
|
|
77
|
+
not its npm JavaScript launcher. Keep its installer provenance separately:
|
|
78
|
+
release, source commit, npm integrity, platform package, and download origin.
|
|
79
|
+
|
|
80
|
+
```sh
|
|
81
|
+
node scripts/compiler-qualification.mjs \
|
|
82
|
+
--candidate /path/to/native/tsc-ts \
|
|
83
|
+
--output /path/to/new-evidence-directory
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
The output directory must be new and its parent must exist. The harness resolves
|
|
87
|
+
the locked official `typescript@7.0.2` and its matching platform package, then
|
|
88
|
+
uses both native executables directly. It sets `TSC_TS_LIB_DIR` to the official
|
|
89
|
+
platform package's libraries and verifies the actual resolved input bytes.
|
|
90
|
+
The official package remains installed for the existing API checker.
|
|
91
|
+
The harness clears inherited `TSC_TS_*`, `GOGC`, `GOMEMLIMIT`, `GOMAXPROCS`, and
|
|
92
|
+
`GODEBUG` tuning before setting the library directory. It records cleared names.
|
|
93
|
+
|
|
94
|
+
The harness requires identical effective configs, source checks, one valid and
|
|
95
|
+
one deliberately invalid language fixture, and emitted JS/declaration inventories
|
|
96
|
+
and bytes before timing. It records CLI diagnostic **start-location parity**;
|
|
97
|
+
CLI text does not expose diagnostic end positions or lengths. Structured-span
|
|
98
|
+
and public declaration-consumer proof remain separate experiments.
|
|
99
|
+
|
|
100
|
+
`report.json` records hashes, versions, effective config, input/output inventories,
|
|
101
|
+
process status and streams, and every successful timing sample. A failed process
|
|
102
|
+
remains in the process log and makes the entire campaign fail. No failed campaign
|
|
103
|
+
qualifies performance. Initial and final hashes reject changed source, inputs,
|
|
104
|
+
compiler executables, libraries, manifests, and retained output.
|
|
105
|
+
|
|
106
|
+
Default timing is two warmups and ten measured runs per compiler for each of
|
|
107
|
+
checking and emission, interleaved in ABBA/BAAB blocks. Counts must be positive
|
|
108
|
+
even integers. `--single-threaded` passes the same flag to both compilers;
|
|
109
|
+
unsupported flags fail the campaign. `--timeout-ms` defaults to 120000 per process.
|
|
110
|
+
This first harness measures **wall time only**. CPU time and peak RSS remain
|
|
111
|
+
unmeasured. Filesystem cache state is uncontrolled. It does not qualify the
|
|
112
|
+
complete build, installed package, target runtime, or a compiler replacement.
|
|
113
|
+
|
|
114
|
+
Use `official/` and `candidate/` only as retained compiler-output artifacts.
|
|
115
|
+
Successful timing samples discard their duplicate emit directories after hashing.
|
|
116
|
+
The harness never writes `dist` or invokes a packaging command that rebuilds it.
|
|
117
|
+
Review the report for private diagnostics before publishing it.
|
|
118
|
+
|
|
119
|
+
### Performance protocol
|
|
120
|
+
|
|
121
|
+
Use one isolated runner without competing builds. Record CPU allocation, operating system, filesystem, runtime, and resource limits.
|
|
122
|
+
Compare default concurrency and equal checker counts. Report single-threaded results separately.
|
|
123
|
+
|
|
124
|
+
Start with two warmups and ten measured runs per configuration, with interleaved ABBA/BAAB order.
|
|
125
|
+
Report median, spread, wall time, CPU time, and peak RSS. Exclude warmups from reported samples.
|
|
126
|
+
Classify nonzero exits, signals, crashes, incomplete output, and timeouts as failures rather than fast samples.
|
|
127
|
+
Use a reviewed finite deadline for each experiment and report censored runs.
|
|
128
|
+
|
|
129
|
+
Distinguish fresh-process runs from filesystem-cache-cold runs. Do not claim cold caches without controlling them.
|
|
130
|
+
Measure incremental no-op and one-file edits only as optional scenarios because the current build does not enable incremental compilation.
|
|
131
|
+
Measure repeated API/watch operation separately if adoption later includes a persistent compiler process.
|
|
132
|
+
|
|
133
|
+
Select a material benefit threshold after measuring the baseline and before evaluating candidate timings.
|
|
134
|
+
The initial official-only pilot took about 0.37 seconds per check or emit on a
|
|
135
|
+
Linux x64 c7a.8xlarge runner. For this investigation, require at least 20% median
|
|
136
|
+
compiler-time savings and 10% whole-build savings before proposing optional
|
|
137
|
+
selection. Report absolute savings and complete-check impact as well; meeting
|
|
138
|
+
those thresholds does not replace compatibility or maintenance review.
|
|
139
|
+
Prefer whole-build savings and runner cost over a microbenchmark ratio.
|
|
140
|
+
Do not adopt a candidate that saves negligible time while adding substantial platform or maintenance cost.
|
|
141
|
+
|
|
142
|
+
### Package and runtime proof
|
|
143
|
+
|
|
144
|
+
Most runtime tests import source through Vitest. Those tests do not prove candidate-emitted JavaScript.
|
|
145
|
+
The experiment must preserve the identity of the generated package through every check.
|
|
146
|
+
|
|
147
|
+
Run the ordinary baseline through the existing repository commands:
|
|
148
|
+
Use a qualified validation host with frozen dependencies and the documented Rust/LLVM toolchain.
|
|
149
|
+
|
|
150
|
+
```sh
|
|
151
|
+
pnpm check
|
|
152
|
+
pnpm native:build
|
|
153
|
+
pnpm package:smoke
|
|
154
|
+
git diff --check
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
For candidate output, compare compiler artifacts before packaging.
|
|
158
|
+
Prepare required native/WASM/helper artifacts through their existing owners.
|
|
159
|
+
Then run `node scripts/check-pack.mjs` against the candidate's `dist` in its isolated validation checkout.
|
|
160
|
+
This checker packs with `--ignore-scripts`, imports public subpaths, and runs installed-package smoke checks.
|
|
161
|
+
It also compiles installed consumers for root overloads, JSON stores, lock callbacks,
|
|
162
|
+
resource disposal, and discriminated results, with strict checking and exact optional properties.
|
|
163
|
+
To check those same consumers with the candidate compiler as well:
|
|
164
|
+
|
|
165
|
+
```sh
|
|
166
|
+
node scripts/check-pack.mjs --candidate-compiler /path/to/native/tsc-ts
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Both compilers use the official standard library and the same installed tarball.
|
|
170
|
+
An unused `@ts-expect-error` control must fail before negative consumer cases are trusted.
|
|
171
|
+
The fixtures are compile-only; the existing package smoke tests own runtime behavior.
|
|
172
|
+
|
|
173
|
+
Do not run `pnpm pack:check` or `pnpm check` over candidate output and claim that output survived.
|
|
174
|
+
Those commands rebuild with the official compiler in the frozen baseline.
|
|
175
|
+
Do not update `test/public-api.json` merely to accept compiler differences.
|
|
176
|
+
|
|
177
|
+
Reuse the existing security cohort plus these representative lifecycle tests:
|
|
178
|
+
|
|
179
|
+
- `test/root-read-final-fence.test.ts`
|
|
180
|
+
- `test/atomic-restore-error-precedence.test.ts`
|
|
181
|
+
- `test/atomic-restoration-falsy-settlement.test.ts`
|
|
182
|
+
- `test/descriptor-close-ownership.test.ts`
|
|
183
|
+
- `test/root-create-native-integration.test.ts`
|
|
184
|
+
- `test/root-mkdir-post-create.test.ts`
|
|
185
|
+
- `test/root-write-lifetime.test.ts`
|
|
186
|
+
- `test/temp-workspace-cleanup-capability.test.ts`
|
|
187
|
+
- `test/native-worker-fd-ownership.test.ts`
|
|
188
|
+
- `test/native-init-context.test.ts`
|
|
189
|
+
- `test/value-adapter-contracts.test.ts`
|
|
190
|
+
- `test/public-api-surface.test.ts`
|
|
191
|
+
|
|
192
|
+
For runtime changes, preserve the documented [platform matrix](contributing.md) and [native capabilities](native.md).
|
|
193
|
+
Stage qualification from Linux to macOS and Windows, then the remaining supported native targets.
|
|
194
|
+
Cover Node 22/24/26, native `off`/`auto`/`require`, supported Bun lanes, glibc/musl, and FreeBSD's narrower native surface.
|
|
195
|
+
Use the existing Bun native proofs. The full Bun suite is diagnostic, not an assumed passing compatibility gate.
|
|
196
|
+
Keep cross-build success separate from execution on the target operating system.
|
|
197
|
+
|
|
198
|
+
Exercise concurrent replacement with an external process where runtime scheduling could bypass an in-process race fixture.
|
|
199
|
+
Observe rejection, file contents, identity, descriptor ownership, cleanup, error precedence, cancellation, and event-loop delay.
|
|
200
|
+
Successful returns alone do not prove safety or cleanup.
|
|
201
|
+
|
|
202
|
+
## scriptc feasibility gates
|
|
203
|
+
|
|
204
|
+
The frozen upstream explicitly excludes [N-API addons](https://github.com/vercel-labs/scriptc/blob/66125d783b0e03af6e28843229c10b6436333c08/docs/content/limitations/native-addons.mdx).
|
|
205
|
+
It also excludes [computed numeric flags](https://github.com/vercel-labs/scriptc/blob/66125d783b0e03af6e28843229c10b6436333c08/docs/content/limitations/builtin-apis/filesystem-flags.mdx)
|
|
206
|
+
and [BigInt filesystem stats](https://github.com/vercel-labs/scriptc/blob/66125d783b0e03af6e28843229c10b6436333c08/docs/content/limitations/builtin-apis/filehandle-and-descriptor-i-o.mdx).
|
|
207
|
+
Its filesystem operations complete synchronously before callbacks or promise continuations.
|
|
208
|
+
These documented limits are feasibility constraints, not newly demonstrated compiler defects.
|
|
209
|
+
|
|
210
|
+
| fs-safe owner | Required probe |
|
|
211
|
+
| --- | --- |
|
|
212
|
+
| `src/native.ts`, `src/native-binding.ts` | Lazy addon loading, async-context isolation, per-operation capabilities, and exactly-once descriptor close. |
|
|
213
|
+
| `src/file-identity.ts`, `src/exact-identity.ts` | BigInt identity, safe-integer rejection, Windows unknown identity, getter evaluation, and cleanup authority. |
|
|
214
|
+
| `src/root-read-admission.ts`, `src/root-write-verification.ts` | Fresh boundary observations, hardlink rejection, retained-parent authority, and post-operation identity fences. |
|
|
215
|
+
| `src/byte-budget.ts`, `src/errors.ts`, `src/async-lock.ts`, `src/suppressed-error.ts` | Small pure-TS probes for numeric boundaries, error identity, FIFO release, and cleanup-error precedence. |
|
|
216
|
+
| `src/archive-tar-wasm.ts`, `src/archive-zip-loader.ts` | WASM memory growth, chunk limits, physical EOF, cancellation, disposal, optional imports, and object identity. |
|
|
217
|
+
| `src/watch-io.ts`, `src/directory-receipt.ts` | Worker lifetime, event ordering, and WeakMap-held capability identity. |
|
|
218
|
+
|
|
219
|
+
Start with minimal unchanged-code probes, then test the actual public package.
|
|
220
|
+
An import-only success or native-off run does not qualify the native-required path.
|
|
221
|
+
Never replace BigInt identity with Number, retained descriptors with pathnames, or independent observations with cached values to make compilation succeed.
|
|
222
|
+
|
|
223
|
+
If a C ABI adapter is necessary, review its design before implementation.
|
|
224
|
+
Prefer reusing the existing Rust mechanisms while keeping policy in TypeScript.
|
|
225
|
+
Specify handle ownership, errors, cancellation, platform behavior, and ABI compatibility first.
|
|
226
|
+
Do not create a second filesystem policy engine.
|
|
227
|
+
|
|
228
|
+
## Draft PR structure
|
|
229
|
+
|
|
230
|
+
Use dependency links only where one change actually requires another.
|
|
231
|
+
|
|
232
|
+
| PR | Scope | Prerequisite |
|
|
233
|
+
| --- | --- | --- |
|
|
234
|
+
| P1 | Compiler parity and measurement harness. Preserve official build defaults. | Frozen input and output identities, trustworthy failure accounting. |
|
|
235
|
+
| P2 | Candidate-package and declaration consumer proof missing from existing checks. | P1 artifact contract. |
|
|
236
|
+
| P3a, P3b, ... | One confirmed fs-safe or OpenClaw consumer defect per PR. | Minimal normal-runtime reproduction and owner agreement. |
|
|
237
|
+
| P4 | Optional compiler selection through the existing build owner. | H1-H3 pass and material measured benefit. Retain the official API dependency. |
|
|
238
|
+
| R1, R2, ... | Narrow runtime compatibility fixes or an accepted ABI design. | H4 findings, security-boundary review, and relevant platform proof. |
|
|
239
|
+
| U1, U2, ... | Reduced upstream regression tests and fixes. | Confirmed compiler/runtime owner and failing supported contract. |
|
|
240
|
+
|
|
241
|
+
P1 -> P2 -> P4 forms the compiler stack. Verified fixes join that dependency chain only when necessary.
|
|
242
|
+
Runtime work forms a separate reviewed stack. Do not couple ordinary Node fixes to compiler adoption.
|
|
243
|
+
Coordinate OpenClaw consumer changes with their existing owners and reuse shared benchmark evidence where inputs match.
|
|
244
|
+
|
|
245
|
+
## Fork decision
|
|
246
|
+
|
|
247
|
+
Choose the owning project: tsc-ts for checker/emitter defects, scriptc for lowering/runtime defects, fs-safe for its own invariant violations.
|
|
248
|
+
A documented unsupported feature is an architecture discussion before it is a fork justification.
|
|
249
|
+
|
|
250
|
+
Before creating a fork:
|
|
251
|
+
|
|
252
|
+
1. Preserve a minimal reproducer with expected and actual behavior.
|
|
253
|
+
2. Check the pinned version and current upstream for an existing fix.
|
|
254
|
+
3. Show that the blocker prevents an accepted fs-safe requirement.
|
|
255
|
+
4. Estimate the patch surface, platform tests, release ownership, and upstream synchronization cost.
|
|
256
|
+
5. Define an upstream contribution route and a fork retirement condition.
|
|
257
|
+
|
|
258
|
+
## Completion evidence
|
|
259
|
+
|
|
260
|
+
This plan is the first deliverable. It does not complete compiler qualification or runtime adoption.
|
|
261
|
+
Every experiment must report `pass`, `fail`, `unsupported`, or `not run`, with its exact inputs and evidence.
|
|
262
|
+
Keep the full objective open while required tests, verified fixes, stack preparation, or architecture decisions remain unresolved.
|
|
263
|
+
|
|
264
|
+
The final handoff must identify measured benefits, semantic differences, package/platform coverage, remaining blockers, and every draft PR dependency.
|
|
265
|
+
Keep source validation, CI status, merge approval, release publication, and deployed behavior separate.
|
|
266
|
+
No landing occurs without explicit maintainer approval.
|
|
267
|
+
|
|
268
|
+
## Initial Linux pilot
|
|
269
|
+
|
|
270
|
+
On Node 24.19.0 with pnpm 12.10.1, the published tsc-ts 0.0.2 Linux GNU binary
|
|
271
|
+
passed the first comparison: 508 identical resolved input hashes, 634 identical
|
|
272
|
+
emitted JavaScript/declaration files, and matching valid/invalid fixture results.
|
|
273
|
+
The official-versus-official control also passed. Each pilot used two warmups
|
|
274
|
+
and two measured samples per compiler per mode. These small pilots validate
|
|
275
|
+
harness execution; they do not establish a speedup or full package compatibility.
|
|
276
|
+
|
|
277
|
+
Native executable SHA-256 identities:
|
|
278
|
+
|
|
279
|
+
- Official TypeScript 7.0.2: `4f2de678286401759b3fb4475bafe35b8f32b4b3a07d92642bbf37eadc9b34a4`
|
|
280
|
+
- tsc-ts 0.0.2 Linux GNU: `fb24c9cc43533dc004b9dfc9547d7066cea348b807c3239f8e31c7ba062017b6`
|
|
281
|
+
|
|
282
|
+
The installed package's launcher selects `lib/tsc-ts` (`tsc-ts.exe` on Windows).
|
|
283
|
+
Record the npm package integrity from the experiment's installation lockfile;
|
|
284
|
+
do not infer binary provenance from its `Version 7.0.2` CLI output alone.
|
|
285
|
+
|
|
286
|
+
## Linux compiler and package results
|
|
287
|
+
|
|
288
|
+
The 2026-10-17 campaign used the same frozen source and executable identities
|
|
289
|
+
above, Linux x64 on an AWS c7a.8xlarge (32 logical CPUs), Node 24.19.0, and
|
|
290
|
+
pnpm 12.10.1. Each comparison used two warmups and ten measured samples per
|
|
291
|
+
compiler, in balanced ABBA/BAAB order. OS caches were uncontrolled.
|
|
292
|
+
|
|
293
|
+
| Invocation | Official median | tsc-ts median | Speedup |
|
|
294
|
+
| --- | --- | --- | --- |
|
|
295
|
+
| Default check | 387 ms | 114 ms | 3.40x |
|
|
296
|
+
| Default emit | 400 ms | 124 ms | 3.24x |
|
|
297
|
+
| Single-threaded check | 973 ms | 704 ms | 1.38x |
|
|
298
|
+
| Single-threaded emit | 1,041 ms | 863 ms | 1.21x |
|
|
299
|
+
| Complete warm build | 1,324 ms | 1,031 ms | 1.28x |
|
|
300
|
+
|
|
301
|
+
Both compiler configurations preserved all 508 resolved inputs and 634 emitted
|
|
302
|
+
JavaScript/declaration files. The complete build used the existing prepack
|
|
303
|
+
steps with only the compiler invocation substituted in a temporary runner.
|
|
304
|
+
Dependencies and Rust/.NET/WASM toolchains were warm; `dist` was recreated on
|
|
305
|
+
each invocation. All 636 complete-build artifacts matched across every run.
|
|
306
|
+
The median build saving was 22.1%, approximately 293 ms.
|
|
307
|
+
|
|
308
|
+
GNU time measured median build user CPU of 2.890/1.955 seconds, system CPU of
|
|
309
|
+
0.715/0.475 seconds, and maximum RSS of 310,372/261,192 KiB (official/candidate).
|
|
310
|
+
Maximum RSS is a process high-water mark, not summed concurrent memory.
|
|
311
|
+
Compiler-only CPU and RSS were not measured.
|
|
312
|
+
|
|
313
|
+
Candidate output also passed the installed-package checker without a rebuild:
|
|
314
|
+
public imports and API manifest, guest Python/rename protocol, directory receipt
|
|
315
|
+
runtime behavior, Root.walk declarations, and the three consumer fixtures under
|
|
316
|
+
both compilers. The complete `dist` inventory was unchanged after packing.
|
|
317
|
+
|
|
318
|
+
This clears the provisional Linux performance gate. It does not qualify cold
|
|
319
|
+
builds, macOS/Windows compiler binaries, other runtimes, or every native mode.
|
|
320
|
+
Identical emitted JavaScript provides no evidence of faster filesystem I/O.
|
|
321
|
+
Keep compiler adoption separate from these qualification tools.
|
|
322
|
+
|
|
323
|
+
## Platform and clean-output campaign
|
|
324
|
+
|
|
325
|
+
`compiler-qualification.yml` runs the published tsc-ts 0.0.2 native package on
|
|
326
|
+
Linux, macOS, and Windows with Node 24.19.0. It records npm lockfile integrity,
|
|
327
|
+
native executable hashes, the exact checkout commit, and toolchain versions.
|
|
328
|
+
Windows uses the existing x64 CI runner; upstream 0.0.2 has no Windows ARM64
|
|
329
|
+
package. The npm launcher gets a separate smoke check using its default libraries.
|
|
330
|
+
Parity and package consumers continue to use the official TypeScript libraries.
|
|
331
|
+
|
|
332
|
+
The campaign runs the compiler parity harness in default and single-threaded
|
|
333
|
+
modes, with two warmups and ten measured samples per arm. Complete builds use
|
|
334
|
+
the existing prepack owner with an explicit native compiler for both arms.
|
|
335
|
+
Ordinary builds retain the official compiler; this option is experimental
|
|
336
|
+
qualification tooling, not an adoption decision. Strict toolchain mode requires
|
|
337
|
+
the .NET helper build and cannot reuse the staged executable as a fallback.
|
|
338
|
+
|
|
339
|
+
Warm complete builds retain Rust/.NET outputs and recreate `dist`. Clean-output
|
|
340
|
+
builds use a fresh Cargo target and remove only the helper's `bin` and `obj`
|
|
341
|
+
directories before each invocation. Dependencies and their download stores stay
|
|
342
|
+
installed; OS and dependency caches are uncontrolled. These are **clean build
|
|
343
|
+
outputs**, not cold-machine or cold-page-cache measurements. Each arm has two
|
|
344
|
+
warmups, ten measured warm builds, and six measured clean-output builds, in
|
|
345
|
+
balanced ABBA/BAAB order. Timings cover the complete build, excluding hashing,
|
|
346
|
+
output cleanup and installed-package checks. They measure wall time only.
|
|
347
|
+
|
|
348
|
+
Every build must match all JavaScript, declaration, helper, and WASM bytes on
|
|
349
|
+
that runner. Cross-OS binary equality is not required. Source, build scripts,
|
|
350
|
+
lockfiles, generated helper input, compiler binaries, and libraries are checked
|
|
351
|
+
for mutation. Both arms in each cache mode get installed-package proof without
|
|
352
|
+
a rebuild, followed by another complete `dist` hash comparison.
|
|
353
|
+
|
|
354
|
+
The runner accepts only its disposable Actions checkout. The isolated job's
|
|
355
|
+
45-minute deadline owns cancellation of the full Cargo/.NET process tree;
|
|
356
|
+
it does not use a parent-only build timeout and then continue measuring.
|
|
357
|
+
It uploads at most three redacted JSON reports per platform, each capped at
|
|
358
|
+
4 MiB, for 14 days. Generated binaries and compiler installations stay temporary.
|
|
359
|
+
A failed campaign cannot establish a performance claim, even if it has samples.
|
|
360
|
+
|
|
361
|
+
OpenClaw is a separate qualification target. Its declaration build uses
|
|
362
|
+
`typescript/unstable` API transport and `program.emitToString`; a faster CLI
|
|
363
|
+
typecheck does not establish compatibility with that build owner. Reuse the
|
|
364
|
+
existing compiler lane's exact-source evidence before proposing an API/emission
|
|
365
|
+
adapter or a paired `build:strict-smoke` comparison.
|
|
366
|
+
|
|
367
|
+
### Separate scriptc runtime probe
|
|
368
|
+
|
|
369
|
+
Published scriptc 0.3.5 was installed on the same Linux host. Its native
|
|
370
|
+
control program built and ran after the host's missing Clang was installed.
|
|
371
|
+
The executable SHA-256 was
|
|
372
|
+
`b7087211a304c049de53fcaac40564e9a6e9adac6b4055c895ab340e82d47a84`.
|
|
373
|
+
Its [release tag](https://github.com/vercel-labs/scriptc/tree/973362d0d2be9b948b3e0d59d77ff3705278f24c)
|
|
374
|
+
is a source reference, not an attestation of the npm binary.
|
|
375
|
+
|
|
376
|
+
All three filesystem probes ran successfully in Node. With scriptc coverage
|
|
377
|
+
configured to fail on blockers:
|
|
378
|
+
|
|
379
|
+
- `statSync(path, { bigint: true })` failed preflight with `SC0001`: the
|
|
380
|
+
supported declaration accepts only one argument.
|
|
381
|
+
- Passing computed numeric open flags failed lowering with `SC2020`.
|
|
382
|
+
- An installed-package consumer using `root(path).readBytes(...)` failed
|
|
383
|
+
preflight with missing `BigIntStats` and `NodeJS.Platform` declarations
|
|
384
|
+
(`SC0001`), plus the package's computed/escaping `createRequire` use (`SC2013`).
|
|
385
|
+
|
|
386
|
+
These results agree with the release's documented
|
|
387
|
+
[descriptor/identity limits](https://github.com/vercel-labs/scriptc/blob/973362d0d2be9b948b3e0d59d77ff3705278f24c/docs/content/limitations/builtin-apis/filehandle-and-descriptor-i-o.mdx)
|
|
388
|
+
and [native-addon boundary](https://github.com/vercel-labs/scriptc/blob/973362d0d2be9b948b3e0d59d77ff3705278f24c/docs/content/limitations/native-addons.mdx).
|
|
389
|
+
They block runtime adoption; they do not establish a newly broken supported
|
|
390
|
+
contract or justify a fork. No fs-safe safety policy was weakened for these probes.
|
|
391
|
+
Further native-port design requires an exact-identity and addon/FFI solution
|
|
392
|
+
before broader runtime tests can become meaningful.
|
|
@@ -55,6 +55,8 @@ function getFsSafeNativeConfig(): FsSafeNativeConfig;
|
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
Return the effective configuration: programmatic overrides win, then env vars, then the package default (`auto`).
|
|
58
|
+
If only a removed Python-mode variable is configured, configuration reads and
|
|
59
|
+
native operations throw an actionable migration error instead of using the default.
|
|
58
60
|
|
|
59
61
|
## `getFsSafeNativeStatus(options?)`
|
|
60
62
|
|
|
@@ -185,7 +187,11 @@ FS_SAFE_NATIVE_MODE=auto # auto | off | require | true | false | on | 1 | 0
|
|
|
185
187
|
### Removed Python-helper configuration
|
|
186
188
|
|
|
187
189
|
The deprecated Python configuration bridge and its environment variables have
|
|
188
|
-
been removed.
|
|
190
|
+
been removed. Replace `FS_SAFE_PYTHON_MODE` with `FS_SAFE_NATIVE_MODE` and
|
|
191
|
+
`OPENCLAW_FS_SAFE_PYTHON_MODE` with `OPENCLAW_FS_SAFE_NATIVE_MODE`, preserving the
|
|
192
|
+
value. Without a valid native override, either legacy mode variable raises a
|
|
193
|
+
migration error. Explicit native settings still win over leftover legacy settings.
|
|
194
|
+
Use `configureFsSafeNative()` for a programmatic override. See the
|
|
189
195
|
[0.5 migration checklist](migrating-to-0.5.md#2-replace-python-helper-configuration)
|
|
190
196
|
for the migration path.
|
|
191
197
|
|
|
@@ -135,6 +135,18 @@ Vitest. Tests live in `test/` and follow `*.test.ts`. Run a single file with:
|
|
|
135
135
|
pnpm test test/archive.test.ts
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
+
`pnpm pack:check` also checks every literal relative runtime import, re-export,
|
|
139
|
+
module-relative worker URL, and `import.meta.url` asset reference in the packed JavaScript
|
|
140
|
+
against the tarball contents. Release package collection repeats this check;
|
|
141
|
+
files present only in the build directory do not satisfy it.
|
|
142
|
+
Relative URL-constructor paths are checked with or without a `./` prefix.
|
|
143
|
+
Directory URL assets must identify directories present in the archive; ESM
|
|
144
|
+
imports still require files.
|
|
145
|
+
URL references use decoded filenames without queries or fragments; `require()`
|
|
146
|
+
paths retain their literal characters and use Node's file-extension, package
|
|
147
|
+
`main`, and directory-index fallbacks. String arguments to `new Worker()` are
|
|
148
|
+
relative to the consumer's working directory and are outside this package-relative check.
|
|
149
|
+
|
|
138
150
|
Guest filesystem tests and package smoke also need `python3` on Linux and
|
|
139
151
|
macOS. They execute the exported source on synthetic files; Windows checks
|
|
140
152
|
the import surface and leaves POSIX execution to the Linux/macOS lanes.
|
|
@@ -318,13 +330,13 @@ Bun 1.4.2 (as do macOS and Windows).
|
|
|
318
330
|
| Lane | Runner | Architecture / libc | Runtime |
|
|
319
331
|
| --- | --- | --- | --- |
|
|
320
332
|
| JavaScript check | `ubuntu-latest` | x64 / glibc | Node 22, 24, 26 |
|
|
321
|
-
| JavaScript check | `
|
|
333
|
+
| JavaScript check | `xcode-27` | arm64 | Node 22, 24, 26 |
|
|
322
334
|
| JavaScript check | `fs-safe-windows-16core` (`windows-latest`) | x64 | Node 22, 24, 26 |
|
|
323
335
|
| Native check | `ubuntu-latest` | x64 / glibc | Node 24, Bun 1.4.2 |
|
|
324
336
|
| Native check (forced no-openat2) | `ubuntu-latest` | x64 / glibc | Node 24 |
|
|
325
337
|
| Native check | `ubuntu-24.04-arm` | arm64 / glibc | Node 24, Bun 1.4.2 |
|
|
326
|
-
| Native check | `
|
|
327
|
-
| Native check | `
|
|
338
|
+
| Native check | `xcode-27` | arm64 | Node 24, Bun 1.4.2 |
|
|
339
|
+
| Native check | `xcode-27` under Rosetta (`x64`) | x64 | Node 24, Bun 1.4.2 |
|
|
328
340
|
| Native check | `fs-safe-windows-16core` (`windows-latest`) | x64 | Node 24, Bun 1.4.2 |
|
|
329
341
|
| Native check | `windows-2022` (standard hosted) | x64 | Node 24, Bun 1.4.2 |
|
|
330
342
|
| Windows ARM64 host | `windows-11-arm` | arm64 native and x64 emulated | Node 24 |
|
|
@@ -332,8 +344,16 @@ Bun 1.4.2 (as do macOS and Windows).
|
|
|
332
344
|
| Native check (Alpine 3.24) | `ubuntu-24.04-arm` | arm64 / musl | Node 24 |
|
|
333
345
|
| GNU glibc 2.28 build + Rocky Linux 8 load | `ubuntu-latest` | x64 / glibc | Node 24 |
|
|
334
346
|
| GNU glibc 2.28 build + Rocky Linux 8 load | `ubuntu-24.04-arm` | arm64 / glibc | Node 24 |
|
|
335
|
-
| Bundled package smoke | `ubuntu-latest`, `
|
|
336
|
-
| Coverage | `ubuntu-latest`, `
|
|
347
|
+
| Bundled package smoke | `ubuntu-latest`, `xcode-27`, `fs-safe-windows-16core` | host | Node 22, 24 |
|
|
348
|
+
| Coverage | `ubuntu-latest`, `xcode-27`, `fs-safe-windows-16core` | host | Node 22 |
|
|
349
|
+
|
|
350
|
+
All macOS jobs use the arm64 `xcode-27` image. Required status-check names
|
|
351
|
+
retain their historical `macos-15` identifiers to preserve branch protection;
|
|
352
|
+
those names do not select the runner. The x64 native and watch lanes
|
|
353
|
+
assert Rosetta availability and run their shells, Node, and Bun under Rosetta;
|
|
354
|
+
they do not require Intel hardware. Native builds preserve the published macOS
|
|
355
|
+
minimums: 11.0 for arm64 and 10.12 for x64. Native CI and release prebuilds
|
|
356
|
+
verify the Mach-O deployment command and load each binding with matching Node.
|
|
337
357
|
|
|
338
358
|
Both musl lanes also run root-only package smoke with the real host binding.
|
|
339
359
|
The eight-target source build matrix still runs on release tags. The smoke writes manager versions,
|
|
@@ -271,6 +271,16 @@ creates the guarded destination name from the admitted source descriptor. Linux
|
|
|
271
271
|
uses FICLONE and copy_file_range. Windows and native-disabled operation copy
|
|
272
272
|
bytes; they cannot satisfy `"always"`.
|
|
273
273
|
|
|
274
|
+
On Btrfs, explicit `"auto"` and `"always"` file copies match the source's NOCOW
|
|
275
|
+
flag on the newly created empty destination before cloning. This can override
|
|
276
|
+
NOCOW inherited from the destination directory, in either direction. Other
|
|
277
|
+
destination flags, including compression policy, are preserved; incompatible
|
|
278
|
+
policy can still prevent cloning. A successful NOCOW clone has no data checksums
|
|
279
|
+
or compression, and shared extents use copy-on-write until they become unshared.
|
|
280
|
+
The source and destination remain independent files. If `"auto"` falls back,
|
|
281
|
+
the clone target is removed and a fresh copy inherits the destination directory's
|
|
282
|
+
ordinary policy. The default `"never"` mode does not change NOCOW flags.
|
|
283
|
+
|
|
274
284
|
The source descriptor remains open through before/after source identity checks.
|
|
275
285
|
Symlink components are rejected; source hardlinks are rejected unless
|
|
276
286
|
`sourceHardlinks: "allow"` is selected. The byte limit is an EOF bound, not a
|
|
@@ -217,16 +217,22 @@ try {
|
|
|
217
217
|
|
|
218
218
|
`rename-noreplace` normally uses atomic native rename. On Linux in native `auto`
|
|
219
219
|
mode, a definitively unsupported `RENAME_NOREPLACE` result (`EINVAL`, `ENOSYS`,
|
|
220
|
-
or unsupported-operation errno) permits the
|
|
220
|
+
or unsupported-operation errno) permits the descriptor-relative file-publication fallback.
|
|
221
221
|
It requires a regular source with one link, retains both parents, creates the
|
|
222
222
|
target with `linkat` without following symlinks, verifies both names against the
|
|
223
|
-
staged identity with exactly two links,
|
|
224
|
-
|
|
223
|
+
staged identity with exactly two links, pins the destination, and closes the
|
|
224
|
+
source descriptor before identity-bound unlink. It then verifies the target has
|
|
225
|
+
one link. Fallback collisions report `already-exists` without clobbering;
|
|
225
226
|
the atomic rename path retains its existing `EEXIST` error.
|
|
226
227
|
Success still returns `method: "rename-noreplace"`, with the additive
|
|
227
228
|
`fallback: "link-unlink"` field identifying this weaker mechanism. Atomic rename
|
|
228
229
|
and the other strategies omit `fallback`.
|
|
229
230
|
|
|
231
|
+
The handoff precedes unlink so NFS need not create or finish deleting a hidden
|
|
232
|
+
name for an open source. Success still requires the exact destination identity,
|
|
233
|
+
one remaining link, and source absence. Missing native link or identity-bound
|
|
234
|
+
unlink support fails closed. Unverified or substituted destinations are preserved.
|
|
235
|
+
|
|
230
236
|
**Link/unlink is not crash-atomic.** A crash between those syscalls can leave both
|
|
231
237
|
names on the same complete inode. Callers must recognize that interrupted pair
|
|
232
238
|
as incomplete evidence or recover it under their own identity/ownership rules
|
|
@@ -244,6 +244,19 @@ inspection has its own failure surface. Older fs-safe versions could report
|
|
|
244
244
|
`EACCES` for the same root/open condition, so consumers spanning versions
|
|
245
245
|
should accept both codes.
|
|
246
246
|
|
|
247
|
+
Read-only filesystem failures retain `EROFS` on native I/O errors. Native
|
|
248
|
+
`openBeneath` and `openCreateBeneath` failures include `path` (relative to the
|
|
249
|
+
supplied directory descriptor), `operation`, and the caller's numeric `flags`.
|
|
250
|
+
Their messages escape control characters in the relative path. These fields
|
|
251
|
+
describe the attempted open; they do not identify the absolute parent or claim
|
|
252
|
+
which syscall the selected backend used. JavaScript owners of native file
|
|
253
|
+
creation attach their known absolute `path` and `syscall: "open"`, including
|
|
254
|
+
sidecar locks, writable opens, staged writes, and synchronous/asynchronous copies.
|
|
255
|
+
Existing Root write wrappers still use
|
|
256
|
+
`invalid-path`, and native copy wrappers still use `helper-failed`; both retain
|
|
257
|
+
these diagnostics in `cause`.
|
|
258
|
+
No read-only failure selects a less restrictive fallback or authorizes a retry.
|
|
259
|
+
|
|
247
260
|
## Specialty errors
|
|
248
261
|
|
|
249
262
|
A handful of helpers throw their own typed errors instead of `FsSafeError`:
|
|
@@ -43,10 +43,12 @@ Replace `FS_SAFE_PYTHON_MODE` with `FS_SAFE_NATIVE_MODE`, or
|
|
|
43
43
|
`OPENCLAW_FS_SAFE_PYTHON_MODE` with `OPENCLAW_FS_SAFE_NATIVE_MODE`. Remove
|
|
44
44
|
`pythonPath`, `FS_SAFE_PYTHON`, `OPENCLAW_FS_SAFE_PYTHON`,
|
|
45
45
|
`OPENCLAW_PINNED_PYTHON`, and `OPENCLAW_PINNED_WRITE_PYTHON`; prebuilt native
|
|
46
|
-
binaries need no interpreter.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
binaries need no interpreter. Preserve the mode value: `require` stays `require`,
|
|
47
|
+
`off` stays `off`, and `auto` stays `auto`. Since 0.23.0 the bridge is removed;
|
|
48
|
+
current builds reject leftover Python-mode variables with a migration error
|
|
49
|
+
unless a valid native policy explicitly overrides them. Versions 0.23.0–0.26.6
|
|
50
|
+
silently ignored them, so migrate before upgrading to those versions too.
|
|
51
|
+
Programmatic native configuration wins, followed by
|
|
50
52
|
`FS_SAFE_NATIVE_MODE`, `OPENCLAW_FS_SAFE_NATIVE_MODE`, and the default `auto`.
|
|
51
53
|
|
|
52
54
|
Choose the production mode deliberately:
|
|
@@ -180,10 +180,12 @@ is authoritative for operation and platform guarantees.
|
|
|
180
180
|
|
|
181
181
|
## Migration from the Python helper
|
|
182
182
|
|
|
183
|
-
The Python configuration bridge
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
The Python configuration bridge was intentionally removed in 0.23.0. A remaining
|
|
184
|
+
`FS_SAFE_PYTHON_MODE` or `OPENCLAW_FS_SAFE_PYTHON_MODE` now raises a migration
|
|
185
|
+
error when no explicit native policy is selected; it never silently selects `auto`.
|
|
186
|
+
Replace either variable with its corresponding `NATIVE_MODE` name and preserve
|
|
187
|
+
the value (`require` → `require`, `off` → `off`, `auto` → `auto`), or call
|
|
188
|
+
`configureFsSafeNative()` explicitly before using fs-safe. Follow the
|
|
187
189
|
[0.5 migration checklist](migrating-to-0.5.md#2-replace-python-helper-configuration)
|
|
188
190
|
for the removed settings and current precedence.
|
|
189
191
|
|
|
@@ -99,8 +99,10 @@ boundary and same-filesystem atomic replacement is required. After the callback
|
|
|
99
99
|
returns, fs-safe pins and validates the staged regular file, rejects hardlinks
|
|
100
100
|
and size-limit violations, applies `mode`, fsyncs it, and atomically renames it
|
|
101
101
|
over the target. Existing files and symlink entries are replaced without
|
|
102
|
-
following their contents or referents. The
|
|
103
|
-
|
|
102
|
+
following their contents or referents. The canonical root identity and the
|
|
103
|
+
parent's containment are checked before invoking the producer and throughout
|
|
104
|
+
publication, including redirects before the parent guard is captured. The
|
|
105
|
+
parent identity is guarded across the operation and the parent directory is synchronized best-effort after
|
|
104
106
|
rename. If an error leaves the sibling temp in place and immediate cleanup
|
|
105
107
|
fails, its verified identity remains registered for a best-effort process-exit
|
|
106
108
|
cleanup retry.
|
|
@@ -86,8 +86,11 @@ if (real === null) return notFound();
|
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
All `realpath` failures collapse to `null` — there is no distinction between `ENOENT`, `EACCES`, and other I/O errors. Use `fs.realpathSync` directly if you need to branch on the error code.
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
It keeps Node's ordinary `realpath` handling of dot segments and symlinks. On
|
|
90
|
+
POSIX it then returns the on-disk spelling, so a path typed with different
|
|
91
|
+
letter case on a case-insensitive volume resolves to the same string that root
|
|
92
|
+
admission uses. This convenience wrapper is not a caller-path admission boundary
|
|
93
|
+
on its own.
|
|
91
94
|
|
|
92
95
|
### `safeStatSync(targetPath)`
|
|
93
96
|
|
|
@@ -220,6 +220,21 @@ retains the raw byte and decoded
|
|
|
220
220
|
lowercase Windows SID notation. `daclPresent: false` represents a null DACL,
|
|
221
221
|
which grants unrestricted access; it must not be mistaken for an empty DACL.
|
|
222
222
|
|
|
223
|
+
The optional `isVolumeRoot` fact is true only when Windows resolves the inspected
|
|
224
|
+
handle to an exact normalized local volume GUID root and a second no-follow
|
|
225
|
+
handle proves the named directory is the same object without a reparse point.
|
|
226
|
+
This distinguishes the volume-root object from a replaceable mounted-folder or
|
|
227
|
+
junction entry pointing at it. Those reparse entries remain false; inspect a
|
|
228
|
+
canonical non-reparse volume-root path to obtain a positive result. The entry
|
|
229
|
+
lookup normalizes trailing separators and current-directory components separately
|
|
230
|
+
from ACL inspection; parent traversal cannot assert a volume root. Ordinary
|
|
231
|
+
directories, drive aliases pointing at a subdirectory, failed identity or
|
|
232
|
+
normalization queries, and remote/UNC paths are also false. Older native helpers
|
|
233
|
+
omit the fact, so consumers must require `isVolumeRoot === true` before using it.
|
|
234
|
+
This metadata does not relax reparse-point or ACL admission policy: consumers
|
|
235
|
+
still decide which rights are acceptable, and all ACE masks are returned
|
|
236
|
+
unchanged.
|
|
237
|
+
|
|
223
238
|
Object-specific and other ACE layouts are not guessed: they are omitted,
|
|
224
239
|
`complete` becomes false, and their numeric types appear in
|
|
225
240
|
`unsupportedAceTypes`, allowing a security-sensitive caller to fail closed.
|