@openclaw/matrix 2026.10.10 → 2026.11.5-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (695) hide show
  1. package/dist/.setup/{account-selection-Co94mKNj.mjs → account-selection-Cow3TMFO.mjs} +11 -11
  2. package/dist/.setup/{approval-handler.runtime-DtNvJpfB.mjs → approval-handler.runtime-_0gqiVgR.mjs} +16 -51
  3. package/dist/.setup/{approval-reactions-DMDBJos0.mjs → approval-reactions-Bz_8XB01.mjs} +2 -2
  4. package/dist/.setup/{channel-CNjJyBS_.mjs → channel-ByHcZU28.mjs} +292 -357
  5. package/dist/.setup/channel.runtime-sNicWjmD.mjs +71 -0
  6. package/dist/.setup/{channel.setup-IjRB0ymg.mjs → channel.setup-Bmba21y9.mjs} +28 -39
  7. package/dist/.setup/{cli-CuEJNM3c.mjs → cli-B26pps0Q.mjs} +250 -308
  8. package/dist/.setup/{cli-metadata-rWmD_rzx.mjs → cli-metadata-CKGwVfmT.mjs} +1 -1
  9. package/dist/.setup/{client-7eyTX0cu.mjs → client-Bqu801rH.mjs} +88 -174
  10. package/dist/.setup/{client-CV0MkCZG.mjs → client-N8TEwtmk.mjs} +6 -6
  11. package/dist/.setup/{client-bootstrap-BjcmTmyR.mjs → client-bootstrap-k6Zm1M8Y.mjs} +5 -10
  12. package/dist/.setup/{client-support-CFofPPPm.mjs → client-support-CqXAOZp3.mjs} +1 -14
  13. package/dist/.setup/{create-client-C4Lnqs2C.mjs → create-client-DaGljdrk.mjs} +6 -6
  14. package/dist/.setup/{credentials-B0vpXvcB.mjs → credentials-DVmY0miU.mjs} +6 -20
  15. package/dist/.setup/{credentials-read-WCQSEvI8.mjs → credentials-read-rPqEpuxv.mjs} +3 -3
  16. package/dist/.setup/{crypto-runtime-Crp1is7m.mjs → crypto-runtime-KQupbxSM.mjs} +74 -158
  17. package/dist/.setup/{crypto-state-store-CM57gchf.mjs → crypto-state-store-p1mdYTWH.mjs} +14 -9
  18. package/dist/.setup/{crypto-store-ownership-Bratn-Np.mjs → crypto-store-ownership-7lVHeXWL.mjs} +1 -1
  19. package/dist/.setup/{crypto-unsafe-state-doctor-Brv4bIyx.mjs → crypto-unsafe-state-doctor-CG2nJk8P.mjs} +7 -6
  20. package/dist/.setup/{deps-O7rEnklr.mjs → deps-CVPT2Ros.mjs} +4 -3
  21. package/dist/.setup/device-health-D7n-lPeb.mjs +7 -0
  22. package/dist/.setup/{direct-management-DDaWVbQI.mjs → direct-management-D59C1WO-.mjs} +22 -28
  23. package/dist/.setup/{directory-live-B-csizuK.mjs → directory-live-YixmpyLW.mjs} +5 -5
  24. package/dist/.setup/doctor-contract-GiXgCj7k.mjs +37 -0
  25. package/dist/.setup/{draft-stream-dmhBHufd.mjs → draft-stream-C09OtoJZ.mjs} +10 -16
  26. package/dist/.setup/{encryption-guidance-Cn6-Tlx0.mjs → encryption-guidance-DfbEaKct.mjs} +1 -1
  27. package/dist/.setup/{exec-approvals-D7vv3AZS.mjs → exec-approvals-C3rCm0Sn.mjs} +31 -41
  28. package/dist/.setup/{file-sync-store-q5KCV2Lp.mjs → file-sync-store-NW6eDuai.mjs} +52 -8
  29. package/dist/.setup/{http-client-CxTmU1kT.mjs → http-client-CqnKFKUH.mjs} +19 -31
  30. package/dist/.setup/{idb-persistence-BF0MZglD.mjs → idb-persistence-CmoPtwDD.mjs} +22 -15
  31. package/dist/.setup/{joined-room-encryption-Dl7Sb9FF.mjs → joined-room-encryption-9sJK1kM-.mjs} +4 -3
  32. package/dist/.setup/{logger-BX5kXvh1.mjs → logger-B9TwnY6C.mjs} +2 -2
  33. package/dist/.setup/{logging-BLcaOSRD.mjs → logging-Bnsn7s4r.mjs} +20 -14
  34. package/dist/.setup/{messages-BiHM0DM3.mjs → messages-BjzsVgS6.mjs} +39 -22
  35. package/dist/.setup/{monitor-CPwDgRFY.mjs → monitor-D4vhbNUM.mjs} +647 -816
  36. package/dist/.setup/{onboarding-DiVtpjNu.mjs → onboarding-DKmt3jpW.mjs} +116 -128
  37. package/dist/.setup/{outbound-DwP97VpQ.mjs → outbound-wsXTF0z_.mjs} +2 -2
  38. package/dist/.setup/{profile-update-DnNA9mEa.mjs → profile-update-DX060MnL.mjs} +14 -14
  39. package/dist/.setup/{reaction-events-ClY9h_FC.mjs → reaction-events-BMsatzs4.mjs} +74 -99
  40. package/dist/.setup/{resolve-targets-B8PAwHVS.mjs → resolve-targets-Yz_3aN_2.mjs} +2 -2
  41. package/dist/.setup/{retired-state-vIr2IB90.mjs → retired-state-Bs3Gqkge.mjs} +6 -3
  42. package/dist/.setup/{room-info-T_PR_liR.mjs → room-info-OGKjk422.mjs} +21 -8
  43. package/dist/.setup/{doctor-contract-DybEjJcd.mjs → runtime-doctor-migrations-CSvRANPN.mjs} +12 -47
  44. package/dist/.setup/{sdk-Cj3ggJHG.mjs → sdk-BXcIyN-I.mjs} +95 -107
  45. package/dist/.setup/{send-C1qeMQAy.mjs → send-CWjH-l-T.mjs} +169 -251
  46. package/dist/.setup/{send-currentness-CAUVR-f3.mjs → send-currentness-D1x6YP9O.mjs} +9 -15
  47. package/dist/.setup/{setup-bootstrap-DDhwWvDs.mjs → setup-bootstrap-yKeGh4Iy.mjs} +2 -2
  48. package/dist/.setup/{setup-core-D2r4BivQ.mjs → setup-core-BaKffgBi.mjs} +19 -42
  49. package/dist/.setup/setup-plugin-api-B_t4waBw.mjs +2 -0
  50. package/dist/.setup/{startup-verification-B3LEbW33.mjs → startup-verification-C-lhD0gk.mjs} +9 -22
  51. package/dist/.setup/{storage-CxN4jqKI.mjs → storage-BLLN9jYG.mjs} +18 -22
  52. package/dist/.setup/{subagent-hooks-CT-rdJmh.mjs → subagent-hooks-D-lCcLGQ.mjs} +1 -1
  53. package/dist/.setup/{sync-cache-state-qYrd2EEh.mjs → sync-cache-state-B4hJFIPw.mjs} +10 -10
  54. package/dist/.setup/sync-state-Cu1nagBV.mjs +11 -0
  55. package/dist/.setup/task-runner-CYyGHdNW.mjs +51 -0
  56. package/dist/.setup/{thread-bindings-D2ZR6mEZ.mjs → thread-bindings-BA2xESjV.mjs} +34 -49
  57. package/dist/.setup/{thread-bindings-shared-FMu_szTm.mjs → thread-bindings-shared-CBlJu3Wz.mjs} +2 -2
  58. package/dist/.setup/{tool-actions-CdKa0DC4.mjs → tool-actions-CRuiVbqj.mjs} +59 -67
  59. package/dist/.setup/{url-validation-C77p4qT9.mjs → url-validation-DesoKUns.mjs} +1 -2
  60. package/dist/.setup/{verification-jP3tm-xD.mjs → verification-C5x4Hy5Y.mjs} +7 -7
  61. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
  62. package/dist/api.js +6 -6
  63. package/dist/auth-presence.js +1 -1
  64. package/dist/channel-plugin-api.js +1 -1
  65. package/dist/cli-metadata.js +1 -1
  66. package/dist/contract-api.js +2 -2
  67. package/dist/doctor-contract-api.js +149 -127
  68. package/dist/helper-api.js +1 -1
  69. package/dist/index.js +1 -1
  70. package/dist/plugin-entry.handlers.runtime.js +2 -2
  71. package/dist/runtime-api.js +3 -3
  72. package/dist/session-binding-contract-api.js +1 -1
  73. package/dist/setup-entry.js +1 -1
  74. package/dist/setup-plugin-api.js +1 -1
  75. package/dist/subagent-hooks-api.js +1 -1
  76. package/dist/thread-bindings-runtime.js +1 -1
  77. package/node_modules/@babel/runtime/helpers/asyncIterator.js +1 -1
  78. package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +12 -6
  79. package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +1 -1
  80. package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +12 -6
  81. package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +16 -19
  82. package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +5 -5
  83. package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +16 -19
  84. package/node_modules/@babel/runtime/helpers/toPrimitive.js +5 -5
  85. package/node_modules/@babel/runtime/package.json +1 -1
  86. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +94 -0
  87. package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
  88. package/node_modules/@openclaw/fs-safe/dist/copy-file-input.d.ts +1 -1
  89. package/node_modules/@openclaw/fs-safe/dist/copy-file-input.js +3 -1
  90. package/node_modules/@openclaw/fs-safe/dist/copy-path-admission.js +2 -2
  91. package/node_modules/@openclaw/fs-safe/dist/copy-root-file-sync.js +8 -1
  92. package/node_modules/@openclaw/fs-safe/dist/file-open-error.d.ts +2 -0
  93. package/node_modules/@openclaw/fs-safe/dist/file-open-error.js +14 -0
  94. package/node_modules/@openclaw/fs-safe/dist/file-sync.d.ts +2 -1
  95. package/node_modules/@openclaw/fs-safe/dist/file-sync.js +6 -1
  96. package/node_modules/@openclaw/fs-safe/dist/guest-native-python.js +3 -0
  97. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +1 -0
  98. package/node_modules/@openclaw/fs-safe/dist/native-config.js +14 -3
  99. package/node_modules/@openclaw/fs-safe/dist/native-operations.js +2 -0
  100. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.js +9 -2
  101. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +40 -32
  102. package/node_modules/@openclaw/fs-safe/dist/output.js +6 -0
  103. package/node_modules/@openclaw/fs-safe/dist/owner-dacl.d.ts +2 -0
  104. package/node_modules/@openclaw/fs-safe/dist/owner-dacl.js +1 -0
  105. package/node_modules/@openclaw/fs-safe/dist/path.js +5 -1
  106. package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.js +25 -2
  107. package/node_modules/@openclaw/fs-safe/dist/publication-handle.d.ts +4 -0
  108. package/node_modules/@openclaw/fs-safe/dist/publication-handle.js +32 -0
  109. package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.d.ts +2 -1
  110. package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.js +19 -9
  111. package/node_modules/@openclaw/fs-safe/dist/publish-file.js +23 -24
  112. package/node_modules/@openclaw/fs-safe/dist/publish-rename-fallback.d.ts +21 -0
  113. package/node_modules/@openclaw/fs-safe/dist/publish-rename-fallback.js +102 -0
  114. package/node_modules/@openclaw/fs-safe/dist/root-create-native.js +2 -0
  115. package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.d.ts +3 -1
  116. package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.js +8 -5
  117. package/node_modules/@openclaw/fs-safe/dist/root-directory-list-types.d.ts +3 -0
  118. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +2 -1
  119. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +19 -9
  120. package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.js +3 -3
  121. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +2 -2
  122. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +27 -13
  123. package/node_modules/@openclaw/fs-safe/dist/root-path.js +2 -2
  124. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts +3 -0
  125. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +18 -3
  126. package/node_modules/@openclaw/fs-safe/dist/watch-hints.d.ts +1 -1
  127. package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +68 -21
  128. package/node_modules/@openclaw/fs-safe/dist/watch-io-error.d.ts +2 -0
  129. package/node_modules/@openclaw/fs-safe/dist/watch-io-error.js +27 -0
  130. package/node_modules/@openclaw/fs-safe/dist/watch-io-worker.d.ts +1 -0
  131. package/node_modules/@openclaw/fs-safe/dist/watch-io-worker.js +93 -0
  132. package/node_modules/@openclaw/fs-safe/dist/watch-io.d.ts +47 -0
  133. package/node_modules/@openclaw/fs-safe/dist/watch-io.js +236 -0
  134. package/node_modules/@openclaw/fs-safe/dist/watch-native.d.ts +1 -1
  135. package/node_modules/@openclaw/fs-safe/dist/watch-native.js +3 -3
  136. package/node_modules/@openclaw/fs-safe/dist/watch-probe.d.ts +16 -0
  137. package/node_modules/@openclaw/fs-safe/dist/watch-probe.js +135 -0
  138. package/node_modules/@openclaw/fs-safe/dist/watch-rescan.d.ts +1 -1
  139. package/node_modules/@openclaw/fs-safe/dist/watch-rescan.js +86 -24
  140. package/node_modules/@openclaw/fs-safe/dist/watch-scan.d.ts +4 -0
  141. package/node_modules/@openclaw/fs-safe/dist/watch-scan.js +78 -16
  142. package/node_modules/@openclaw/fs-safe/dist/watch-stream.d.ts +2 -0
  143. package/node_modules/@openclaw/fs-safe/dist/watch-stream.js +23 -0
  144. package/node_modules/@openclaw/fs-safe/dist/watch-types.d.ts +3 -1
  145. package/node_modules/@openclaw/fs-safe/dist/watch.js +60 -13
  146. package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.d.ts +1 -1
  147. package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.js +1 -0
  148. package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
  149. package/node_modules/@openclaw/fs-safe/docs/advanced.md +5 -2
  150. package/node_modules/@openclaw/fs-safe/docs/compiler-qualification.md +392 -0
  151. package/node_modules/@openclaw/fs-safe/docs/config.md +7 -1
  152. package/node_modules/@openclaw/fs-safe/docs/contributing.md +25 -5
  153. package/node_modules/@openclaw/fs-safe/docs/copy.md +10 -0
  154. package/node_modules/@openclaw/fs-safe/docs/durability.md +9 -3
  155. package/node_modules/@openclaw/fs-safe/docs/errors.md +13 -0
  156. package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.5.md +6 -4
  157. package/node_modules/@openclaw/fs-safe/docs/native-helper.md +6 -4
  158. package/node_modules/@openclaw/fs-safe/docs/output.md +4 -2
  159. package/node_modules/@openclaw/fs-safe/docs/path.md +5 -2
  160. package/node_modules/@openclaw/fs-safe/docs/permissions.md +15 -0
  161. package/node_modules/@openclaw/fs-safe/docs/security-model.md +9 -0
  162. package/node_modules/@openclaw/fs-safe/docs/staged-file.md +2 -0
  163. package/node_modules/@openclaw/fs-safe/docs/testing.md +1 -1
  164. package/node_modules/@openclaw/fs-safe/docs/watch.md +62 -5
  165. package/node_modules/@openclaw/fs-safe/docs/writing.md +6 -1
  166. package/node_modules/@openclaw/fs-safe/package.json +18 -16
  167. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  168. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  169. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  170. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  171. package/node_modules/@openclaw/fs-safe-freebsd-arm64/fs-safe-native.node +0 -0
  172. package/node_modules/@openclaw/fs-safe-freebsd-arm64/package.json +1 -1
  173. package/node_modules/@openclaw/fs-safe-freebsd-x64/fs-safe-native.node +0 -0
  174. package/node_modules/@openclaw/fs-safe-freebsd-x64/package.json +1 -1
  175. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  176. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  177. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  178. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  179. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  180. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  181. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  182. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  183. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/fs-safe-native.node +0 -0
  184. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/package.json +1 -1
  185. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  186. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  187. package/node_modules/@tokenizer/inflate/README.md +30 -1
  188. package/node_modules/@tokenizer/inflate/lib/GzipHandler.js +1 -1
  189. package/node_modules/@tokenizer/inflate/lib/ZipHandler.d.ts +8 -3
  190. package/node_modules/@tokenizer/inflate/lib/ZipHandler.js +101 -26
  191. package/node_modules/@tokenizer/inflate/lib/ZipLimitError.d.ts +16 -0
  192. package/node_modules/@tokenizer/inflate/lib/ZipLimitError.js +10 -0
  193. package/node_modules/@tokenizer/inflate/lib/ZipToken.d.ts +1 -1
  194. package/node_modules/@tokenizer/inflate/lib/ZipToken.js +11 -7
  195. package/node_modules/@tokenizer/inflate/lib/index.d.ts +2 -1
  196. package/node_modules/@tokenizer/inflate/lib/index.js +2 -1
  197. package/node_modules/@tokenizer/inflate/package.json +16 -15
  198. package/node_modules/argparse/lib/argparse.js +1 -1
  199. package/node_modules/argparse/package.json +1 -1
  200. package/node_modules/fake-indexeddb/build/cjs/FDBCursor.js +20 -18
  201. package/node_modules/fake-indexeddb/build/cjs/FDBKeyRange.js +6 -6
  202. package/node_modules/fake-indexeddb/build/cjs/FDBTransaction.js +20 -2
  203. package/node_modules/fake-indexeddb/build/cjs/lib/RecordStore.js +3 -3
  204. package/node_modules/fake-indexeddb/build/cjs/lib/binarySearchTree.js +11 -13
  205. package/node_modules/fake-indexeddb/build/cjs/lib/cmp.js +44 -14
  206. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/auto.js +54 -0
  207. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/binarySearchTree.js +413 -0
  208. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/fakeIndexedDB.js +1018 -0
  209. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/forceCloseDatabase.js +99 -0
  210. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/getAll.js +707 -0
  211. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/memoryLeaks.js +42 -0
  212. package/node_modules/fake-indexeddb/build/esm/FDBCursor.js +19 -18
  213. package/node_modules/fake-indexeddb/build/esm/FDBKeyRange.js +6 -6
  214. package/node_modules/fake-indexeddb/build/esm/FDBTransaction.js +20 -2
  215. package/node_modules/fake-indexeddb/build/esm/lib/RecordStore.js +3 -3
  216. package/node_modules/fake-indexeddb/build/esm/lib/binarySearchTree.js +11 -13
  217. package/node_modules/fake-indexeddb/build/esm/lib/cmp.js +41 -11
  218. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/auto.js +52 -0
  219. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/binarySearchTree.js +409 -0
  220. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/fakeIndexedDB.js +1014 -0
  221. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/forceCloseDatabase.js +95 -0
  222. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/getAll.js +703 -0
  223. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/memoryLeaks.js +38 -0
  224. package/node_modules/fake-indexeddb/package.json +1 -1
  225. package/node_modules/file-type/node_modules/strtok3/LICENSE.txt +21 -0
  226. package/node_modules/file-type/node_modules/strtok3/README.md +591 -0
  227. package/node_modules/file-type/node_modules/strtok3/lib/AbortSignal.d.ts +2 -0
  228. package/node_modules/file-type/node_modules/strtok3/lib/AbortSignal.js +7 -0
  229. package/node_modules/file-type/node_modules/strtok3/lib/AbstractTokenizer.d.ts +114 -0
  230. package/node_modules/file-type/node_modules/strtok3/lib/AbstractTokenizer.js +196 -0
  231. package/node_modules/file-type/node_modules/strtok3/lib/BlobTokenizer.d.ts +29 -0
  232. package/node_modules/file-type/node_modules/strtok3/lib/BlobTokenizer.js +56 -0
  233. package/node_modules/file-type/node_modules/strtok3/lib/BufferSizeError.d.ts +19 -0
  234. package/node_modules/file-type/node_modules/strtok3/lib/BufferSizeError.js +27 -0
  235. package/node_modules/file-type/node_modules/strtok3/lib/BufferTokenizer.d.ts +29 -0
  236. package/node_modules/file-type/node_modules/strtok3/lib/BufferTokenizer.js +50 -0
  237. package/node_modules/file-type/node_modules/strtok3/lib/FileTokenizer.d.ts +47 -0
  238. package/node_modules/file-type/node_modules/strtok3/lib/FileTokenizer.js +83 -0
  239. package/node_modules/file-type/node_modules/strtok3/lib/NotRegularFileError.d.ts +5 -0
  240. package/node_modules/file-type/node_modules/strtok3/lib/NotRegularFileError.js +8 -0
  241. package/node_modules/file-type/node_modules/strtok3/lib/ReadStreamTokenizer.d.ts +34 -0
  242. package/node_modules/file-type/node_modules/strtok3/lib/ReadStreamTokenizer.js +125 -0
  243. package/node_modules/file-type/node_modules/strtok3/lib/core.d.ts +41 -0
  244. package/node_modules/file-type/node_modules/strtok3/lib/core.js +69 -0
  245. package/node_modules/file-type/node_modules/strtok3/lib/index.d.ts +17 -0
  246. package/node_modules/file-type/node_modules/strtok3/lib/index.js +23 -0
  247. package/node_modules/file-type/node_modules/strtok3/lib/stream/AbstractStreamReader.d.ts +54 -0
  248. package/node_modules/file-type/node_modules/strtok3/lib/stream/AbstractStreamReader.js +73 -0
  249. package/node_modules/file-type/node_modules/strtok3/lib/stream/Deferred.d.ts +6 -0
  250. package/node_modules/file-type/node_modules/strtok3/lib/stream/Deferred.js +10 -0
  251. package/node_modules/file-type/node_modules/strtok3/lib/stream/Errors.d.ts +10 -0
  252. package/node_modules/file-type/node_modules/strtok3/lib/stream/Errors.js +16 -0
  253. package/node_modules/file-type/node_modules/strtok3/lib/stream/StreamReader.d.ts +30 -0
  254. package/node_modules/file-type/node_modules/strtok3/lib/stream/StreamReader.js +104 -0
  255. package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamByobReader.d.ts +14 -0
  256. package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamByobReader.js +29 -0
  257. package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +19 -0
  258. package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +67 -0
  259. package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +14 -0
  260. package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamReader.js +13 -0
  261. package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamReaderFactory.d.ts +5 -0
  262. package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +19 -0
  263. package/node_modules/file-type/node_modules/strtok3/lib/stream/index.d.ts +6 -0
  264. package/node_modules/file-type/node_modules/strtok3/lib/stream/index.js +5 -0
  265. package/node_modules/file-type/node_modules/strtok3/lib/types.d.ts +146 -0
  266. package/node_modules/file-type/node_modules/strtok3/lib/types.js +1 -0
  267. package/node_modules/file-type/node_modules/strtok3/package.json +95 -0
  268. package/node_modules/file-type/package.json +28 -27
  269. package/node_modules/file-type/readme.md +32 -3
  270. package/node_modules/file-type/source/detectors/ebml.js +2 -2
  271. package/node_modules/file-type/source/detectors/png.js +1 -0
  272. package/node_modules/file-type/source/detectors/zip.js +71 -112
  273. package/node_modules/file-type/source/index.d.ts +18 -8
  274. package/node_modules/file-type/source/index.js +75 -49
  275. package/node_modules/file-type/source/index.test-d.ts +29 -21
  276. package/node_modules/file-type/source/supported.js +4 -0
  277. package/node_modules/file-type/source/tokens.js +2 -2
  278. package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs +737 -686
  279. package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs.map +1 -1
  280. package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js +8 -8
  281. package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js.map +1 -1
  282. package/node_modules/markdown-it/dist/markdown-it.cjs.js +660 -518
  283. package/node_modules/markdown-it/dist/markdown-it.cjs.js.map +1 -1
  284. package/node_modules/markdown-it/dist/markdown-it.d.mts +1 -0
  285. package/node_modules/markdown-it/dist/markdown-it.mjs +179 -124
  286. package/node_modules/markdown-it/dist/markdown-it.mjs.map +1 -1
  287. package/node_modules/markdown-it/package.json +11 -11
  288. package/node_modules/matrix-js-sdk/CHANGELOG.md +23 -0
  289. package/node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts +3 -1
  290. package/node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts.map +1 -1
  291. package/node_modules/matrix-js-sdk/lib/@types/PushRules.js +2 -0
  292. package/node_modules/matrix-js-sdk/lib/@types/PushRules.js.map +1 -1
  293. package/node_modules/matrix-js-sdk/lib/@types/event.d.ts +1 -0
  294. package/node_modules/matrix-js-sdk/lib/@types/event.d.ts.map +1 -1
  295. package/node_modules/matrix-js-sdk/lib/@types/event.js.map +1 -1
  296. package/node_modules/matrix-js-sdk/lib/@types/matrix-sdk-crypto-wasm.d.js.map +1 -1
  297. package/node_modules/matrix-js-sdk/lib/client.d.ts +88 -37
  298. package/node_modules/matrix-js-sdk/lib/client.d.ts.map +1 -1
  299. package/node_modules/matrix-js-sdk/lib/client.js +72 -47
  300. package/node_modules/matrix-js-sdk/lib/client.js.map +1 -1
  301. package/node_modules/matrix-js-sdk/lib/crypto-api/index.d.ts +3 -3
  302. package/node_modules/matrix-js-sdk/lib/crypto-api/index.d.ts.map +1 -1
  303. package/node_modules/matrix-js-sdk/lib/crypto-api/index.js.map +1 -1
  304. package/node_modules/matrix-js-sdk/lib/embedded.d.ts +17 -1
  305. package/node_modules/matrix-js-sdk/lib/embedded.d.ts.map +1 -1
  306. package/node_modules/matrix-js-sdk/lib/embedded.js +46 -1
  307. package/node_modules/matrix-js-sdk/lib/embedded.js.map +1 -1
  308. package/node_modules/matrix-js-sdk/lib/errors.d.ts +1 -1
  309. package/node_modules/matrix-js-sdk/lib/errors.d.ts.map +1 -1
  310. package/node_modules/matrix-js-sdk/lib/errors.js +2 -2
  311. package/node_modules/matrix-js-sdk/lib/errors.js.map +1 -1
  312. package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts +7 -1
  313. package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts.map +1 -1
  314. package/node_modules/matrix-js-sdk/lib/http-api/fetch.js +14 -5
  315. package/node_modules/matrix-js-sdk/lib/http-api/fetch.js.map +1 -1
  316. package/node_modules/matrix-js-sdk/lib/http-api/interface.d.ts +34 -8
  317. package/node_modules/matrix-js-sdk/lib/http-api/interface.d.ts.map +1 -1
  318. package/node_modules/matrix-js-sdk/lib/http-api/interface.js +10 -3
  319. package/node_modules/matrix-js-sdk/lib/http-api/interface.js.map +1 -1
  320. package/node_modules/matrix-js-sdk/lib/http-api/refresh.d.ts +30 -11
  321. package/node_modules/matrix-js-sdk/lib/http-api/refresh.d.ts.map +1 -1
  322. package/node_modules/matrix-js-sdk/lib/http-api/refresh.js +72 -5
  323. package/node_modules/matrix-js-sdk/lib/http-api/refresh.js.map +1 -1
  324. package/node_modules/matrix-js-sdk/lib/http-api/utils.js +1 -3
  325. package/node_modules/matrix-js-sdk/lib/matrix.d.ts +1 -1
  326. package/node_modules/matrix-js-sdk/lib/matrix.d.ts.map +1 -1
  327. package/node_modules/matrix-js-sdk/lib/matrix.js.map +1 -1
  328. package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts.map +1 -1
  329. package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js +20 -6
  330. package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js.map +1 -1
  331. package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.d.ts +5 -0
  332. package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.d.ts.map +1 -1
  333. package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.js.map +1 -1
  334. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts +27 -1
  335. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts.map +1 -1
  336. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js +58 -36
  337. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js.map +1 -1
  338. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.js +1 -1
  339. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.js.map +1 -1
  340. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts +76 -0
  341. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts.map +1 -1
  342. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js +264 -47
  343. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js.map +1 -1
  344. package/node_modules/matrix-js-sdk/lib/matrixrtc/index.d.ts +1 -1
  345. package/node_modules/matrix-js-sdk/lib/matrixrtc/index.d.ts.map +1 -1
  346. package/node_modules/matrix-js-sdk/lib/matrixrtc/index.js +1 -1
  347. package/node_modules/matrix-js-sdk/lib/matrixrtc/index.js.map +1 -1
  348. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.d.ts +8 -0
  349. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.d.ts.map +1 -1
  350. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.js +10 -0
  351. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.js.map +1 -1
  352. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.d.ts +1 -1
  353. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.d.ts.map +1 -1
  354. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.js +1 -1
  355. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.js.map +1 -1
  356. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts +104 -11
  357. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts.map +1 -1
  358. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js +263 -19
  359. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js.map +1 -1
  360. package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.d.ts +22 -1
  361. package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.d.ts.map +1 -1
  362. package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.js +38 -0
  363. package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.js.map +1 -1
  364. package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.d.ts +7 -0
  365. package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.d.ts.map +1 -1
  366. package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.js +27 -0
  367. package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.js.map +1 -1
  368. package/node_modules/matrix-js-sdk/lib/models/thread.d.ts.map +1 -1
  369. package/node_modules/matrix-js-sdk/lib/models/thread.js +8 -0
  370. package/node_modules/matrix-js-sdk/lib/models/thread.js.map +1 -1
  371. package/node_modules/matrix-js-sdk/lib/oauth/authorize.js +1 -1
  372. package/node_modules/matrix-js-sdk/lib/oauth/authorize.js.map +1 -1
  373. package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts +3 -5
  374. package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts.map +1 -1
  375. package/node_modules/matrix-js-sdk/lib/oauth/index.js +7 -7
  376. package/node_modules/matrix-js-sdk/lib/oauth/index.js.map +1 -1
  377. package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.d.ts +10 -4
  378. package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.d.ts.map +1 -1
  379. package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.js +34 -24
  380. package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.js.map +1 -1
  381. package/node_modules/matrix-js-sdk/lib/receipt-accumulator.d.ts +10 -11
  382. package/node_modules/matrix-js-sdk/lib/receipt-accumulator.d.ts.map +1 -1
  383. package/node_modules/matrix-js-sdk/lib/receipt-accumulator.js +26 -25
  384. package/node_modules/matrix-js-sdk/lib/receipt-accumulator.js.map +1 -1
  385. package/node_modules/matrix-js-sdk/lib/room-summary-api.d.ts +71 -0
  386. package/node_modules/matrix-js-sdk/lib/room-summary-api.d.ts.map +1 -0
  387. package/node_modules/matrix-js-sdk/lib/room-summary-api.js +82 -0
  388. package/node_modules/matrix-js-sdk/lib/room-summary-api.js.map +1 -0
  389. package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.d.ts +7 -0
  390. package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.d.ts.map +1 -1
  391. package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.js +41 -25
  392. package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.js.map +1 -1
  393. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js +1 -7
  394. package/node_modules/matrix-js-sdk/lib/sync.d.ts.map +1 -1
  395. package/node_modules/matrix-js-sdk/lib/sync.js +6 -1
  396. package/node_modules/matrix-js-sdk/lib/sync.js.map +1 -1
  397. package/node_modules/matrix-js-sdk/package.json +6 -6
  398. package/node_modules/matrix-js-sdk/src/@types/PushRules.ts +2 -0
  399. package/node_modules/matrix-js-sdk/src/@types/event.ts +1 -1
  400. package/node_modules/matrix-js-sdk/src/@types/matrix-sdk-crypto-wasm.d.ts +15 -12
  401. package/node_modules/matrix-js-sdk/src/client.ts +105 -62
  402. package/node_modules/matrix-js-sdk/src/crypto-api/index.ts +3 -3
  403. package/node_modules/matrix-js-sdk/src/embedded.ts +61 -2
  404. package/node_modules/matrix-js-sdk/src/errors.ts +2 -1
  405. package/node_modules/matrix-js-sdk/src/http-api/fetch.ts +14 -5
  406. package/node_modules/matrix-js-sdk/src/http-api/interface.ts +36 -8
  407. package/node_modules/matrix-js-sdk/src/http-api/refresh.ts +101 -17
  408. package/node_modules/matrix-js-sdk/src/http-api/utils.ts +1 -5
  409. package/node_modules/matrix-js-sdk/src/matrix.ts +1 -1
  410. package/node_modules/matrix-js-sdk/src/matrixrtc/CallMembership.ts +22 -4
  411. package/node_modules/matrix-js-sdk/src/matrixrtc/IMembershipManager.ts +6 -0
  412. package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSession.ts +72 -49
  413. package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSessionManager.ts +1 -1
  414. package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManager.ts +284 -61
  415. package/node_modules/matrix-js-sdk/src/matrixrtc/index.ts +7 -1
  416. package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/common.ts +12 -0
  417. package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/index.ts +1 -1
  418. package/node_modules/matrix-js-sdk/src/matrixrtc/types.ts +351 -23
  419. package/node_modules/matrix-js-sdk/src/matrixrtc/utils.ts +54 -1
  420. package/node_modules/matrix-js-sdk/src/models/room-sticky-events.ts +26 -1
  421. package/node_modules/matrix-js-sdk/src/models/thread.ts +9 -0
  422. package/node_modules/matrix-js-sdk/src/oauth/authorize.ts +1 -1
  423. package/node_modules/matrix-js-sdk/src/oauth/index.ts +7 -8
  424. package/node_modules/matrix-js-sdk/src/oauth/tokenRefresher.ts +15 -5
  425. package/node_modules/matrix-js-sdk/src/receipt-accumulator.ts +30 -26
  426. package/node_modules/matrix-js-sdk/src/room-summary-api.ts +114 -0
  427. package/node_modules/matrix-js-sdk/src/rust-crypto/backup.ts +46 -33
  428. package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +1 -7
  429. package/node_modules/matrix-js-sdk/src/sync.ts +9 -1
  430. package/node_modules/music-metadata/README.md +125 -37
  431. package/node_modules/music-metadata/lib/ParseError.d.ts +10 -3
  432. package/node_modules/music-metadata/lib/ParseError.js +2 -0
  433. package/node_modules/music-metadata/lib/ParserFactory.d.ts +1 -1
  434. package/node_modules/music-metadata/lib/ParserFactory.js +20 -8
  435. package/node_modules/music-metadata/lib/aiff/AiffParser.d.ts +1 -0
  436. package/node_modules/music-metadata/lib/aiff/AiffParser.js +25 -17
  437. package/node_modules/music-metadata/lib/aiff/AiffToken.d.ts +9 -3
  438. package/node_modules/music-metadata/lib/aiff/AiffToken.js +10 -0
  439. package/node_modules/music-metadata/lib/apev2/APEv2Parser.d.ts +4 -3
  440. package/node_modules/music-metadata/lib/apev2/APEv2Parser.js +6 -30
  441. package/node_modules/music-metadata/lib/asf/AsfGuid.js +49 -49
  442. package/node_modules/music-metadata/lib/asf/AsfObject.d.ts +12 -6
  443. package/node_modules/music-metadata/lib/asf/AsfObject.js +201 -58
  444. package/node_modules/music-metadata/lib/asf/AsfParser.d.ts +4 -0
  445. package/node_modules/music-metadata/lib/asf/AsfParser.js +119 -27
  446. package/node_modules/music-metadata/lib/caf/CafLoader.d.ts +2 -0
  447. package/node_modules/music-metadata/lib/caf/CafLoader.js +8 -0
  448. package/node_modules/music-metadata/lib/caf/CafParser.d.ts +37 -0
  449. package/node_modules/music-metadata/lib/caf/CafParser.js +253 -0
  450. package/node_modules/music-metadata/lib/caf/CafTagMap.d.ts +8 -0
  451. package/node_modules/music-metadata/lib/caf/CafTagMap.js +38 -0
  452. package/node_modules/music-metadata/lib/caf/CafToken.d.ts +75 -0
  453. package/node_modules/music-metadata/lib/caf/CafToken.js +135 -0
  454. package/node_modules/music-metadata/lib/common/Allocation.d.ts +14 -0
  455. package/node_modules/music-metadata/lib/common/Allocation.js +70 -0
  456. package/node_modules/music-metadata/lib/common/BasicParser.d.ts +2 -0
  457. package/node_modules/music-metadata/lib/common/BasicParser.js +8 -0
  458. package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.d.ts +1 -1
  459. package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.js +3 -3
  460. package/node_modules/music-metadata/lib/common/CombinedTagMapper.js +4 -3
  461. package/node_modules/music-metadata/lib/common/GenericTagMapper.d.ts +1 -1
  462. package/node_modules/music-metadata/lib/common/GenericTagMapper.js +4 -2
  463. package/node_modules/music-metadata/lib/common/GenericTagTypes.d.ts +2 -2
  464. package/node_modules/music-metadata/lib/common/MetadataCollector.d.ts +6 -5
  465. package/node_modules/music-metadata/lib/common/MetadataCollector.js +57 -30
  466. package/node_modules/music-metadata/lib/common/TrackInfo.d.ts +8 -0
  467. package/node_modules/music-metadata/lib/common/TrackInfo.js +68 -0
  468. package/node_modules/music-metadata/lib/common/Util.d.ts +1 -1
  469. package/node_modules/music-metadata/lib/common/Util.js +6 -12
  470. package/node_modules/music-metadata/lib/core.d.ts +1 -1
  471. package/node_modules/music-metadata/lib/core.js +10 -18
  472. package/node_modules/music-metadata/lib/dsdiff/DsdiffLoader.js +1 -1
  473. package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.d.ts +7 -3
  474. package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.js +69 -33
  475. package/node_modules/music-metadata/lib/dsf/DsfParser.d.ts +4 -3
  476. package/node_modules/music-metadata/lib/dsf/DsfParser.js +1 -1
  477. package/node_modules/music-metadata/lib/ebml/EbmlIterator.d.ts +28 -19
  478. package/node_modules/music-metadata/lib/ebml/EbmlIterator.js +97 -67
  479. package/node_modules/music-metadata/lib/ebml/types.d.ts +36 -8
  480. package/node_modules/music-metadata/lib/ebml/types.js +2 -1
  481. package/node_modules/music-metadata/lib/flac/FlacParser.js +10 -18
  482. package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.d.ts +1 -1
  483. package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.js +5 -1
  484. package/node_modules/music-metadata/lib/id3v2/AbstractID3Parser.js +1 -4
  485. package/node_modules/music-metadata/lib/id3v2/EmbeddedID3v2.d.ts +5 -0
  486. package/node_modules/music-metadata/lib/id3v2/EmbeddedID3v2.js +29 -0
  487. package/node_modules/music-metadata/lib/id3v2/FrameParser.d.ts +5 -3
  488. package/node_modules/music-metadata/lib/id3v2/FrameParser.js +59 -33
  489. package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js +15 -8
  490. package/node_modules/music-metadata/lib/index.d.ts +2 -0
  491. package/node_modules/music-metadata/lib/index.js +8 -4
  492. package/node_modules/music-metadata/lib/matroska/MatroskaDtd.d.ts +630 -2
  493. package/node_modules/music-metadata/lib/matroska/MatroskaDtd.js +58 -40
  494. package/node_modules/music-metadata/lib/matroska/MatroskaParser.d.ts +4 -0
  495. package/node_modules/music-metadata/lib/matroska/MatroskaParser.js +211 -68
  496. package/node_modules/music-metadata/lib/matroska/types.d.ts +33 -131
  497. package/node_modules/music-metadata/lib/matroska/types.js +1 -18
  498. package/node_modules/music-metadata/lib/mp4/Atom.js +7 -0
  499. package/node_modules/music-metadata/lib/mp4/AtomToken.d.ts +17 -4
  500. package/node_modules/music-metadata/lib/mp4/AtomToken.js +124 -21
  501. package/node_modules/music-metadata/lib/mp4/MP4Parser.d.ts +12 -3
  502. package/node_modules/music-metadata/lib/mp4/MP4Parser.js +559 -242
  503. package/node_modules/music-metadata/lib/mpeg/AdtsFrameHeader.d.ts +17 -0
  504. package/node_modules/music-metadata/lib/mpeg/AdtsFrameHeader.js +44 -0
  505. package/node_modules/music-metadata/lib/mpeg/MpegFrameHeader.d.ts +41 -0
  506. package/node_modules/music-metadata/lib/mpeg/MpegFrameHeader.js +84 -0
  507. package/node_modules/music-metadata/lib/mpeg/MpegParser.d.ts +11 -24
  508. package/node_modules/music-metadata/lib/mpeg/MpegParser.js +77 -337
  509. package/node_modules/music-metadata/lib/musepack/MusepackConentError.d.ts +4 -3
  510. package/node_modules/music-metadata/lib/musepack/sv7/BitReader.js +3 -2
  511. package/node_modules/music-metadata/lib/musepack/sv7/MpcSv7Parser.js +3 -6
  512. package/node_modules/music-metadata/lib/musepack/sv8/MpcSv8Parser.js +1 -4
  513. package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.js +1 -0
  514. package/node_modules/music-metadata/lib/ogg/OggLoader.js +1 -1
  515. package/node_modules/music-metadata/lib/ogg/OggParser.d.ts +4 -3
  516. package/node_modules/music-metadata/lib/ogg/OggParser.js +54 -9
  517. package/node_modules/music-metadata/lib/ogg/OggStreamMetadata.d.ts +14 -0
  518. package/node_modules/music-metadata/lib/ogg/OggStreamMetadata.js +27 -0
  519. package/node_modules/music-metadata/lib/ogg/OggToken.d.ts +1 -0
  520. package/node_modules/music-metadata/lib/ogg/OggToken.js +3 -1
  521. package/node_modules/music-metadata/lib/ogg/flac/FlacStream.d.ts +3 -1
  522. package/node_modules/music-metadata/lib/ogg/flac/FlacStream.js +21 -3
  523. package/node_modules/music-metadata/lib/ogg/opus/Opus.d.ts +4 -3
  524. package/node_modules/music-metadata/lib/ogg/opus/Opus.js +1 -0
  525. package/node_modules/music-metadata/lib/ogg/opus/OpusStream.js +4 -2
  526. package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.js +2 -1
  527. package/node_modules/music-metadata/lib/ogg/theora/Theora.d.ts +5 -0
  528. package/node_modules/music-metadata/lib/ogg/theora/Theora.js +7 -2
  529. package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.d.ts +5 -2
  530. package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.js +43 -3
  531. package/node_modules/music-metadata/lib/ogg/vorbis/Vorbis.js +4 -3
  532. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.d.ts +11 -0
  533. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.js +29 -0
  534. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.d.ts +6 -4
  535. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.js +24 -18
  536. package/node_modules/music-metadata/lib/riff/RiffChunk.js +3 -0
  537. package/node_modules/music-metadata/lib/type.d.ts +49 -6
  538. package/node_modules/music-metadata/lib/type.js +22 -1
  539. package/node_modules/music-metadata/lib/wav/WaveChunk.d.ts +4 -3
  540. package/node_modules/music-metadata/lib/wav/WaveChunk.js +2 -0
  541. package/node_modules/music-metadata/lib/wav/WaveParser.d.ts +0 -1
  542. package/node_modules/music-metadata/lib/wav/WaveParser.js +21 -23
  543. package/node_modules/music-metadata/lib/wavpack/WavPackParser.d.ts +4 -3
  544. package/node_modules/music-metadata/lib/wavpack/WavPackParser.js +6 -6
  545. package/node_modules/music-metadata/package.json +26 -22
  546. package/node_modules/strtok3/LICENSE.txt +21 -21
  547. package/node_modules/strtok3/README.md +712 -399
  548. package/node_modules/strtok3/lib/AbortSignal.d.ts +2 -0
  549. package/node_modules/strtok3/lib/AbortSignal.js +7 -0
  550. package/node_modules/strtok3/lib/AbstractTokenizer.d.ts +40 -2
  551. package/node_modules/strtok3/lib/AbstractTokenizer.js +101 -16
  552. package/node_modules/strtok3/lib/BlobTokenizer.d.ts +1 -1
  553. package/node_modules/strtok3/lib/BlobTokenizer.js +14 -11
  554. package/node_modules/strtok3/lib/BufferSizeError.d.ts +19 -0
  555. package/node_modules/strtok3/lib/BufferSizeError.js +27 -0
  556. package/node_modules/strtok3/lib/BufferTokenizer.d.ts +1 -1
  557. package/node_modules/strtok3/lib/BufferTokenizer.js +7 -9
  558. package/node_modules/strtok3/lib/FileTokenizer.d.ts +13 -3
  559. package/node_modules/strtok3/lib/FileTokenizer.js +29 -7
  560. package/node_modules/strtok3/lib/NotRegularFileError.d.ts +5 -0
  561. package/node_modules/strtok3/lib/NotRegularFileError.js +8 -0
  562. package/node_modules/strtok3/lib/ReadStreamTokenizer.js +32 -9
  563. package/node_modules/strtok3/lib/TokenizerBoundaryError.d.ts +7 -0
  564. package/node_modules/strtok3/lib/TokenizerBoundaryError.js +10 -0
  565. package/node_modules/strtok3/lib/TokenizerView.d.ts +9 -0
  566. package/node_modules/strtok3/lib/TokenizerView.js +184 -0
  567. package/node_modules/strtok3/lib/core.d.ts +10 -6
  568. package/node_modules/strtok3/lib/core.js +16 -22
  569. package/node_modules/strtok3/lib/index.d.ts +5 -4
  570. package/node_modules/strtok3/lib/index.js +3 -2
  571. package/node_modules/strtok3/lib/isRandomAccessTokenizer.d.ts +6 -0
  572. package/node_modules/strtok3/lib/isRandomAccessTokenizer.js +10 -0
  573. package/node_modules/strtok3/lib/stream/AbstractStreamReader.js +5 -3
  574. package/node_modules/strtok3/lib/stream/Errors.js +3 -3
  575. package/node_modules/strtok3/lib/stream/StreamReader.d.ts +4 -3
  576. package/node_modules/strtok3/lib/stream/StreamReader.js +46 -25
  577. package/node_modules/strtok3/lib/stream/WebStreamByobReader.js +5 -3
  578. package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +1 -1
  579. package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +9 -4
  580. package/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +13 -3
  581. package/node_modules/strtok3/lib/stream/WebStreamReader.js +1 -1
  582. package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +1 -1
  583. package/node_modules/strtok3/lib/stream/index.d.ts +1 -1
  584. package/node_modules/strtok3/lib/types.d.ts +25 -1
  585. package/node_modules/strtok3/package.json +97 -94
  586. package/node_modules/typebox/build/format/duration.d.mts +2 -2
  587. package/node_modules/typebox/build/format/duration.mjs +2 -2
  588. package/node_modules/typebox/build/format/idn_email.d.mts +1 -0
  589. package/node_modules/typebox/build/format/idn_email.mjs +1 -0
  590. package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -1
  591. package/node_modules/typebox/build/format/idn_hostname.mjs +1 -1
  592. package/node_modules/typebox/build/format/ipv4.d.mts +2 -2
  593. package/node_modules/typebox/build/format/ipv4.mjs +2 -2
  594. package/node_modules/typebox/build/format/ipv6.d.mts +1 -1
  595. package/node_modules/typebox/build/format/ipv6.mjs +1 -1
  596. package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
  597. package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
  598. package/node_modules/typebox/build/schema/build.mjs +1 -0
  599. package/node_modules/typebox/build/schema/engine/_unique.d.mts +4 -2
  600. package/node_modules/typebox/build/schema/engine/_unique.mjs +7 -3
  601. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +3 -3
  602. package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +0 -3
  603. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +15 -17
  604. package/node_modules/typebox/build/schema/engine/contains.mjs +3 -3
  605. package/node_modules/typebox/build/schema/engine/index.d.mts +1 -0
  606. package/node_modules/typebox/build/schema/engine/index.mjs +1 -0
  607. package/node_modules/typebox/build/schema/engine/items.mjs +7 -4
  608. package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -2
  609. package/node_modules/typebox/build/schema/engine/minContains.mjs +3 -3
  610. package/node_modules/typebox/build/schema/engine/oneOf.mjs +2 -2
  611. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +2 -2
  612. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -2
  613. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
  614. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
  615. package/node_modules/typebox/build/system/hashing/hash.mjs +63 -34
  616. package/node_modules/typebox/build/system/locale/en_US.mjs +2 -1
  617. package/node_modules/typebox/build/system/memory/assign.d.mts +2 -8
  618. package/node_modules/typebox/build/system/memory/assign.mjs +13 -6
  619. package/node_modules/typebox/build/system/memory/clone.d.mts +4 -5
  620. package/node_modules/typebox/build/system/memory/clone.mjs +8 -96
  621. package/node_modules/typebox/build/system/memory/create.d.mts +1 -5
  622. package/node_modules/typebox/build/system/memory/create.mjs +18 -13
  623. package/node_modules/typebox/build/system/memory/deep.d.mts +2 -0
  624. package/node_modules/typebox/build/system/memory/deep.mjs +108 -0
  625. package/node_modules/typebox/build/system/memory/discard.d.mts +1 -1
  626. package/node_modules/typebox/build/system/memory/discard.mjs +9 -8
  627. package/node_modules/typebox/build/system/memory/finalize.d.mts +4 -0
  628. package/node_modules/typebox/build/system/memory/finalize.mjs +30 -0
  629. package/node_modules/typebox/build/system/memory/keys.d.mts +2 -0
  630. package/node_modules/typebox/build/system/memory/keys.mjs +8 -0
  631. package/node_modules/typebox/build/system/memory/update.d.mts +1 -4
  632. package/node_modules/typebox/build/system/memory/update.mjs +43 -16
  633. package/node_modules/typebox/build/type/engine/call/index.d.mts +1 -0
  634. package/node_modules/typebox/build/type/engine/call/index.mjs +1 -0
  635. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +2 -24
  636. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +2 -29
  637. package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +1 -0
  638. package/node_modules/typebox/build/type/engine/evaluate/index.mjs +1 -0
  639. package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -1
  640. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +6 -1
  641. package/node_modules/typebox/build/type/engine/evaluate/property.d.mts +30 -0
  642. package/node_modules/typebox/build/type/engine/evaluate/property.mjs +29 -0
  643. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +1 -3
  644. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +1 -4
  645. package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +2 -2
  646. package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +2 -2
  647. package/node_modules/typebox/build/type/engine/object/from_union.d.mts +2 -2
  648. package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
  649. package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +1 -3
  650. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +1 -4
  651. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +1 -3
  652. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +1 -4
  653. package/node_modules/typebox/build/type/engine/this/index.d.mts +1 -0
  654. package/node_modules/typebox/build/type/engine/this/index.mjs +1 -0
  655. package/node_modules/typebox/build/value/clone/clone.d.mts +4 -3
  656. package/node_modules/typebox/build/value/clone/clone.mjs +5 -7
  657. package/node_modules/typebox/build/value/repair/from_cyclic.d.mts +2 -0
  658. package/node_modules/typebox/build/value/repair/from_cyclic.mjs +6 -0
  659. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +25 -14
  660. package/node_modules/typebox/package.json +1 -1
  661. package/node_modules/typebox/readme.md +1 -1
  662. package/node_modules/zod/package.json +1 -1
  663. package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
  664. package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
  665. package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
  666. package/node_modules/zod/src/v4/core/compile.ts +9 -0
  667. package/node_modules/zod/src/v4/core/schemas.ts +35 -1
  668. package/node_modules/zod/src/v4/core/util.ts +13 -0
  669. package/node_modules/zod/src/v4/core/versions.ts +1 -1
  670. package/node_modules/zod/v4/core/compile.cjs +8 -0
  671. package/node_modules/zod/v4/core/compile.js +8 -0
  672. package/node_modules/zod/v4/core/schemas.cjs +30 -0
  673. package/node_modules/zod/v4/core/schemas.d.cts +3 -1
  674. package/node_modules/zod/v4/core/schemas.d.ts +3 -1
  675. package/node_modules/zod/v4/core/schemas.js +30 -0
  676. package/node_modules/zod/v4/core/util.cjs +15 -0
  677. package/node_modules/zod/v4/core/util.d.cts +2 -0
  678. package/node_modules/zod/v4/core/util.d.ts +2 -0
  679. package/node_modules/zod/v4/core/util.js +14 -0
  680. package/node_modules/zod/v4/core/versions.cjs +1 -1
  681. package/node_modules/zod/v4/core/versions.js +1 -1
  682. package/openclaw.plugin.json +11 -0
  683. package/package.json +11 -11
  684. package/dist/.setup/channel.runtime-DaGbm27q.mjs +0 -74
  685. package/dist/.setup/device-health-DnKAXW1v.mjs +0 -20
  686. package/dist/.setup/inbound-dedupe-CZnOq0ja.mjs +0 -47
  687. package/dist/.setup/setup-plugin-api-SO1hdrsT.mjs +0 -2
  688. package/node_modules/music-metadata/node_modules/content-type/LICENSE +0 -22
  689. package/node_modules/music-metadata/node_modules/content-type/README.md +0 -71
  690. package/node_modules/music-metadata/node_modules/content-type/dist/index.d.ts +0 -46
  691. package/node_modules/music-metadata/node_modules/content-type/dist/index.js +0 -176
  692. package/node_modules/music-metadata/node_modules/content-type/dist/index.js.map +0 -1
  693. package/node_modules/music-metadata/node_modules/content-type/package.json +0 -52
  694. package/node_modules/typebox/build/system/memory/freeze.d.mts +0 -4
  695. 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. Use `configureFsSafeNative()` or `FS_SAFE_NATIVE_MODE`. See the
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 | `macos-15` | arm64 | Node 22, 24, 26 |
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 | `macos-15` | arm64 | Node 24, Bun 1.4.2 |
327
- | Native check | `macos-15-intel` | x64 | Node 24, Bun 1.4.2 |
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`, `macos-15`, `fs-safe-windows-16core` | host | Node 22, 24 |
336
- | Coverage | `ubuntu-latest`, `macos-15`, `fs-safe-windows-16core` | host | Node 22 |
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 existing native file-move fallback.
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, then unlinks the source and verifies the
224
- target has one link. Fallback collisions report `already-exists` without clobbering;
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. Python environment settings are now ignored
47
- silently: a deployment that set `FS_SAFE_PYTHON_MODE=require` or `off` runs in
48
- `auto` after upgrading unless it sets `FS_SAFE_NATIVE_MODE` (or calls
49
- `configureFsSafeNative`) first. Programmatic native configuration wins, followed by
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 has been removed. Old Python environment
184
- settings are ignored without a warning, so an old `require` or `off` setting
185
- does not select the corresponding native policy. Configure
186
- `FS_SAFE_NATIVE_MODE` or `configureFsSafeNative()` explicitly. Follow the
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 parent identity is guarded across
103
- the operation and the parent directory is synchronized best-effort after
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
- This convenience wrapper preserves ordinary Node `realpath` semantics; it is
90
- not a caller-path admission boundary on its own.
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.