@openclaw/openshell-sandbox 2026.9.5 → 2026.9.6

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 (1123) hide show
  1. package/dist/index.js +17 -49
  2. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +202 -0
  3. package/node_modules/@openclaw/fs-safe/README.md +45 -10
  4. package/node_modules/@openclaw/fs-safe/dist/absolute-path.d.ts +0 -1
  5. package/node_modules/@openclaw/fs-safe/dist/absolute-path.js +2 -8
  6. package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +6 -3
  7. package/node_modules/@openclaw/fs-safe/dist/advanced.js +4 -1
  8. package/node_modules/@openclaw/fs-safe/dist/archive-crc32.d.ts +0 -1
  9. package/node_modules/@openclaw/fs-safe/dist/archive-deadline.d.ts +0 -1
  10. package/node_modules/@openclaw/fs-safe/dist/archive-deadline.js +22 -23
  11. package/node_modules/@openclaw/fs-safe/dist/archive-durability.d.ts +1 -2
  12. package/node_modules/@openclaw/fs-safe/dist/archive-entry.d.ts +0 -1
  13. package/node_modules/@openclaw/fs-safe/dist/archive-errors.d.ts +0 -1
  14. package/node_modules/@openclaw/fs-safe/dist/archive-gzip-tail.d.ts +0 -1
  15. package/node_modules/@openclaw/fs-safe/dist/archive-input.d.ts +0 -1
  16. package/node_modules/@openclaw/fs-safe/dist/archive-kind.d.ts +0 -2
  17. package/node_modules/@openclaw/fs-safe/dist/archive-kind.js +5 -17
  18. package/node_modules/@openclaw/fs-safe/dist/archive-limits.d.ts +0 -1
  19. package/node_modules/@openclaw/fs-safe/dist/archive-merge.d.ts +3 -4
  20. package/node_modules/@openclaw/fs-safe/dist/archive-merge.js +129 -52
  21. package/node_modules/@openclaw/fs-safe/dist/archive-parser-errors.d.ts +0 -1
  22. package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
  23. package/node_modules/@openclaw/fs-safe/dist/archive-plan.d.ts +72 -2
  24. package/node_modules/@openclaw/fs-safe/dist/archive-plan.js +86 -22
  25. package/node_modules/@openclaw/fs-safe/dist/archive-read.d.ts +0 -1
  26. package/node_modules/@openclaw/fs-safe/dist/archive-read.js +10 -11
  27. package/node_modules/@openclaw/fs-safe/dist/archive-staging.d.ts +0 -1
  28. package/node_modules/@openclaw/fs-safe/dist/archive-tar-stream.d.ts +3 -1
  29. package/node_modules/@openclaw/fs-safe/dist/archive-tar-stream.js +56 -37
  30. package/node_modules/@openclaw/fs-safe/dist/archive-tar-wasm.d.ts +17 -6
  31. package/node_modules/@openclaw/fs-safe/dist/archive-tar-wasm.js +134 -34
  32. package/node_modules/@openclaw/fs-safe/dist/archive-zip-admission.d.ts +0 -1
  33. package/node_modules/@openclaw/fs-safe/dist/archive-zip-count.d.ts +0 -1
  34. package/node_modules/@openclaw/fs-safe/dist/archive-zip-count.js +21 -1
  35. package/node_modules/@openclaw/fs-safe/dist/archive-zip-directory.d.ts +5 -2
  36. package/node_modules/@openclaw/fs-safe/dist/archive-zip-directory.js +25 -1
  37. package/node_modules/@openclaw/fs-safe/dist/archive-zip-entry.d.ts +6 -3
  38. package/node_modules/@openclaw/fs-safe/dist/archive-zip-entry.js +24 -9
  39. package/node_modules/@openclaw/fs-safe/dist/archive-zip-integrity.d.ts +0 -1
  40. package/node_modules/@openclaw/fs-safe/dist/archive-zip-integrity.js +3 -4
  41. package/node_modules/@openclaw/fs-safe/dist/archive-zip-loader.d.ts +2 -1
  42. package/node_modules/@openclaw/fs-safe/dist/archive-zip-loader.js +114 -31
  43. package/node_modules/@openclaw/fs-safe/dist/archive-zip-manifest.d.ts +0 -1
  44. package/node_modules/@openclaw/fs-safe/dist/archive-zip-names.d.ts +1 -1
  45. package/node_modules/@openclaw/fs-safe/dist/archive-zip-names.js +13 -2
  46. package/node_modules/@openclaw/fs-safe/dist/archive-zip-preflight.d.ts +0 -1
  47. package/node_modules/@openclaw/fs-safe/dist/archive.d.ts +8 -6
  48. package/node_modules/@openclaw/fs-safe/dist/archive.js +214 -172
  49. package/node_modules/@openclaw/fs-safe/dist/async-lock.d.ts +0 -1
  50. package/node_modules/@openclaw/fs-safe/dist/atomic.d.ts +3 -2
  51. package/node_modules/@openclaw/fs-safe/dist/bounded-read-stream.d.ts +0 -2
  52. package/node_modules/@openclaw/fs-safe/dist/bounded-read-stream.js +0 -6
  53. package/node_modules/@openclaw/fs-safe/dist/bounded-read.d.ts +0 -1
  54. package/node_modules/@openclaw/fs-safe/dist/byte-budget.d.ts +0 -1
  55. package/node_modules/@openclaw/fs-safe/dist/byte-view.d.ts +2 -0
  56. package/node_modules/@openclaw/fs-safe/dist/byte-view.js +13 -0
  57. package/node_modules/@openclaw/fs-safe/dist/clone-metadata.d.ts +1 -1
  58. package/node_modules/@openclaw/fs-safe/dist/clone-metadata.js +6 -2
  59. package/node_modules/@openclaw/fs-safe/dist/config.d.ts +0 -1
  60. package/node_modules/@openclaw/fs-safe/dist/containment.d.ts +0 -1
  61. package/node_modules/@openclaw/fs-safe/dist/copy-file-input.d.ts +0 -1
  62. package/node_modules/@openclaw/fs-safe/dist/copy-policy.d.ts +0 -1
  63. package/node_modules/@openclaw/fs-safe/dist/copy-publication.d.ts +7 -2
  64. package/node_modules/@openclaw/fs-safe/dist/copy-publication.js +3 -0
  65. package/node_modules/@openclaw/fs-safe/dist/copy-tree-portable.d.ts +0 -1
  66. package/node_modules/@openclaw/fs-safe/dist/copy-tree-portable.js +51 -28
  67. package/node_modules/@openclaw/fs-safe/dist/copy.d.ts +0 -1
  68. package/node_modules/@openclaw/fs-safe/dist/copy.js +34 -16
  69. package/node_modules/@openclaw/fs-safe/dist/create-owned-file.d.ts +7 -0
  70. package/node_modules/@openclaw/fs-safe/dist/create-owned-file.js +16 -0
  71. package/node_modules/@openclaw/fs-safe/dist/create.d.ts +17 -0
  72. package/node_modules/@openclaw/fs-safe/dist/create.js +388 -0
  73. package/node_modules/@openclaw/fs-safe/dist/creation-boundary.d.ts +60 -0
  74. package/node_modules/@openclaw/fs-safe/dist/creation-boundary.js +371 -0
  75. package/node_modules/@openclaw/fs-safe/dist/deny-mutations.d.ts +2 -3
  76. package/node_modules/@openclaw/fs-safe/dist/deny-mutations.js +55 -35
  77. package/node_modules/@openclaw/fs-safe/dist/device-path.d.ts +0 -1
  78. package/node_modules/@openclaw/fs-safe/dist/directory-durability.d.ts +7 -8
  79. package/node_modules/@openclaw/fs-safe/dist/directory-durability.js +22 -80
  80. package/node_modules/@openclaw/fs-safe/dist/directory-entry-path.d.ts +0 -1
  81. package/node_modules/@openclaw/fs-safe/dist/directory-guard.d.ts +5 -7
  82. package/node_modules/@openclaw/fs-safe/dist/directory-guard.js +25 -56
  83. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.d.ts +2 -1
  84. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.js +20 -2
  85. package/node_modules/@openclaw/fs-safe/dist/directory-mode-owner.d.ts +0 -1
  86. package/node_modules/@openclaw/fs-safe/dist/directory-mode-owner.js +5 -5
  87. package/node_modules/@openclaw/fs-safe/dist/directory-receipt.d.ts +23 -0
  88. package/node_modules/@openclaw/fs-safe/dist/directory-receipt.js +123 -0
  89. package/node_modules/@openclaw/fs-safe/dist/durability.d.ts +2 -2
  90. package/node_modules/@openclaw/fs-safe/dist/effective-uid.d.ts +0 -1
  91. package/node_modules/@openclaw/fs-safe/dist/error-detail.d.ts +0 -1
  92. package/node_modules/@openclaw/fs-safe/dist/errors.d.ts +0 -1
  93. package/node_modules/@openclaw/fs-safe/dist/file-cleanup.d.ts +19 -0
  94. package/node_modules/@openclaw/fs-safe/dist/file-cleanup.js +81 -0
  95. package/node_modules/@openclaw/fs-safe/dist/file-contents.d.ts +5 -0
  96. package/node_modules/@openclaw/fs-safe/dist/file-contents.js +40 -0
  97. package/node_modules/@openclaw/fs-safe/dist/file-handle-transfer.d.ts +2 -1
  98. package/node_modules/@openclaw/fs-safe/dist/file-handle-transfer.js +57 -2
  99. package/node_modules/@openclaw/fs-safe/dist/file-hash.d.ts +0 -1
  100. package/node_modules/@openclaw/fs-safe/dist/file-hash.js +186 -70
  101. package/node_modules/@openclaw/fs-safe/dist/file-identity.d.ts +0 -1
  102. package/node_modules/@openclaw/fs-safe/dist/file-identity.js +18 -4
  103. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.d.ts +22 -0
  104. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.js +98 -0
  105. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.d.ts +17 -0
  106. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.js +54 -0
  107. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.d.ts +3 -0
  108. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +303 -0
  109. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.d.ts +17 -0
  110. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.js +66 -0
  111. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-held.d.ts +32 -0
  112. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-held.js +395 -0
  113. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-io.d.ts +43 -0
  114. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-io.js +209 -0
  115. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.d.ts +16 -0
  116. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.js +275 -0
  117. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-options.d.ts +19 -0
  118. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-options.js +58 -0
  119. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-registration.d.ts +1 -0
  120. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-registration.js +90 -0
  121. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root.d.ts +36 -0
  122. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root.js +288 -0
  123. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.d.ts +19 -0
  124. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +199 -0
  125. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.d.ts +4 -22
  126. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.js +207 -249
  127. package/node_modules/@openclaw/fs-safe/dist/file-lock.d.ts +0 -1
  128. package/node_modules/@openclaw/fs-safe/dist/file-observation.d.ts +1 -2
  129. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.d.ts +9 -8
  130. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.js +67 -36
  131. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.d.ts +0 -1
  132. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.js +5 -1
  133. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.d.ts +0 -1
  134. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.js +197 -227
  135. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts +0 -1
  136. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +22 -36
  137. package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts +0 -1
  138. package/node_modules/@openclaw/fs-safe/dist/file-store.js +54 -25
  139. package/node_modules/@openclaw/fs-safe/dist/file-sync.d.ts +0 -1
  140. package/node_modules/@openclaw/fs-safe/dist/filename.d.ts +0 -1
  141. package/node_modules/@openclaw/fs-safe/dist/filename.js +1 -7
  142. package/node_modules/@openclaw/fs-safe/dist/fs.d.ts +0 -1
  143. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.d.ts +2 -2
  144. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.js +27 -19
  145. package/node_modules/@openclaw/fs-safe/dist/guarded-mutation.d.ts +0 -7
  146. package/node_modules/@openclaw/fs-safe/dist/guarded-mutation.js +6 -11
  147. package/node_modules/@openclaw/fs-safe/dist/guest-dispatch-python.d.ts +0 -1
  148. package/node_modules/@openclaw/fs-safe/dist/guest-dispatch-python.js +41 -90
  149. package/node_modules/@openclaw/fs-safe/dist/guest-native-python.d.ts +0 -1
  150. package/node_modules/@openclaw/fs-safe/dist/guest.d.ts +0 -1
  151. package/node_modules/@openclaw/fs-safe/dist/home-dir.d.ts +0 -1
  152. package/node_modules/@openclaw/fs-safe/dist/index.d.ts +9 -7
  153. package/node_modules/@openclaw/fs-safe/dist/install-path.d.ts +0 -1
  154. package/node_modules/@openclaw/fs-safe/dist/install-path.js +2 -5
  155. package/node_modules/@openclaw/fs-safe/dist/json-document-store.d.ts +0 -1
  156. package/node_modules/@openclaw/fs-safe/dist/json-document-store.js +22 -15
  157. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-directory.d.ts +13 -1
  158. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-directory.js +134 -0
  159. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-ownership.d.ts +0 -2
  160. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-ownership.js +43 -72
  161. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-read.d.ts +0 -1
  162. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-read.js +13 -9
  163. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue.d.ts +0 -1
  164. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue.js +18 -141
  165. package/node_modules/@openclaw/fs-safe/dist/json-store.d.ts +0 -1
  166. package/node_modules/@openclaw/fs-safe/dist/json-store.js +1 -2
  167. package/node_modules/@openclaw/fs-safe/dist/json-stringify.d.ts +0 -1
  168. package/node_modules/@openclaw/fs-safe/dist/json.d.ts +0 -1
  169. package/node_modules/@openclaw/fs-safe/dist/json.js +39 -92
  170. package/node_modules/@openclaw/fs-safe/dist/local-file-access.d.ts +0 -1
  171. package/node_modules/@openclaw/fs-safe/dist/local-file-access.js +3 -10
  172. package/node_modules/@openclaw/fs-safe/dist/local-file-descriptor.d.ts +0 -1
  173. package/node_modules/@openclaw/fs-safe/dist/local-roots.d.ts +0 -1
  174. package/node_modules/@openclaw/fs-safe/dist/local-roots.js +19 -21
  175. package/node_modules/@openclaw/fs-safe/dist/lock-config.d.ts +0 -1
  176. package/node_modules/@openclaw/fs-safe/dist/move-path-cleanup.d.ts +5 -20
  177. package/node_modules/@openclaw/fs-safe/dist/move-path-cleanup.js +57 -21
  178. package/node_modules/@openclaw/fs-safe/dist/move-path-stage.d.ts +0 -1
  179. package/node_modules/@openclaw/fs-safe/dist/move-path.d.ts +0 -1
  180. package/node_modules/@openclaw/fs-safe/dist/move-path.js +64 -42
  181. package/node_modules/@openclaw/fs-safe/dist/mutation-authority.d.ts +0 -1
  182. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +19 -2
  183. package/node_modules/@openclaw/fs-safe/dist/native-config.d.ts +0 -1
  184. package/node_modules/@openclaw/fs-safe/dist/native-directory-observation.d.ts +0 -1
  185. package/node_modules/@openclaw/fs-safe/dist/native-fallback-warning.d.ts +3 -0
  186. package/node_modules/@openclaw/fs-safe/dist/native-fallback-warning.js +11 -0
  187. package/node_modules/@openclaw/fs-safe/dist/native-operations.d.ts +1 -7
  188. package/node_modules/@openclaw/fs-safe/dist/native-operations.js +2 -31
  189. package/node_modules/@openclaw/fs-safe/dist/native-parent-admission.d.ts +5 -3
  190. package/node_modules/@openclaw/fs-safe/dist/native-parent-admission.js +27 -7
  191. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.d.ts +2 -3
  192. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.js +174 -29
  193. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.d.ts +1 -2
  194. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +224 -187
  195. package/node_modules/@openclaw/fs-safe/dist/native-policy-directory-observation.d.ts +11 -0
  196. package/node_modules/@openclaw/fs-safe/dist/native-policy-directory-observation.js +61 -0
  197. package/node_modules/@openclaw/fs-safe/dist/native-policy-parent-windows.d.ts +13 -0
  198. package/node_modules/@openclaw/fs-safe/dist/native-policy-parent-windows.js +209 -0
  199. package/node_modules/@openclaw/fs-safe/dist/native-rename-outcome.d.ts +3 -0
  200. package/node_modules/@openclaw/fs-safe/dist/native-rename-outcome.js +8 -0
  201. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +20 -6
  202. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +149 -106
  203. package/node_modules/@openclaw/fs-safe/dist/native.d.ts +0 -1
  204. package/node_modules/@openclaw/fs-safe/dist/native.js +2 -2
  205. package/node_modules/@openclaw/fs-safe/dist/opened-file-failure.d.ts +0 -1
  206. package/node_modules/@openclaw/fs-safe/dist/opened-realpath.d.ts +0 -1
  207. package/node_modules/@openclaw/fs-safe/dist/opened-realpath.js +11 -2
  208. package/node_modules/@openclaw/fs-safe/dist/output.d.ts +0 -1
  209. package/node_modules/@openclaw/fs-safe/dist/output.js +12 -8
  210. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.d.ts +0 -1
  211. package/node_modules/@openclaw/fs-safe/dist/owner-dacl.d.ts +0 -1
  212. package/node_modules/@openclaw/fs-safe/dist/owner-dacl.js +10 -4
  213. package/node_modules/@openclaw/fs-safe/dist/path-case.d.ts +0 -1
  214. package/node_modules/@openclaw/fs-safe/dist/path-policy.d.ts +0 -1
  215. package/node_modules/@openclaw/fs-safe/dist/path-prefix.d.ts +0 -1
  216. package/node_modules/@openclaw/fs-safe/dist/path-prefix.js +30 -8
  217. package/node_modules/@openclaw/fs-safe/dist/path-scope-lexical.d.ts +0 -1
  218. package/node_modules/@openclaw/fs-safe/dist/path-segment-route.d.ts +0 -1
  219. package/node_modules/@openclaw/fs-safe/dist/path-suffix-aliases.d.ts +2 -1
  220. package/node_modules/@openclaw/fs-safe/dist/path-suffix-aliases.js +25 -17
  221. package/node_modules/@openclaw/fs-safe/dist/path.d.ts +0 -1
  222. package/node_modules/@openclaw/fs-safe/dist/path.js +2 -1
  223. package/node_modules/@openclaw/fs-safe/dist/permission-exec.d.ts +2 -1
  224. package/node_modules/@openclaw/fs-safe/dist/permission-exec.js +144 -21
  225. package/node_modules/@openclaw/fs-safe/dist/permissions-public.d.ts +0 -1
  226. package/node_modules/@openclaw/fs-safe/dist/permissions-windows.d.ts +2 -10
  227. package/node_modules/@openclaw/fs-safe/dist/permissions-windows.js +11 -31
  228. package/node_modules/@openclaw/fs-safe/dist/permissions.d.ts +0 -1
  229. package/node_modules/@openclaw/fs-safe/dist/permissions.js +11 -33
  230. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-admission.d.ts +1 -2
  231. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-admission.js +23 -29
  232. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-observation.d.ts +7 -3
  233. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-observation.js +81 -18
  234. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-shared-route.d.ts +1 -1
  235. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-shared-route.js +1 -1
  236. package/node_modules/@openclaw/fs-safe/dist/pinned-open.d.ts +1 -1
  237. package/node_modules/@openclaw/fs-safe/dist/pinned-open.js +7 -2
  238. package/node_modules/@openclaw/fs-safe/dist/pinned-operation.d.ts +1 -2
  239. package/node_modules/@openclaw/fs-safe/dist/pinned-operation.js +3 -16
  240. package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.d.ts +3 -0
  241. package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.js +35 -0
  242. package/node_modules/@openclaw/fs-safe/dist/pinned-write-mode.d.ts +4 -0
  243. package/node_modules/@openclaw/fs-safe/dist/pinned-write-mode.js +31 -0
  244. package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.d.ts +5 -0
  245. package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.js +185 -0
  246. package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.d.ts +14 -21
  247. package/node_modules/@openclaw/fs-safe/dist/pinned-write.d.ts +0 -2
  248. package/node_modules/@openclaw/fs-safe/dist/pinned-write.js +43 -151
  249. package/node_modules/@openclaw/fs-safe/dist/positional-read.d.ts +0 -1
  250. package/node_modules/@openclaw/fs-safe/dist/private-directory.d.ts +0 -1
  251. package/node_modules/@openclaw/fs-safe/dist/private-directory.js +18 -4
  252. package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff-sync.d.ts +3 -0
  253. package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff-sync.js +72 -0
  254. package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff.d.ts +42 -5
  255. package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff.js +166 -80
  256. package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.d.ts +0 -1
  257. package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +56 -128
  258. package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.d.ts +3 -3
  259. package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.js +16 -7
  260. package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.d.ts +0 -1
  261. package/node_modules/@openclaw/fs-safe/dist/publish-file.d.ts +2 -4
  262. package/node_modules/@openclaw/fs-safe/dist/publish-file.js +59 -100
  263. package/node_modules/@openclaw/fs-safe/dist/read-open-flags.d.ts +0 -1
  264. package/node_modules/@openclaw/fs-safe/dist/read-opened-file.d.ts +0 -1
  265. package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts +0 -1
  266. package/node_modules/@openclaw/fs-safe/dist/recursive-mkdir-path.d.ts +0 -1
  267. package/node_modules/@openclaw/fs-safe/dist/regular-file.d.ts +0 -1
  268. package/node_modules/@openclaw/fs-safe/dist/regular-file.js +108 -193
  269. package/node_modules/@openclaw/fs-safe/dist/replace-directory.d.ts +0 -1
  270. package/node_modules/@openclaw/fs-safe/dist/replace-directory.js +257 -20
  271. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.d.ts +0 -1
  272. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.js +90 -85
  273. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-source.d.ts +0 -1
  274. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-source.js +27 -33
  275. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +0 -1
  276. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +16 -17
  277. package/node_modules/@openclaw/fs-safe/dist/replace-file-mode.d.ts +0 -1
  278. package/node_modules/@openclaw/fs-safe/dist/replace-file-rename-policy.d.ts +1 -3
  279. package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.d.ts +17 -22
  280. package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.js +110 -145
  281. package/node_modules/@openclaw/fs-safe/dist/replace-file.d.ts +3 -4
  282. package/node_modules/@openclaw/fs-safe/dist/replace-file.js +16 -20
  283. package/node_modules/@openclaw/fs-safe/dist/retained-directory-replacement.d.ts +25 -0
  284. package/node_modules/@openclaw/fs-safe/dist/retained-directory-replacement.js +193 -0
  285. package/node_modules/@openclaw/fs-safe/dist/root-boundary.d.ts +1 -1
  286. package/node_modules/@openclaw/fs-safe/dist/root-boundary.js +4 -0
  287. package/node_modules/@openclaw/fs-safe/dist/root-context.d.ts +0 -9
  288. package/node_modules/@openclaw/fs-safe/dist/root-context.js +3 -10
  289. package/node_modules/@openclaw/fs-safe/dist/root-create-input.d.ts +9 -3
  290. package/node_modules/@openclaw/fs-safe/dist/root-create-input.js +17 -4
  291. package/node_modules/@openclaw/fs-safe/dist/root-directory-creation.d.ts +4 -5
  292. package/node_modules/@openclaw/fs-safe/dist/root-directory-creation.js +20 -7
  293. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +1 -1
  294. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +24 -10
  295. package/node_modules/@openclaw/fs-safe/dist/root-directory.d.ts +0 -1
  296. package/node_modules/@openclaw/fs-safe/dist/root-entries.d.ts +0 -1
  297. package/node_modules/@openclaw/fs-safe/dist/root-entries.js +2 -2
  298. package/node_modules/@openclaw/fs-safe/dist/root-errors.d.ts +4 -1
  299. package/node_modules/@openclaw/fs-safe/dist/root-errors.js +5 -3
  300. package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.d.ts +1 -2
  301. package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.js +5 -2
  302. package/node_modules/@openclaw/fs-safe/dist/root-file.d.ts +0 -1
  303. package/node_modules/@openclaw/fs-safe/dist/root-file.js +3 -2
  304. package/node_modules/@openclaw/fs-safe/dist/root-impl.d.ts +2 -15
  305. package/node_modules/@openclaw/fs-safe/dist/root-impl.js +232 -148
  306. package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.d.ts +2 -1
  307. package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.js +28 -25
  308. package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.d.ts +0 -1
  309. package/node_modules/@openclaw/fs-safe/dist/root-observed-path.d.ts +0 -1
  310. package/node_modules/@openclaw/fs-safe/dist/root-observed-path.js +2 -4
  311. package/node_modules/@openclaw/fs-safe/dist/root-options.d.ts +13 -6
  312. package/node_modules/@openclaw/fs-safe/dist/root-path-errors.d.ts +1 -1
  313. package/node_modules/@openclaw/fs-safe/dist/root-path-errors.js +11 -2
  314. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +3 -1
  315. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +45 -50
  316. package/node_modules/@openclaw/fs-safe/dist/root-path-observation.d.ts +0 -1
  317. package/node_modules/@openclaw/fs-safe/dist/root-path-stat.d.ts +0 -1
  318. package/node_modules/@openclaw/fs-safe/dist/root-path-stat.js +61 -11
  319. package/node_modules/@openclaw/fs-safe/dist/root-path.d.ts +0 -1
  320. package/node_modules/@openclaw/fs-safe/dist/root-path.js +60 -200
  321. package/node_modules/@openclaw/fs-safe/dist/root-paths-lexical.d.ts +0 -1
  322. package/node_modules/@openclaw/fs-safe/dist/root-paths.d.ts +0 -1
  323. package/node_modules/@openclaw/fs-safe/dist/root-public-types.d.ts +11 -0
  324. package/node_modules/@openclaw/fs-safe/dist/root-read-admission.d.ts +0 -1
  325. package/node_modules/@openclaw/fs-safe/dist/root-read-admission.js +31 -39
  326. package/node_modules/@openclaw/fs-safe/dist/root-remove-identity.d.ts +0 -1
  327. package/node_modules/@openclaw/fs-safe/dist/root-remove-identity.js +2 -4
  328. package/node_modules/@openclaw/fs-safe/dist/root-remove-receipt.d.ts +0 -1
  329. package/node_modules/@openclaw/fs-safe/dist/root-remove.d.ts +1 -1
  330. package/node_modules/@openclaw/fs-safe/dist/root-remove.js +21 -5
  331. package/node_modules/@openclaw/fs-safe/dist/root-symlink-policy.d.ts +0 -1
  332. package/node_modules/@openclaw/fs-safe/dist/root-walk.d.ts +1 -2
  333. package/node_modules/@openclaw/fs-safe/dist/root-walk.js +17 -2
  334. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.d.ts +1 -4
  335. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +4 -22
  336. package/node_modules/@openclaw/fs-safe/dist/root-write-compatibility.d.ts +1 -3
  337. package/node_modules/@openclaw/fs-safe/dist/root-write-compatibility.js +17 -68
  338. package/node_modules/@openclaw/fs-safe/dist/root-write-complete-parent.d.ts +0 -1
  339. package/node_modules/@openclaw/fs-safe/dist/root-write-complete-parent.js +12 -27
  340. package/node_modules/@openclaw/fs-safe/dist/root-write-lock-binding.d.ts +14 -0
  341. package/node_modules/@openclaw/fs-safe/dist/root-write-lock-binding.js +162 -0
  342. package/node_modules/@openclaw/fs-safe/dist/root-write-mode.d.ts +0 -1
  343. package/node_modules/@openclaw/fs-safe/dist/root-write-publication.d.ts +0 -1
  344. package/node_modules/@openclaw/fs-safe/dist/root-write-publication.js +1 -1
  345. package/node_modules/@openclaw/fs-safe/dist/root-write-verification.d.ts +1 -2
  346. package/node_modules/@openclaw/fs-safe/dist/root-write-verification.js +29 -42
  347. package/node_modules/@openclaw/fs-safe/dist/root.d.ts +2 -7
  348. package/node_modules/@openclaw/fs-safe/dist/safe-path-segment.d.ts +1 -2
  349. package/node_modules/@openclaw/fs-safe/dist/safe-path-segment.js +2 -5
  350. package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts +0 -1
  351. package/node_modules/@openclaw/fs-safe/dist/secret-file.js +10 -42
  352. package/node_modules/@openclaw/fs-safe/dist/secret-read-async.d.ts +0 -1
  353. package/node_modules/@openclaw/fs-safe/dist/secret-read-async.js +6 -27
  354. package/node_modules/@openclaw/fs-safe/dist/secret-read-policy.d.ts +6 -3
  355. package/node_modules/@openclaw/fs-safe/dist/secret-read-policy.js +26 -2
  356. package/node_modules/@openclaw/fs-safe/dist/secret.d.ts +0 -1
  357. package/node_modules/@openclaw/fs-safe/dist/secure-file-windows.d.ts +3 -3
  358. package/node_modules/@openclaw/fs-safe/dist/secure-file-windows.js +38 -136
  359. package/node_modules/@openclaw/fs-safe/dist/secure-file.d.ts +0 -1
  360. package/node_modules/@openclaw/fs-safe/dist/secure-file.js +11 -11
  361. package/node_modules/@openclaw/fs-safe/dist/secure-temp-dir.d.ts +0 -1
  362. package/node_modules/@openclaw/fs-safe/dist/secure-temp-repair.d.ts +0 -1
  363. package/node_modules/@openclaw/fs-safe/dist/secure-temp-repair.js +5 -1
  364. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts +0 -1
  365. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +32 -39
  366. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts +0 -1
  367. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +23 -12
  368. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.d.ts +2 -29
  369. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.js +279 -216
  370. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-context.d.ts +18 -0
  371. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-context.js +60 -0
  372. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-parser.d.ts +42 -0
  373. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-parser.js +113 -0
  374. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission.d.ts +31 -0
  375. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission.js +1 -0
  376. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-handle.d.ts +3 -1
  377. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-handle.js +6 -0
  378. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.d.ts +4 -1
  379. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.js +23 -0
  380. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.d.ts +10 -6
  381. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.js +91 -33
  382. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-registration.d.ts +13 -0
  383. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-registration.js +47 -0
  384. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.d.ts +0 -1
  385. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.js +2 -1
  386. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.d.ts +38 -0
  387. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.js +228 -0
  388. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-target.d.ts +7 -0
  389. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-target.js +55 -0
  390. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-types.d.ts +22 -17
  391. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock.d.ts +0 -1
  392. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock.js +43 -28
  393. package/node_modules/@openclaw/fs-safe/dist/staged-directory.d.ts +7 -5
  394. package/node_modules/@openclaw/fs-safe/dist/staged-directory.js +43 -7
  395. package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.d.ts +16 -0
  396. package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.js +57 -0
  397. package/node_modules/@openclaw/fs-safe/dist/staged-file-types.d.ts +0 -1
  398. package/node_modules/@openclaw/fs-safe/dist/stat-observation.d.ts +0 -1
  399. package/node_modules/@openclaw/fs-safe/dist/store.d.ts +0 -1
  400. package/node_modules/@openclaw/fs-safe/dist/strict-file-identity.d.ts +1 -2
  401. package/node_modules/@openclaw/fs-safe/dist/strict-file-identity.js +9 -9
  402. package/node_modules/@openclaw/fs-safe/dist/string-coerce.d.ts +0 -1
  403. package/node_modules/@openclaw/fs-safe/dist/suppressed-error.d.ts +0 -1
  404. package/node_modules/@openclaw/fs-safe/dist/symlink-parents.d.ts +0 -1
  405. package/node_modules/@openclaw/fs-safe/dist/symlink-parents.js +2 -27
  406. package/node_modules/@openclaw/fs-safe/dist/temp-cleanup.d.ts +0 -1
  407. package/node_modules/@openclaw/fs-safe/dist/temp-target.d.ts +0 -1
  408. package/node_modules/@openclaw/fs-safe/dist/temp-target.js +7 -46
  409. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.d.ts +0 -8
  410. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.js +29 -11
  411. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.d.ts +16 -6
  412. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.js +71 -15
  413. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-descriptor.d.ts +1 -7
  414. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-descriptor.js +10 -31
  415. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.d.ts +1 -1
  416. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.js +49 -26
  417. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts +0 -1
  418. package/node_modules/@openclaw/fs-safe/dist/temp.d.ts +0 -1
  419. package/node_modules/@openclaw/fs-safe/dist/test-hooks.d.ts +0 -1
  420. package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +0 -1
  421. package/node_modules/@openclaw/fs-safe/dist/text-atomic.js +1 -1
  422. package/node_modules/@openclaw/fs-safe/dist/timing.d.ts +0 -1
  423. package/node_modules/@openclaw/fs-safe/dist/trash.d.ts +0 -1
  424. package/node_modules/@openclaw/fs-safe/dist/types.d.ts +0 -1
  425. package/node_modules/@openclaw/fs-safe/dist/unicode-path.d.ts +0 -1
  426. package/node_modules/@openclaw/fs-safe/dist/unicode-path.js +3 -0
  427. package/node_modules/@openclaw/fs-safe/dist/walk.d.ts +5 -2
  428. package/node_modules/@openclaw/fs-safe/dist/walk.js +23 -8
  429. package/node_modules/@openclaw/fs-safe/dist/windows-command.d.ts +0 -1
  430. package/node_modules/@openclaw/fs-safe/dist/windows-owner.d.ts +0 -1
  431. package/node_modules/@openclaw/fs-safe/dist/windows-owner.js +8 -4
  432. package/node_modules/@openclaw/fs-safe/dist/windows-path-alias.d.ts +1 -1
  433. package/node_modules/@openclaw/fs-safe/dist/windows-path-alias.js +12 -43
  434. package/node_modules/@openclaw/fs-safe/dist/windows-path-syntax.d.ts +5 -0
  435. package/node_modules/@openclaw/fs-safe/dist/windows-path-syntax.js +21 -0
  436. package/node_modules/@openclaw/fs-safe/dist/windows-security-bridge.cs +336 -0
  437. package/node_modules/@openclaw/fs-safe/dist/windows-security-bridge.ps1 +15 -0
  438. package/node_modules/@openclaw/fs-safe/dist/windows-security-command.d.ts +25 -0
  439. package/node_modules/@openclaw/fs-safe/dist/windows-security-command.js +363 -0
  440. package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.d.ts +5 -0
  441. package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.js +108 -0
  442. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.d.ts +7 -1
  443. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.js +23 -0
  444. package/node_modules/@openclaw/fs-safe/dist/write-open-flags.d.ts +0 -1
  445. package/node_modules/@openclaw/fs-safe/dist/write-open-flags.js +1 -8
  446. package/node_modules/@openclaw/fs-safe/dist/write-queue.d.ts +0 -1
  447. package/node_modules/@openclaw/fs-safe/dist/write-queue.js +1 -4
  448. package/node_modules/@openclaw/fs-safe/docs/advanced.md +75 -4
  449. package/node_modules/@openclaw/fs-safe/docs/archive.md +138 -48
  450. package/node_modules/@openclaw/fs-safe/docs/atomic.md +125 -10
  451. package/node_modules/@openclaw/fs-safe/docs/config.md +6 -2
  452. package/node_modules/@openclaw/fs-safe/docs/contributing.md +48 -4
  453. package/node_modules/@openclaw/fs-safe/docs/copy.md +39 -0
  454. package/node_modules/@openclaw/fs-safe/docs/creation.md +132 -0
  455. package/node_modules/@openclaw/fs-safe/docs/durability.md +59 -0
  456. package/node_modules/@openclaw/fs-safe/docs/file-contents.md +68 -0
  457. package/node_modules/@openclaw/fs-safe/docs/file-store.md +19 -0
  458. package/node_modules/@openclaw/fs-safe/docs/guest.md +1 -1
  459. package/node_modules/@openclaw/fs-safe/docs/install.md +31 -7
  460. package/node_modules/@openclaw/fs-safe/docs/json-store.md +5 -0
  461. package/node_modules/@openclaw/fs-safe/docs/json.md +5 -4
  462. package/node_modules/@openclaw/fs-safe/docs/local-roots.md +2 -0
  463. package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.5.md +15 -6
  464. package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.6.md +9 -4
  465. package/node_modules/@openclaw/fs-safe/docs/mutation-policy-proof.md +11 -7
  466. package/node_modules/@openclaw/fs-safe/docs/native-helper.md +32 -12
  467. package/node_modules/@openclaw/fs-safe/docs/native.md +55 -15
  468. package/node_modules/@openclaw/fs-safe/docs/output.md +6 -0
  469. package/node_modules/@openclaw/fs-safe/docs/path-prefix.md +10 -0
  470. package/node_modules/@openclaw/fs-safe/docs/path-suffix-aliases.md +51 -6
  471. package/node_modules/@openclaw/fs-safe/docs/path.md +4 -4
  472. package/node_modules/@openclaw/fs-safe/docs/permissions.md +56 -14
  473. package/node_modules/@openclaw/fs-safe/docs/public-api.md +8 -2
  474. package/node_modules/@openclaw/fs-safe/docs/quickstart.md +1 -1
  475. package/node_modules/@openclaw/fs-safe/docs/reading.md +2 -2
  476. package/node_modules/@openclaw/fs-safe/docs/regular-file.md +3 -0
  477. package/node_modules/@openclaw/fs-safe/docs/root.md +75 -3
  478. package/node_modules/@openclaw/fs-safe/docs/secret-file.md +19 -2
  479. package/node_modules/@openclaw/fs-safe/docs/secure-file.md +9 -4
  480. package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +127 -9
  481. package/node_modules/@openclaw/fs-safe/docs/staged-file.md +16 -6
  482. package/node_modules/@openclaw/fs-safe/docs/store.md +9 -1
  483. package/node_modules/@openclaw/fs-safe/docs/temp.md +32 -5
  484. package/node_modules/@openclaw/fs-safe/docs/types.md +18 -2
  485. package/node_modules/@openclaw/fs-safe/docs/walk.md +74 -1
  486. package/node_modules/@openclaw/fs-safe/docs/writing.md +105 -11
  487. package/node_modules/@openclaw/fs-safe/package.json +19 -17
  488. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  489. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  490. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  491. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  492. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  493. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  494. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  495. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  496. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  497. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  498. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  499. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  500. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  501. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  502. package/node_modules/zod/README.md +2 -2
  503. package/node_modules/zod/compile.cjs +19 -0
  504. package/node_modules/zod/index.cjs +19 -0
  505. package/node_modules/zod/locales/index.cjs +19 -0
  506. package/node_modules/zod/mini/index.cjs +19 -0
  507. package/node_modules/zod/package.json +8 -7
  508. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  509. package/node_modules/zod/src/v4/classic/external.ts +2 -0
  510. package/node_modules/zod/src/v4/classic/from-json-schema.ts +248 -25
  511. package/node_modules/zod/src/v4/classic/schemas.ts +243 -168
  512. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +60 -9
  513. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +6 -0
  514. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
  515. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +265 -0
  516. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +112 -6
  517. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +9 -0
  518. package/node_modules/zod/src/v4/classic/tests/error.test.ts +130 -1
  519. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +157 -0
  520. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  521. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +40 -2
  522. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +27 -7
  523. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +88 -56
  524. package/node_modules/zod/src/v4/classic/tests/number.test.ts +39 -0
  525. package/node_modules/zod/src/v4/classic/tests/object.test.ts +56 -0
  526. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +3 -2
  527. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
  528. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  529. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +46 -1
  530. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
  531. package/node_modules/zod/src/v4/classic/tests/string.test.ts +95 -1
  532. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +33 -1
  533. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +234 -38
  534. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +569 -0
  535. package/node_modules/zod/src/v4/core/api.ts +44 -28
  536. package/node_modules/zod/src/v4/core/checks.ts +62 -102
  537. package/node_modules/zod/src/v4/core/compile.ts +218 -93
  538. package/node_modules/zod/src/v4/core/core.ts +1 -3
  539. package/node_modules/zod/src/v4/core/doc.ts +6 -2
  540. package/node_modules/zod/src/v4/core/errors.ts +3 -6
  541. package/node_modules/zod/src/v4/core/json-schema-generator.ts +2 -2
  542. package/node_modules/zod/src/v4/core/json-schema-processors.ts +185 -81
  543. package/node_modules/zod/src/v4/core/memoizer.ts +75 -28
  544. package/node_modules/zod/src/v4/core/parse.ts +37 -16
  545. package/node_modules/zod/src/v4/core/regexes.ts +14 -4
  546. package/node_modules/zod/src/v4/core/schemas.ts +296 -132
  547. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  548. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +35 -0
  549. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  550. package/node_modules/zod/src/v4/core/tests/compile.test.ts +399 -2
  551. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  552. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  553. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  554. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +118 -16
  555. package/node_modules/zod/src/v4/core/to-json-schema.ts +9 -7
  556. package/node_modules/zod/src/v4/core/util.ts +218 -147
  557. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  558. package/node_modules/zod/src/v4/locales/ar.ts +2 -0
  559. package/node_modules/zod/src/v4/locales/az.ts +2 -0
  560. package/node_modules/zod/src/v4/locales/be.ts +2 -0
  561. package/node_modules/zod/src/v4/locales/bg.ts +2 -0
  562. package/node_modules/zod/src/v4/locales/bn.ts +2 -0
  563. package/node_modules/zod/src/v4/locales/ca.ts +2 -0
  564. package/node_modules/zod/src/v4/locales/ckb.ts +2 -0
  565. package/node_modules/zod/src/v4/locales/cs.ts +2 -0
  566. package/node_modules/zod/src/v4/locales/da.ts +2 -0
  567. package/node_modules/zod/src/v4/locales/de.ts +2 -0
  568. package/node_modules/zod/src/v4/locales/el.ts +2 -0
  569. package/node_modules/zod/src/v4/locales/en.ts +2 -0
  570. package/node_modules/zod/src/v4/locales/eo.ts +2 -0
  571. package/node_modules/zod/src/v4/locales/es.ts +2 -0
  572. package/node_modules/zod/src/v4/locales/fa.ts +2 -0
  573. package/node_modules/zod/src/v4/locales/fi.ts +2 -0
  574. package/node_modules/zod/src/v4/locales/fr-CA.ts +2 -0
  575. package/node_modules/zod/src/v4/locales/fr.ts +2 -0
  576. package/node_modules/zod/src/v4/locales/gu.ts +2 -0
  577. package/node_modules/zod/src/v4/locales/he.ts +2 -0
  578. package/node_modules/zod/src/v4/locales/hi.ts +2 -0
  579. package/node_modules/zod/src/v4/locales/hr.ts +2 -0
  580. package/node_modules/zod/src/v4/locales/hu.ts +2 -0
  581. package/node_modules/zod/src/v4/locales/hy.ts +2 -0
  582. package/node_modules/zod/src/v4/locales/id.ts +2 -0
  583. package/node_modules/zod/src/v4/locales/index.ts +1 -0
  584. package/node_modules/zod/src/v4/locales/is.ts +2 -0
  585. package/node_modules/zod/src/v4/locales/it.ts +2 -0
  586. package/node_modules/zod/src/v4/locales/ja.ts +2 -0
  587. package/node_modules/zod/src/v4/locales/ka.ts +2 -0
  588. package/node_modules/zod/src/v4/locales/km.ts +2 -0
  589. package/node_modules/zod/src/v4/locales/kn.ts +2 -0
  590. package/node_modules/zod/src/v4/locales/ko.ts +2 -0
  591. package/node_modules/zod/src/v4/locales/lt.ts +2 -0
  592. package/node_modules/zod/src/v4/locales/mk.ts +2 -0
  593. package/node_modules/zod/src/v4/locales/ms.ts +2 -0
  594. package/node_modules/zod/src/v4/locales/ne.ts +2 -0
  595. package/node_modules/zod/src/v4/locales/nl.ts +2 -0
  596. package/node_modules/zod/src/v4/locales/nn.ts +2 -0
  597. package/node_modules/zod/src/v4/locales/no.ts +2 -0
  598. package/node_modules/zod/src/v4/locales/ota.ts +2 -0
  599. package/node_modules/zod/src/v4/locales/pl.ts +2 -0
  600. package/node_modules/zod/src/v4/locales/ps.ts +2 -0
  601. package/node_modules/zod/src/v4/locales/pt-BR.ts +2 -0
  602. package/node_modules/zod/src/v4/locales/pt.ts +2 -0
  603. package/node_modules/zod/src/v4/locales/ro.ts +2 -0
  604. package/node_modules/zod/src/v4/locales/ru.ts +2 -0
  605. package/node_modules/zod/src/v4/locales/sk.ts +2 -0
  606. package/node_modules/zod/src/v4/locales/sl.ts +2 -0
  607. package/node_modules/zod/src/v4/locales/sv.ts +2 -0
  608. package/node_modules/zod/src/v4/locales/ta.ts +2 -0
  609. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  610. package/node_modules/zod/src/v4/locales/th.ts +2 -0
  611. package/node_modules/zod/src/v4/locales/tk.ts +2 -0
  612. package/node_modules/zod/src/v4/locales/tr.ts +2 -0
  613. package/node_modules/zod/src/v4/locales/uk.ts +2 -0
  614. package/node_modules/zod/src/v4/locales/ur.ts +2 -0
  615. package/node_modules/zod/src/v4/locales/uz.ts +2 -0
  616. package/node_modules/zod/src/v4/locales/vi.ts +2 -0
  617. package/node_modules/zod/src/v4/locales/yo.ts +2 -0
  618. package/node_modules/zod/src/v4/locales/zh-CN.ts +2 -0
  619. package/node_modules/zod/src/v4/locales/zh-TW.ts +2 -0
  620. package/node_modules/zod/src/v4/mini/external.ts +2 -0
  621. package/node_modules/zod/src/v4/mini/schemas.ts +32 -7
  622. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +1 -1
  623. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
  624. package/node_modules/zod/src/v4/mini/tests/index.test.ts +86 -0
  625. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
  626. package/node_modules/zod/src/v4/mini/tests/string.test.ts +23 -0
  627. package/node_modules/zod/v3/ZodError.cjs +19 -0
  628. package/node_modules/zod/v3/errors.cjs +19 -0
  629. package/node_modules/zod/v3/external.cjs +19 -0
  630. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  631. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  632. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  633. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  634. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  635. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  636. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  637. package/node_modules/zod/v3/index.cjs +19 -0
  638. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  639. package/node_modules/zod/v3/types.cjs +19 -0
  640. package/node_modules/zod/v4/classic/checks.cjs +19 -0
  641. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  642. package/node_modules/zod/v4/classic/compat.cjs +19 -0
  643. package/node_modules/zod/v4/classic/deep-partial.cjs +19 -0
  644. package/node_modules/zod/v4/classic/errors.cjs +19 -0
  645. package/node_modules/zod/v4/classic/external.cjs +22 -1
  646. package/node_modules/zod/v4/classic/external.d.cts +1 -1
  647. package/node_modules/zod/v4/classic/external.d.ts +1 -1
  648. package/node_modules/zod/v4/classic/external.js +1 -1
  649. package/node_modules/zod/v4/classic/from-json-schema.cjs +264 -24
  650. package/node_modules/zod/v4/classic/from-json-schema.js +245 -24
  651. package/node_modules/zod/v4/classic/in-out.cjs +19 -0
  652. package/node_modules/zod/v4/classic/index.cjs +19 -0
  653. package/node_modules/zod/v4/classic/iso.cjs +19 -0
  654. package/node_modules/zod/v4/classic/parse.cjs +19 -0
  655. package/node_modules/zod/v4/classic/schemas.cjs +100 -35
  656. package/node_modules/zod/v4/classic/schemas.d.cts +15 -1
  657. package/node_modules/zod/v4/classic/schemas.d.ts +15 -1
  658. package/node_modules/zod/v4/classic/schemas.js +77 -33
  659. package/node_modules/zod/v4/core/api.cjs +45 -22
  660. package/node_modules/zod/v4/core/api.d.cts +12 -6
  661. package/node_modules/zod/v4/core/api.d.ts +12 -6
  662. package/node_modules/zod/v4/core/api.js +25 -22
  663. package/node_modules/zod/v4/core/checks.cjs +51 -97
  664. package/node_modules/zod/v4/core/checks.d.cts +17 -1
  665. package/node_modules/zod/v4/core/checks.d.ts +17 -1
  666. package/node_modules/zod/v4/core/checks.js +31 -96
  667. package/node_modules/zod/v4/core/compile.cjs +173 -78
  668. package/node_modules/zod/v4/core/compile.d.cts +18 -4
  669. package/node_modules/zod/v4/core/compile.d.ts +18 -4
  670. package/node_modules/zod/v4/core/compile.js +154 -79
  671. package/node_modules/zod/v4/core/core.cjs +20 -1
  672. package/node_modules/zod/v4/core/core.js +1 -1
  673. package/node_modules/zod/v4/core/doc.cjs +26 -2
  674. package/node_modules/zod/v4/core/doc.js +7 -2
  675. package/node_modules/zod/v4/core/errors.cjs +21 -5
  676. package/node_modules/zod/v4/core/errors.js +2 -5
  677. package/node_modules/zod/v4/core/index.cjs +19 -0
  678. package/node_modules/zod/v4/core/json-schema-generator.cjs +20 -1
  679. package/node_modules/zod/v4/core/json-schema-generator.js +2 -2
  680. package/node_modules/zod/v4/core/json-schema-processors.cjs +188 -72
  681. package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
  682. package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
  683. package/node_modules/zod/v4/core/json-schema-processors.js +170 -74
  684. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  685. package/node_modules/zod/v4/core/memoizer.cjs +111 -23
  686. package/node_modules/zod/v4/core/memoizer.js +69 -23
  687. package/node_modules/zod/v4/core/parse.cjs +56 -16
  688. package/node_modules/zod/v4/core/parse.js +37 -16
  689. package/node_modules/zod/v4/core/regexes.cjs +31 -6
  690. package/node_modules/zod/v4/core/regexes.d.cts +3 -0
  691. package/node_modules/zod/v4/core/regexes.d.ts +3 -0
  692. package/node_modules/zod/v4/core/regexes.js +10 -4
  693. package/node_modules/zod/v4/core/registries.cjs +19 -0
  694. package/node_modules/zod/v4/core/schemas.cjs +302 -114
  695. package/node_modules/zod/v4/core/schemas.d.cts +28 -8
  696. package/node_modules/zod/v4/core/schemas.d.ts +28 -8
  697. package/node_modules/zod/v4/core/schemas.js +279 -113
  698. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  699. package/node_modules/zod/v4/core/to-json-schema.cjs +28 -7
  700. package/node_modules/zod/v4/core/to-json-schema.d.cts +4 -3
  701. package/node_modules/zod/v4/core/to-json-schema.d.ts +4 -3
  702. package/node_modules/zod/v4/core/to-json-schema.js +7 -6
  703. package/node_modules/zod/v4/core/util.cjs +177 -143
  704. package/node_modules/zod/v4/core/util.d.cts +25 -4
  705. package/node_modules/zod/v4/core/util.d.ts +25 -4
  706. package/node_modules/zod/v4/core/util.js +156 -143
  707. package/node_modules/zod/v4/core/versions.cjs +21 -2
  708. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  709. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  710. package/node_modules/zod/v4/core/versions.js +2 -2
  711. package/node_modules/zod/v4/core/visit.cjs +19 -0
  712. package/node_modules/zod/v4/index.cjs +19 -0
  713. package/node_modules/zod/v4/locales/ar.cjs +2 -0
  714. package/node_modules/zod/v4/locales/ar.js +2 -0
  715. package/node_modules/zod/v4/locales/az.cjs +2 -0
  716. package/node_modules/zod/v4/locales/az.js +2 -0
  717. package/node_modules/zod/v4/locales/be.cjs +2 -0
  718. package/node_modules/zod/v4/locales/be.js +2 -0
  719. package/node_modules/zod/v4/locales/bg.cjs +2 -0
  720. package/node_modules/zod/v4/locales/bg.js +2 -0
  721. package/node_modules/zod/v4/locales/bn.cjs +2 -0
  722. package/node_modules/zod/v4/locales/bn.js +2 -0
  723. package/node_modules/zod/v4/locales/ca.cjs +2 -0
  724. package/node_modules/zod/v4/locales/ca.js +2 -0
  725. package/node_modules/zod/v4/locales/ckb.cjs +2 -0
  726. package/node_modules/zod/v4/locales/ckb.js +2 -0
  727. package/node_modules/zod/v4/locales/cs.cjs +2 -0
  728. package/node_modules/zod/v4/locales/cs.js +2 -0
  729. package/node_modules/zod/v4/locales/da.cjs +2 -0
  730. package/node_modules/zod/v4/locales/da.js +2 -0
  731. package/node_modules/zod/v4/locales/de.cjs +2 -0
  732. package/node_modules/zod/v4/locales/de.js +2 -0
  733. package/node_modules/zod/v4/locales/el.cjs +2 -0
  734. package/node_modules/zod/v4/locales/el.js +2 -0
  735. package/node_modules/zod/v4/locales/en.cjs +2 -0
  736. package/node_modules/zod/v4/locales/en.js +2 -0
  737. package/node_modules/zod/v4/locales/eo.cjs +2 -0
  738. package/node_modules/zod/v4/locales/eo.js +2 -0
  739. package/node_modules/zod/v4/locales/es.cjs +2 -0
  740. package/node_modules/zod/v4/locales/es.js +2 -0
  741. package/node_modules/zod/v4/locales/fa.cjs +2 -0
  742. package/node_modules/zod/v4/locales/fa.js +2 -0
  743. package/node_modules/zod/v4/locales/fi.cjs +2 -0
  744. package/node_modules/zod/v4/locales/fi.js +2 -0
  745. package/node_modules/zod/v4/locales/fr-CA.cjs +2 -0
  746. package/node_modules/zod/v4/locales/fr-CA.js +2 -0
  747. package/node_modules/zod/v4/locales/fr.cjs +2 -0
  748. package/node_modules/zod/v4/locales/fr.js +2 -0
  749. package/node_modules/zod/v4/locales/gu.cjs +2 -0
  750. package/node_modules/zod/v4/locales/gu.js +2 -0
  751. package/node_modules/zod/v4/locales/he.cjs +2 -0
  752. package/node_modules/zod/v4/locales/he.js +2 -0
  753. package/node_modules/zod/v4/locales/hi.cjs +2 -0
  754. package/node_modules/zod/v4/locales/hi.js +2 -0
  755. package/node_modules/zod/v4/locales/hr.cjs +2 -0
  756. package/node_modules/zod/v4/locales/hr.js +2 -0
  757. package/node_modules/zod/v4/locales/hu.cjs +2 -0
  758. package/node_modules/zod/v4/locales/hu.js +2 -0
  759. package/node_modules/zod/v4/locales/hy.cjs +2 -0
  760. package/node_modules/zod/v4/locales/hy.js +2 -0
  761. package/node_modules/zod/v4/locales/id.cjs +2 -0
  762. package/node_modules/zod/v4/locales/id.js +2 -0
  763. package/node_modules/zod/v4/locales/index.cjs +22 -1
  764. package/node_modules/zod/v4/locales/index.d.cts +1 -0
  765. package/node_modules/zod/v4/locales/index.d.ts +1 -0
  766. package/node_modules/zod/v4/locales/index.js +1 -0
  767. package/node_modules/zod/v4/locales/is.cjs +2 -0
  768. package/node_modules/zod/v4/locales/is.js +2 -0
  769. package/node_modules/zod/v4/locales/it.cjs +2 -0
  770. package/node_modules/zod/v4/locales/it.js +2 -0
  771. package/node_modules/zod/v4/locales/ja.cjs +2 -0
  772. package/node_modules/zod/v4/locales/ja.js +2 -0
  773. package/node_modules/zod/v4/locales/ka.cjs +2 -0
  774. package/node_modules/zod/v4/locales/ka.js +2 -0
  775. package/node_modules/zod/v4/locales/km.cjs +2 -0
  776. package/node_modules/zod/v4/locales/km.js +2 -0
  777. package/node_modules/zod/v4/locales/kn.cjs +2 -0
  778. package/node_modules/zod/v4/locales/kn.js +2 -0
  779. package/node_modules/zod/v4/locales/ko.cjs +2 -0
  780. package/node_modules/zod/v4/locales/ko.js +2 -0
  781. package/node_modules/zod/v4/locales/lt.cjs +2 -0
  782. package/node_modules/zod/v4/locales/lt.js +2 -0
  783. package/node_modules/zod/v4/locales/mk.cjs +2 -0
  784. package/node_modules/zod/v4/locales/mk.js +2 -0
  785. package/node_modules/zod/v4/locales/ms.cjs +2 -0
  786. package/node_modules/zod/v4/locales/ms.js +2 -0
  787. package/node_modules/zod/v4/locales/ne.cjs +2 -0
  788. package/node_modules/zod/v4/locales/ne.js +2 -0
  789. package/node_modules/zod/v4/locales/nl.cjs +2 -0
  790. package/node_modules/zod/v4/locales/nl.js +2 -0
  791. package/node_modules/zod/v4/locales/nn.cjs +2 -0
  792. package/node_modules/zod/v4/locales/nn.js +2 -0
  793. package/node_modules/zod/v4/locales/no.cjs +2 -0
  794. package/node_modules/zod/v4/locales/no.js +2 -0
  795. package/node_modules/zod/v4/locales/ota.cjs +2 -0
  796. package/node_modules/zod/v4/locales/ota.js +2 -0
  797. package/node_modules/zod/v4/locales/pl.cjs +2 -0
  798. package/node_modules/zod/v4/locales/pl.js +2 -0
  799. package/node_modules/zod/v4/locales/ps.cjs +2 -0
  800. package/node_modules/zod/v4/locales/ps.js +2 -0
  801. package/node_modules/zod/v4/locales/pt-BR.cjs +2 -0
  802. package/node_modules/zod/v4/locales/pt-BR.js +2 -0
  803. package/node_modules/zod/v4/locales/pt.cjs +2 -0
  804. package/node_modules/zod/v4/locales/pt.js +2 -0
  805. package/node_modules/zod/v4/locales/ro.cjs +2 -0
  806. package/node_modules/zod/v4/locales/ro.js +2 -0
  807. package/node_modules/zod/v4/locales/ru.cjs +2 -0
  808. package/node_modules/zod/v4/locales/ru.js +2 -0
  809. package/node_modules/zod/v4/locales/sk.cjs +2 -0
  810. package/node_modules/zod/v4/locales/sk.js +2 -0
  811. package/node_modules/zod/v4/locales/sl.cjs +2 -0
  812. package/node_modules/zod/v4/locales/sl.js +2 -0
  813. package/node_modules/zod/v4/locales/sv.cjs +2 -0
  814. package/node_modules/zod/v4/locales/sv.js +2 -0
  815. package/node_modules/zod/v4/locales/ta.cjs +2 -0
  816. package/node_modules/zod/v4/locales/ta.js +2 -0
  817. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  818. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  819. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  820. package/node_modules/zod/v4/locales/tg.js +117 -0
  821. package/node_modules/zod/v4/locales/th.cjs +2 -0
  822. package/node_modules/zod/v4/locales/th.js +2 -0
  823. package/node_modules/zod/v4/locales/tk.cjs +2 -0
  824. package/node_modules/zod/v4/locales/tk.js +2 -0
  825. package/node_modules/zod/v4/locales/tr.cjs +2 -0
  826. package/node_modules/zod/v4/locales/tr.js +2 -0
  827. package/node_modules/zod/v4/locales/uk.cjs +2 -0
  828. package/node_modules/zod/v4/locales/uk.js +2 -0
  829. package/node_modules/zod/v4/locales/ur.cjs +2 -0
  830. package/node_modules/zod/v4/locales/ur.js +2 -0
  831. package/node_modules/zod/v4/locales/uz.cjs +2 -0
  832. package/node_modules/zod/v4/locales/uz.js +2 -0
  833. package/node_modules/zod/v4/locales/vi.cjs +2 -0
  834. package/node_modules/zod/v4/locales/vi.js +2 -0
  835. package/node_modules/zod/v4/locales/yo.cjs +2 -0
  836. package/node_modules/zod/v4/locales/yo.js +2 -0
  837. package/node_modules/zod/v4/locales/zh-CN.cjs +2 -0
  838. package/node_modules/zod/v4/locales/zh-CN.js +2 -0
  839. package/node_modules/zod/v4/locales/zh-TW.cjs +2 -0
  840. package/node_modules/zod/v4/locales/zh-TW.js +2 -0
  841. package/node_modules/zod/v4/mini/checks.cjs +19 -0
  842. package/node_modules/zod/v4/mini/coerce.cjs +19 -0
  843. package/node_modules/zod/v4/mini/deep-partial.cjs +19 -0
  844. package/node_modules/zod/v4/mini/external.cjs +22 -1
  845. package/node_modules/zod/v4/mini/external.d.cts +1 -1
  846. package/node_modules/zod/v4/mini/external.d.ts +1 -1
  847. package/node_modules/zod/v4/mini/external.js +1 -1
  848. package/node_modules/zod/v4/mini/in-out.cjs +19 -0
  849. package/node_modules/zod/v4/mini/index.cjs +19 -0
  850. package/node_modules/zod/v4/mini/iso.cjs +19 -0
  851. package/node_modules/zod/v4/mini/parse.cjs +19 -0
  852. package/node_modules/zod/v4/mini/schemas.cjs +44 -8
  853. package/node_modules/zod/v4/mini/schemas.d.cts +6 -1
  854. package/node_modules/zod/v4/mini/schemas.d.ts +6 -1
  855. package/node_modules/zod/v4/mini/schemas.js +21 -6
  856. package/node_modules/zod/v4-mini/index.cjs +19 -0
  857. package/package.json +6 -6
  858. package/node_modules/@openclaw/fs-safe/dist/absolute-path.d.ts.map +0 -1
  859. package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts.map +0 -1
  860. package/node_modules/@openclaw/fs-safe/dist/archive-crc32.d.ts.map +0 -1
  861. package/node_modules/@openclaw/fs-safe/dist/archive-deadline.d.ts.map +0 -1
  862. package/node_modules/@openclaw/fs-safe/dist/archive-durability.d.ts.map +0 -1
  863. package/node_modules/@openclaw/fs-safe/dist/archive-entry.d.ts.map +0 -1
  864. package/node_modules/@openclaw/fs-safe/dist/archive-errors.d.ts.map +0 -1
  865. package/node_modules/@openclaw/fs-safe/dist/archive-gzip-tail.d.ts.map +0 -1
  866. package/node_modules/@openclaw/fs-safe/dist/archive-input.d.ts.map +0 -1
  867. package/node_modules/@openclaw/fs-safe/dist/archive-kind.d.ts.map +0 -1
  868. package/node_modules/@openclaw/fs-safe/dist/archive-limits.d.ts.map +0 -1
  869. package/node_modules/@openclaw/fs-safe/dist/archive-merge.d.ts.map +0 -1
  870. package/node_modules/@openclaw/fs-safe/dist/archive-native.d.ts +0 -21
  871. package/node_modules/@openclaw/fs-safe/dist/archive-native.d.ts.map +0 -1
  872. package/node_modules/@openclaw/fs-safe/dist/archive-native.js +0 -97
  873. package/node_modules/@openclaw/fs-safe/dist/archive-options.d.ts +0 -23
  874. package/node_modules/@openclaw/fs-safe/dist/archive-options.d.ts.map +0 -1
  875. package/node_modules/@openclaw/fs-safe/dist/archive-parser-errors.d.ts.map +0 -1
  876. package/node_modules/@openclaw/fs-safe/dist/archive-plan.d.ts.map +0 -1
  877. package/node_modules/@openclaw/fs-safe/dist/archive-policy.d.ts +0 -22
  878. package/node_modules/@openclaw/fs-safe/dist/archive-policy.d.ts.map +0 -1
  879. package/node_modules/@openclaw/fs-safe/dist/archive-policy.js +0 -38
  880. package/node_modules/@openclaw/fs-safe/dist/archive-read.d.ts.map +0 -1
  881. package/node_modules/@openclaw/fs-safe/dist/archive-staging.d.ts.map +0 -1
  882. package/node_modules/@openclaw/fs-safe/dist/archive-tar-inspect.d.ts +0 -7
  883. package/node_modules/@openclaw/fs-safe/dist/archive-tar-inspect.d.ts.map +0 -1
  884. package/node_modules/@openclaw/fs-safe/dist/archive-tar-inspect.js +0 -62
  885. package/node_modules/@openclaw/fs-safe/dist/archive-tar-stream.d.ts.map +0 -1
  886. package/node_modules/@openclaw/fs-safe/dist/archive-tar-wasm.d.ts.map +0 -1
  887. package/node_modules/@openclaw/fs-safe/dist/archive-tar.d.ts +0 -19
  888. package/node_modules/@openclaw/fs-safe/dist/archive-tar.d.ts.map +0 -1
  889. package/node_modules/@openclaw/fs-safe/dist/archive-tar.js +0 -21
  890. package/node_modules/@openclaw/fs-safe/dist/archive-zip-admission.d.ts.map +0 -1
  891. package/node_modules/@openclaw/fs-safe/dist/archive-zip-count.d.ts.map +0 -1
  892. package/node_modules/@openclaw/fs-safe/dist/archive-zip-directory.d.ts.map +0 -1
  893. package/node_modules/@openclaw/fs-safe/dist/archive-zip-entry.d.ts.map +0 -1
  894. package/node_modules/@openclaw/fs-safe/dist/archive-zip-integrity.d.ts.map +0 -1
  895. package/node_modules/@openclaw/fs-safe/dist/archive-zip-loader.d.ts.map +0 -1
  896. package/node_modules/@openclaw/fs-safe/dist/archive-zip-manifest.d.ts.map +0 -1
  897. package/node_modules/@openclaw/fs-safe/dist/archive-zip-names.d.ts.map +0 -1
  898. package/node_modules/@openclaw/fs-safe/dist/archive-zip-preflight.d.ts.map +0 -1
  899. package/node_modules/@openclaw/fs-safe/dist/archive.d.ts.map +0 -1
  900. package/node_modules/@openclaw/fs-safe/dist/async-lock.d.ts.map +0 -1
  901. package/node_modules/@openclaw/fs-safe/dist/atomic.d.ts.map +0 -1
  902. package/node_modules/@openclaw/fs-safe/dist/bounded-read-stream.d.ts.map +0 -1
  903. package/node_modules/@openclaw/fs-safe/dist/bounded-read.d.ts.map +0 -1
  904. package/node_modules/@openclaw/fs-safe/dist/byte-budget.d.ts.map +0 -1
  905. package/node_modules/@openclaw/fs-safe/dist/clone-metadata.d.ts.map +0 -1
  906. package/node_modules/@openclaw/fs-safe/dist/config.d.ts.map +0 -1
  907. package/node_modules/@openclaw/fs-safe/dist/containment.d.ts.map +0 -1
  908. package/node_modules/@openclaw/fs-safe/dist/copy-file-input.d.ts.map +0 -1
  909. package/node_modules/@openclaw/fs-safe/dist/copy-policy.d.ts.map +0 -1
  910. package/node_modules/@openclaw/fs-safe/dist/copy-publication.d.ts.map +0 -1
  911. package/node_modules/@openclaw/fs-safe/dist/copy-tree-portable.d.ts.map +0 -1
  912. package/node_modules/@openclaw/fs-safe/dist/copy.d.ts.map +0 -1
  913. package/node_modules/@openclaw/fs-safe/dist/darwin-acl.d.ts +0 -4
  914. package/node_modules/@openclaw/fs-safe/dist/darwin-acl.d.ts.map +0 -1
  915. package/node_modules/@openclaw/fs-safe/dist/darwin-acl.js +0 -24
  916. package/node_modules/@openclaw/fs-safe/dist/deny-mutations.d.ts.map +0 -1
  917. package/node_modules/@openclaw/fs-safe/dist/device-path.d.ts.map +0 -1
  918. package/node_modules/@openclaw/fs-safe/dist/directory-durability.d.ts.map +0 -1
  919. package/node_modules/@openclaw/fs-safe/dist/directory-entry-path.d.ts.map +0 -1
  920. package/node_modules/@openclaw/fs-safe/dist/directory-guard.d.ts.map +0 -1
  921. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.d.ts.map +0 -1
  922. package/node_modules/@openclaw/fs-safe/dist/directory-mode-owner.d.ts.map +0 -1
  923. package/node_modules/@openclaw/fs-safe/dist/durability.d.ts.map +0 -1
  924. package/node_modules/@openclaw/fs-safe/dist/effective-uid.d.ts.map +0 -1
  925. package/node_modules/@openclaw/fs-safe/dist/error-detail.d.ts.map +0 -1
  926. package/node_modules/@openclaw/fs-safe/dist/errors.d.ts.map +0 -1
  927. package/node_modules/@openclaw/fs-safe/dist/file-handle-transfer.d.ts.map +0 -1
  928. package/node_modules/@openclaw/fs-safe/dist/file-hash.d.ts.map +0 -1
  929. package/node_modules/@openclaw/fs-safe/dist/file-identity.d.ts.map +0 -1
  930. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.d.ts.map +0 -1
  931. package/node_modules/@openclaw/fs-safe/dist/file-lock.d.ts.map +0 -1
  932. package/node_modules/@openclaw/fs-safe/dist/file-observation.d.ts.map +0 -1
  933. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.d.ts.map +0 -1
  934. package/node_modules/@openclaw/fs-safe/dist/file-store-copy-source.d.ts +0 -5
  935. package/node_modules/@openclaw/fs-safe/dist/file-store-copy-source.d.ts.map +0 -1
  936. package/node_modules/@openclaw/fs-safe/dist/file-store-copy-source.js +0 -31
  937. package/node_modules/@openclaw/fs-safe/dist/file-store-limit.d.ts +0 -2
  938. package/node_modules/@openclaw/fs-safe/dist/file-store-limit.d.ts.map +0 -1
  939. package/node_modules/@openclaw/fs-safe/dist/file-store-limit.js +0 -8
  940. package/node_modules/@openclaw/fs-safe/dist/file-store-path.d.ts +0 -3
  941. package/node_modules/@openclaw/fs-safe/dist/file-store-path.d.ts.map +0 -1
  942. package/node_modules/@openclaw/fs-safe/dist/file-store-path.js +0 -30
  943. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.d.ts.map +0 -1
  944. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.d.ts.map +0 -1
  945. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts.map +0 -1
  946. package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts.map +0 -1
  947. package/node_modules/@openclaw/fs-safe/dist/file-sync.d.ts.map +0 -1
  948. package/node_modules/@openclaw/fs-safe/dist/filename.d.ts.map +0 -1
  949. package/node_modules/@openclaw/fs-safe/dist/fs.d.ts.map +0 -1
  950. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.d.ts.map +0 -1
  951. package/node_modules/@openclaw/fs-safe/dist/guarded-mutation.d.ts.map +0 -1
  952. package/node_modules/@openclaw/fs-safe/dist/guest-dispatch-python.d.ts.map +0 -1
  953. package/node_modules/@openclaw/fs-safe/dist/guest-native-python.d.ts.map +0 -1
  954. package/node_modules/@openclaw/fs-safe/dist/guest.d.ts.map +0 -1
  955. package/node_modules/@openclaw/fs-safe/dist/home-dir.d.ts.map +0 -1
  956. package/node_modules/@openclaw/fs-safe/dist/index.d.ts.map +0 -1
  957. package/node_modules/@openclaw/fs-safe/dist/install-path.d.ts.map +0 -1
  958. package/node_modules/@openclaw/fs-safe/dist/json-document-store.d.ts.map +0 -1
  959. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-directory.d.ts.map +0 -1
  960. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-ownership.d.ts.map +0 -1
  961. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-paths.d.ts +0 -11
  962. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-paths.d.ts.map +0 -1
  963. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-paths.js +0 -42
  964. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-read.d.ts.map +0 -1
  965. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue.d.ts.map +0 -1
  966. package/node_modules/@openclaw/fs-safe/dist/json-store.d.ts.map +0 -1
  967. package/node_modules/@openclaw/fs-safe/dist/json-stringify.d.ts.map +0 -1
  968. package/node_modules/@openclaw/fs-safe/dist/json.d.ts.map +0 -1
  969. package/node_modules/@openclaw/fs-safe/dist/local-file-access.d.ts.map +0 -1
  970. package/node_modules/@openclaw/fs-safe/dist/local-file-descriptor.d.ts.map +0 -1
  971. package/node_modules/@openclaw/fs-safe/dist/local-roots.d.ts.map +0 -1
  972. package/node_modules/@openclaw/fs-safe/dist/lock-config.d.ts.map +0 -1
  973. package/node_modules/@openclaw/fs-safe/dist/move-path-cleanup.d.ts.map +0 -1
  974. package/node_modules/@openclaw/fs-safe/dist/move-path-stage.d.ts.map +0 -1
  975. package/node_modules/@openclaw/fs-safe/dist/move-path.d.ts.map +0 -1
  976. package/node_modules/@openclaw/fs-safe/dist/mutation-authority.d.ts.map +0 -1
  977. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts.map +0 -1
  978. package/node_modules/@openclaw/fs-safe/dist/native-config.d.ts.map +0 -1
  979. package/node_modules/@openclaw/fs-safe/dist/native-directory-observation.d.ts.map +0 -1
  980. package/node_modules/@openclaw/fs-safe/dist/native-operations.d.ts.map +0 -1
  981. package/node_modules/@openclaw/fs-safe/dist/native-parent-admission.d.ts.map +0 -1
  982. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.d.ts.map +0 -1
  983. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.d.ts.map +0 -1
  984. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts.map +0 -1
  985. package/node_modules/@openclaw/fs-safe/dist/native.d.ts.map +0 -1
  986. package/node_modules/@openclaw/fs-safe/dist/opened-file-failure.d.ts.map +0 -1
  987. package/node_modules/@openclaw/fs-safe/dist/opened-realpath.d.ts.map +0 -1
  988. package/node_modules/@openclaw/fs-safe/dist/output.d.ts.map +0 -1
  989. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.d.ts.map +0 -1
  990. package/node_modules/@openclaw/fs-safe/dist/owner-dacl.d.ts.map +0 -1
  991. package/node_modules/@openclaw/fs-safe/dist/path-case.d.ts.map +0 -1
  992. package/node_modules/@openclaw/fs-safe/dist/path-policy.d.ts.map +0 -1
  993. package/node_modules/@openclaw/fs-safe/dist/path-prefix.d.ts.map +0 -1
  994. package/node_modules/@openclaw/fs-safe/dist/path-scope-lexical.d.ts.map +0 -1
  995. package/node_modules/@openclaw/fs-safe/dist/path-segment-route.d.ts.map +0 -1
  996. package/node_modules/@openclaw/fs-safe/dist/path-suffix-aliases.d.ts.map +0 -1
  997. package/node_modules/@openclaw/fs-safe/dist/path.d.ts.map +0 -1
  998. package/node_modules/@openclaw/fs-safe/dist/permission-exec.d.ts.map +0 -1
  999. package/node_modules/@openclaw/fs-safe/dist/permissions-public.d.ts.map +0 -1
  1000. package/node_modules/@openclaw/fs-safe/dist/permissions-windows.d.ts.map +0 -1
  1001. package/node_modules/@openclaw/fs-safe/dist/permissions.d.ts.map +0 -1
  1002. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-admission.d.ts.map +0 -1
  1003. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-observation.d.ts.map +0 -1
  1004. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-shared-route.d.ts.map +0 -1
  1005. package/node_modules/@openclaw/fs-safe/dist/pinned-open.d.ts.map +0 -1
  1006. package/node_modules/@openclaw/fs-safe/dist/pinned-operation.d.ts.map +0 -1
  1007. package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.d.ts.map +0 -1
  1008. package/node_modules/@openclaw/fs-safe/dist/pinned-write.d.ts.map +0 -1
  1009. package/node_modules/@openclaw/fs-safe/dist/positional-read.d.ts.map +0 -1
  1010. package/node_modules/@openclaw/fs-safe/dist/private-directory.d.ts.map +0 -1
  1011. package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff.d.ts.map +0 -1
  1012. package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.d.ts.map +0 -1
  1013. package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.d.ts.map +0 -1
  1014. package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.d.ts.map +0 -1
  1015. package/node_modules/@openclaw/fs-safe/dist/publish-file.d.ts.map +0 -1
  1016. package/node_modules/@openclaw/fs-safe/dist/read-open-flags.d.ts.map +0 -1
  1017. package/node_modules/@openclaw/fs-safe/dist/read-opened-file.d.ts.map +0 -1
  1018. package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts.map +0 -1
  1019. package/node_modules/@openclaw/fs-safe/dist/recursive-mkdir-path.d.ts.map +0 -1
  1020. package/node_modules/@openclaw/fs-safe/dist/regular-file.d.ts.map +0 -1
  1021. package/node_modules/@openclaw/fs-safe/dist/replace-directory.d.ts.map +0 -1
  1022. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.d.ts.map +0 -1
  1023. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-source.d.ts.map +0 -1
  1024. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts.map +0 -1
  1025. package/node_modules/@openclaw/fs-safe/dist/replace-file-mode.d.ts.map +0 -1
  1026. package/node_modules/@openclaw/fs-safe/dist/replace-file-rename-policy.d.ts.map +0 -1
  1027. package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.d.ts.map +0 -1
  1028. package/node_modules/@openclaw/fs-safe/dist/replace-file.d.ts.map +0 -1
  1029. package/node_modules/@openclaw/fs-safe/dist/root-boundary.d.ts.map +0 -1
  1030. package/node_modules/@openclaw/fs-safe/dist/root-context.d.ts.map +0 -1
  1031. package/node_modules/@openclaw/fs-safe/dist/root-create-input.d.ts.map +0 -1
  1032. package/node_modules/@openclaw/fs-safe/dist/root-directory-creation.d.ts.map +0 -1
  1033. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts.map +0 -1
  1034. package/node_modules/@openclaw/fs-safe/dist/root-directory.d.ts.map +0 -1
  1035. package/node_modules/@openclaw/fs-safe/dist/root-entries.d.ts.map +0 -1
  1036. package/node_modules/@openclaw/fs-safe/dist/root-errors.d.ts.map +0 -1
  1037. package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.d.ts.map +0 -1
  1038. package/node_modules/@openclaw/fs-safe/dist/root-file.d.ts.map +0 -1
  1039. package/node_modules/@openclaw/fs-safe/dist/root-impl.d.ts.map +0 -1
  1040. package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.d.ts.map +0 -1
  1041. package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.d.ts.map +0 -1
  1042. package/node_modules/@openclaw/fs-safe/dist/root-observed-path.d.ts.map +0 -1
  1043. package/node_modules/@openclaw/fs-safe/dist/root-options.d.ts.map +0 -1
  1044. package/node_modules/@openclaw/fs-safe/dist/root-path-errors.d.ts.map +0 -1
  1045. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts.map +0 -1
  1046. package/node_modules/@openclaw/fs-safe/dist/root-path-observation.d.ts.map +0 -1
  1047. package/node_modules/@openclaw/fs-safe/dist/root-path-stat.d.ts.map +0 -1
  1048. package/node_modules/@openclaw/fs-safe/dist/root-path-symlink.d.ts +0 -7
  1049. package/node_modules/@openclaw/fs-safe/dist/root-path-symlink.d.ts.map +0 -1
  1050. package/node_modules/@openclaw/fs-safe/dist/root-path-symlink.js +0 -55
  1051. package/node_modules/@openclaw/fs-safe/dist/root-path.d.ts.map +0 -1
  1052. package/node_modules/@openclaw/fs-safe/dist/root-paths-lexical.d.ts.map +0 -1
  1053. package/node_modules/@openclaw/fs-safe/dist/root-paths.d.ts.map +0 -1
  1054. package/node_modules/@openclaw/fs-safe/dist/root-read-admission.d.ts.map +0 -1
  1055. package/node_modules/@openclaw/fs-safe/dist/root-remove-identity.d.ts.map +0 -1
  1056. package/node_modules/@openclaw/fs-safe/dist/root-remove-receipt.d.ts.map +0 -1
  1057. package/node_modules/@openclaw/fs-safe/dist/root-remove.d.ts.map +0 -1
  1058. package/node_modules/@openclaw/fs-safe/dist/root-symlink-policy.d.ts.map +0 -1
  1059. package/node_modules/@openclaw/fs-safe/dist/root-walk.d.ts.map +0 -1
  1060. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.d.ts.map +0 -1
  1061. package/node_modules/@openclaw/fs-safe/dist/root-write-compatibility.d.ts.map +0 -1
  1062. package/node_modules/@openclaw/fs-safe/dist/root-write-complete-parent.d.ts.map +0 -1
  1063. package/node_modules/@openclaw/fs-safe/dist/root-write-mode.d.ts.map +0 -1
  1064. package/node_modules/@openclaw/fs-safe/dist/root-write-publication.d.ts.map +0 -1
  1065. package/node_modules/@openclaw/fs-safe/dist/root-write-verification.d.ts.map +0 -1
  1066. package/node_modules/@openclaw/fs-safe/dist/root.d.ts.map +0 -1
  1067. package/node_modules/@openclaw/fs-safe/dist/safe-path-segment.d.ts.map +0 -1
  1068. package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts.map +0 -1
  1069. package/node_modules/@openclaw/fs-safe/dist/secret-read-async.d.ts.map +0 -1
  1070. package/node_modules/@openclaw/fs-safe/dist/secret-read-policy.d.ts.map +0 -1
  1071. package/node_modules/@openclaw/fs-safe/dist/secret.d.ts.map +0 -1
  1072. package/node_modules/@openclaw/fs-safe/dist/secure-file-windows.d.ts.map +0 -1
  1073. package/node_modules/@openclaw/fs-safe/dist/secure-file.d.ts.map +0 -1
  1074. package/node_modules/@openclaw/fs-safe/dist/secure-temp-dir.d.ts.map +0 -1
  1075. package/node_modules/@openclaw/fs-safe/dist/secure-temp-repair.d.ts.map +0 -1
  1076. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts.map +0 -1
  1077. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts.map +0 -1
  1078. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.d.ts.map +0 -1
  1079. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-handle.d.ts.map +0 -1
  1080. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.d.ts.map +0 -1
  1081. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.d.ts.map +0 -1
  1082. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.d.ts.map +0 -1
  1083. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-types.d.ts.map +0 -1
  1084. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock.d.ts.map +0 -1
  1085. package/node_modules/@openclaw/fs-safe/dist/staged-directory.d.ts.map +0 -1
  1086. package/node_modules/@openclaw/fs-safe/dist/staged-file-types.d.ts.map +0 -1
  1087. package/node_modules/@openclaw/fs-safe/dist/standalone-publication-path.d.ts +0 -2
  1088. package/node_modules/@openclaw/fs-safe/dist/standalone-publication-path.d.ts.map +0 -1
  1089. package/node_modules/@openclaw/fs-safe/dist/standalone-publication-path.js +0 -6
  1090. package/node_modules/@openclaw/fs-safe/dist/stat-observation.d.ts.map +0 -1
  1091. package/node_modules/@openclaw/fs-safe/dist/store.d.ts.map +0 -1
  1092. package/node_modules/@openclaw/fs-safe/dist/strict-file-identity.d.ts.map +0 -1
  1093. package/node_modules/@openclaw/fs-safe/dist/string-coerce.d.ts.map +0 -1
  1094. package/node_modules/@openclaw/fs-safe/dist/suppressed-error.d.ts.map +0 -1
  1095. package/node_modules/@openclaw/fs-safe/dist/symlink-parents.d.ts.map +0 -1
  1096. package/node_modules/@openclaw/fs-safe/dist/temp-cleanup.d.ts.map +0 -1
  1097. package/node_modules/@openclaw/fs-safe/dist/temp-target.d.ts.map +0 -1
  1098. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.d.ts.map +0 -1
  1099. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.d.ts.map +0 -1
  1100. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-descriptor.d.ts.map +0 -1
  1101. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-identity.d.ts +0 -15
  1102. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-identity.d.ts.map +0 -1
  1103. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-identity.js +0 -41
  1104. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.d.ts.map +0 -1
  1105. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-permissions.d.ts +0 -4
  1106. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-permissions.d.ts.map +0 -1
  1107. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-permissions.js +0 -32
  1108. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts.map +0 -1
  1109. package/node_modules/@openclaw/fs-safe/dist/temp.d.ts.map +0 -1
  1110. package/node_modules/@openclaw/fs-safe/dist/test-hooks.d.ts.map +0 -1
  1111. package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts.map +0 -1
  1112. package/node_modules/@openclaw/fs-safe/dist/timing.d.ts.map +0 -1
  1113. package/node_modules/@openclaw/fs-safe/dist/trash.d.ts.map +0 -1
  1114. package/node_modules/@openclaw/fs-safe/dist/types.d.ts.map +0 -1
  1115. package/node_modules/@openclaw/fs-safe/dist/unicode-path.d.ts.map +0 -1
  1116. package/node_modules/@openclaw/fs-safe/dist/walk.d.ts.map +0 -1
  1117. package/node_modules/@openclaw/fs-safe/dist/windows-command.d.ts.map +0 -1
  1118. package/node_modules/@openclaw/fs-safe/dist/windows-owner.d.ts.map +0 -1
  1119. package/node_modules/@openclaw/fs-safe/dist/windows-path-alias.d.ts.map +0 -1
  1120. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.d.ts.map +0 -1
  1121. package/node_modules/@openclaw/fs-safe/dist/write-open-flags.d.ts.map +0 -1
  1122. package/node_modules/@openclaw/fs-safe/dist/write-queue.d.ts.map +0 -1
  1123. /package/node_modules/@openclaw/fs-safe/dist/{archive-options.js → root-public-types.js} +0 -0
@@ -9,6 +9,13 @@ normal meaning, and ordinary colon-bearing POSIX paths remain valid.
9
9
 
10
10
  JavaScript raw-sidecar creation passes mode `0o600` to that exclusive open. On POSIX, the process umask may further restrict the new file but cannot add group or other access. No pathname `chmod` fallback is used.
11
11
 
12
+ Root-backed lock records and reclaim guards also claim their final name
13
+ exclusively, including with the native backend. The native path retains the
14
+ admitted parent descriptor and removes incomplete claims only while their exact
15
+ identity remains owned. Ordinary Root creates still stage privately; lock records
16
+ use this internal exclusive-create path so racing contenders can retry without
17
+ an ambiguous rename outcome.
18
+
12
19
  ```ts
13
20
  import { acquireFileLock } from "@openclaw/fs-safe/file-lock";
14
21
 
@@ -28,17 +35,37 @@ try {
28
35
 
29
36
  The lock file sits next to the protected resource. If a process crashes mid-lock, the next acquirer notices the held entry, inspects its payload (PID, host, acquired-at timestamp), and decides — via `shouldReclaim` (defaulting to "is the lock older than `staleMs`?") — whether it should keep waiting or fail.
30
37
 
31
- On natural event-loop shutdown, a globally deduplicated `process.on("beforeExit")` handler attempts asynchronous cleanup of held Root-backed locks through their retained Root capability and ownership receipt. The synchronous `process.on("exit")` handler provides last-chance cleanup for raw locks and reclaim guards. Changed sidecars and failed Root cleanup remain in place; cleanup does not keep retrying during shutdown unless another acquisition re-arms it. Locks acquired with `retainOnExit: true` are exempt from both handlers: their sidecar stays in place after exit and is governed only by the caller's own stale policy. Because exit handlers are globally deduplicated across package copies, `retainOnExit` fails closed with `helper-unavailable` if an older copy that cannot honor it registered the handlers first.
38
+ On natural event-loop shutdown, a globally deduplicated `process.on("beforeExit")` handler attempts asynchronous cleanup of held Root-backed locks through their retained Root capability and ownership receipt. The synchronous `process.on("exit")` handler provides last-chance cleanup for raw locks and raw-path reclaim guards. Changed sidecars and failed Root cleanup remain in place; cleanup does not keep retrying during shutdown unless another acquisition re-arms it. Locks acquired with `retainOnExit: true` are exempt from both handlers: their sidecar stays in place after exit and is governed only by the caller's own stale policy. Because exit handlers are globally deduplicated across package copies, `retainOnExit` fails closed with `helper-unavailable` if an older copy that cannot honor it registered the handlers first.
39
+
40
+ Asynchronous Root-backed stale recovery uses a regular file at the
41
+ `.reclaim` name, created, verified, and removed through that Root. Its ownership
42
+ token and exact bytes are checked after awaited decisions and before stale
43
+ removal; Root mutation policies also apply to the guard. Raw and synchronous
44
+ Root reclaimers use directories and recognize these files as occupied guards.
45
+ Each asynchronous attempt owns its guard directly, outside process-exit cleanup,
46
+ so `beforeExit` cannot release an exclusion still needed by an unsettled attempt.
47
+ Normal completion removes it through the Root. Interrupted creation, revoked
48
+ cleanup authority, identity changes, or process exit can leave the guard in
49
+ place; recover it only after an application-owned liveness check proves the
50
+ attempt has ended. There is no raw-path cleanup fallback. These token/byte
51
+ checks retain the sidecar protocol's cooperative, non-atomic removal boundary.
52
+ The final guard check follows the last sidecar snapshot and parser call, before
53
+ removal. Parsers can run before guard ownership is established or verified;
54
+ invocation is not mutation authority. A failing final parser keeps its error
55
+ even if guard ownership has also changed.
56
+ `manager.reset()` invalidates admission bookkeeping but preserves a pending
57
+ Root guard; let its original attempt settle before retrying that guarded path.
58
+ It stops compromise monitoring for forgotten holders, including callbacks from checks already in flight.
32
59
 
33
60
  Always release locks in a `finally` block. Application-managed graceful shutdown can await `release()` or `manager.drain()` before terminating. Explicit `process.exit()`, uncaught failures, crashes, default signal handling, and fatal termination (including `SIGKILL`) do not reliably run asynchronous Root cleanup and may leave sidecars. Recover only after an application-owned liveness policy proves the holder cannot still be writing.
34
61
 
35
- Exit cleanup tolerates shared managers created by older package copies that lack reclaim-guard state, and continues through later manager domains. Handler ownership remains first-registration-wins: loading an updated copy does not replace an older copy's registered handler. Restart with the updated copy registering first to obtain the fix. After building, `node scripts/legacy-lock-exit-proof.mjs` checks clean exit, removal of legacy and modern raw locks, and preservation of a retained lock using synthetic temporary files.
62
+ Exit cleanup tolerates shared managers created by older package copies that lack reclaim-guard state, and continues through later manager domains. Handler ownership remains first-registration-wins: loading an updated copy does not replace an older copy's registered handler. First registration is committed only after Node accepts the listener; synchronous `newListener` reentry fails closed and a thrown registration rolls back so a later acquisition can retry. Restart with the updated copy registering first to obtain the fix. After building, `node scripts/legacy-lock-exit-proof.mjs` checks clean exit, removal of legacy and modern raw locks, and preservation of a retained lock using synthetic temporary files.
36
63
 
37
- Each new sidecar also carries an internal random ownership token encoded as JSON trailing whitespace. `JSON.parse()` and every payload callback still see exactly the caller-provided object. Only the process that successfully created the sidecar keeps that token as release authority; merely reading token-shaped bytes from disk does not enable this mode. Release compares the in-memory token and exact serialized bytes, and requires the pathname to remain a regular file, instead of requiring an opened descriptor and pathname lookup to report the same inode identity. This preserves ownership checks on filesystems such as Docker Desktop VirtioFS where those two views can legitimately differ. Sidecars created by older releases have no token and retain the legacy identity-plus-content check.
64
+ Each new sidecar also carries an internal random ownership token encoded as JSON trailing whitespace. `JSON.parse()` and every payload callback still see exactly the caller-provided object. Only the process that successfully created the sidecar keeps that token as release authority; merely reading token-shaped bytes from disk does not enable this mode. Release compares the in-memory token and exact serialized bytes, and requires the pathname to remain a regular file, instead of requiring an opened descriptor and pathname lookup to report the same inode identity. This preserves ownership checks on filesystems such as Docker Desktop VirtioFS where those two views can legitimately differ. Sidecars created by older releases have no token and retain the legacy identity-plus-content check. If Windows reports a zero device or inode for either identity observation, that check is inconclusive and removal is skipped.
38
65
 
39
66
  The raw sidecar bytes are not a canonical JSON representation: tools that trim or rewrite the trailing whitespace invalidate the ownership token, so release leaves the changed sidecar in place and fails closed. The token distinguishes cooperating acquisitions; it is not a secret and does not make pathname compare-and-remove atomic against a hostile process that can replace files outside the lock protocol.
40
67
 
41
- `release()` propagates an I/O failure that prevents deletion of an unchanged, owned sidecar; it never reports successful cleanup while leaving that lock behind. The handle and manager retain the exact cleanup receipt after a failure, so the same handle can retry `release()` and `manager.drain()` can retry retained cleanup. A changed sidecar remains an ownership mismatch rather than a deletion failure and is left untouched. If both a `withFileLock()` callback and release fail, the release error is the primary `SuppressedError.error` and the callback failure remains available as `SuppressedError.suppressed`. Failed asynchronous acquisition cleanup uses the same shape, with the cleanup error primary and the acquisition failure suppressed. On Node runtimes without the global `SuppressedError` constructor, fs-safe returns the equivalent `Error` shape with the same name and properties.
68
+ `release()` propagates an I/O failure that prevents deletion of an unchanged, owned sidecar; it never reports successful cleanup while leaving that lock behind. The handle and manager retain the exact cleanup receipt after a failure, so the same handle can retry `release()` and `manager.drain()` can retry retained cleanup. A changed sidecar remains an ownership mismatch rather than a deletion failure and is left untouched. If both a `withFileLock()` or `withFileLockSync()` callback and release fail, the release error is the primary `SuppressedError.error` and the callback failure remains available as `SuppressedError.suppressed`. Failed asynchronous acquisition cleanup uses the same shape, with the cleanup error primary and the acquisition failure suppressed. On Node runtimes without the global `SuppressedError` constructor, fs-safe returns the equivalent `Error` shape with the same name and properties.
42
69
 
43
70
  ## API
44
71
 
@@ -62,6 +89,41 @@ function withFileLockSync<T, TPayload>(targetPath: string, options: FileLockSync
62
89
 
63
90
  `managerKey` is an optional identifier used to keep state isolated across multiple lock domains in the same process. Use distinct keys for distinct domains (`"snapshot"`, `"compact"`, `"build"`). If omitted, fs-safe derives one from the target path.
64
91
 
92
+ Within one manager domain, the canonical target path is the in-process
93
+ arbitration key even when callers supply different explicit `lockPath` values.
94
+ Admission remains pending while payload serialization and stale-policy callbacks
95
+ run, and becomes reentrant only after a matching owner is fully published.
96
+ Foreign owners wait or reach the configured timeout without opening their
97
+ alternate sidecar. Each unguarded attempt still invokes and serializes `payload`
98
+ before a completed foreign holder consumes retry budget, preserving callback and
99
+ retry compatibility; the holder is rechecked before delayed option accessors or
100
+ sidecar I/O. When the candidate resolves to the holder's actual sidecar (the
101
+ default path or an explicitly identical path), asynchronous retries also preserve
102
+ the existing parser observation: bytes are observed first, then its accessor is
103
+ read and the current holder bytes are parsed once per unguarded attempt.
104
+ Distinct alternate sidecars do not trigger that observation. Async acquisition releases
105
+ pending admission before retry backoff;
106
+ synchronous callback reentry cannot let the active stack progress, so it fails
107
+ closed with the normal `file_lock_timeout` fields. Async payload, serialization,
108
+ delayed-option, and stale-policy callbacks carry a process-shared ancestry scope:
109
+ a nested acquisition of the same canonical target in the same manager domain
110
+ fails before waiting on its ancestor, while independent tasks, different targets,
111
+ and different manager domains retain their normal retry behavior. The synchronous
112
+ API uses one process-wide domain. An ancestry snapshot keeps each ancestor that
113
+ is active when the child acquisition starts, even if the current callback's own
114
+ scope already became inactive; later deactivation cannot reclassify that child.
115
+ Detached work started only after every matching ancestor has finished is not
116
+ retained as a descendant. Promise-like callback results are assimilated inside
117
+ that ancestry scope, and the resolved payload crosses the internal return
118
+ boundary in a non-thenable envelope. The helper therefore does not observe a
119
+ stateful payload `then` accessor again outside the reservation.
120
+
121
+ The pending-admission registry coordinates package copies that implement this
122
+ protocol without placing incomplete state in the legacy held-lock map. An older
123
+ already-loaded executable copy does not consult that registry, so a mixed-version
124
+ process cannot rely on the new in-process arbitration until every copy is updated
125
+ and the process is restarted.
126
+
65
127
  ## Acquire options
66
128
 
67
129
  ```ts
@@ -105,7 +167,11 @@ type FileLockRetryOptions = {
105
167
  };
106
168
  ```
107
169
 
108
- `payload` is a function so you can re-evaluate it on each retry (e.g. timestamp, PID).
170
+ `payload` is a function so you can re-evaluate it on each retry (e.g. timestamp,
171
+ PID). Callback-valued option accessors are otherwise captured once for an
172
+ acquisition; the asynchronous same-sidecar parser observation above reads
173
+ `parsePayload` once per unguarded attempt. Callback invocation keeps its
174
+ established receiver behavior.
109
175
 
110
176
  Asynchronous acquisition snapshots `targetPath`, an explicit `lockPath`, and
111
177
  `lockRoot` before its first asynchronous operation. Cwd-dependent path spellings
@@ -133,6 +199,10 @@ explicit `retry.retries` still applies with `timeoutMs: Infinity`, and zero allo
133
199
  only the initial attempt. After process defaults are applied, an omitted retry
134
200
  count means unlimited retries, and an omitted or infinite timeout means no
135
201
  deadline. With neither budget bounded, contention can wait indefinitely.
202
+ Finite deadlines use monotonic elapsed time, so system clock corrections do not
203
+ extend or shorten the retry budget. Payload timestamps, `heldEntries().acquiredAt`,
204
+ and stale-policy `nowMs` remain wall-clock based. Deadlines are checked at retry
205
+ boundaries; they do not interrupt callbacks or filesystem operations.
136
206
  `parsePayload` replaces JSON parsing for legacy or custom sidecars. Its `unknown`
137
207
  result is passed to `shouldReclaim` and `shouldRemoveStaleLock`, allowing PID,
138
208
  process-start, argv, or role schemas to remain application-owned.
@@ -230,10 +300,11 @@ Discarding an acquisition observation is not proof that the pathname is absent:
230
300
  another owner may already have created the next record. Every discarded
231
301
  observation consumes the normal retry/deadline budget and requires fresh
232
302
  exclusive creation. It supplies no release, reclaim, or held-lock authority.
233
- If that successor disappears during the recovery metadata probe, the waiter
234
- may discard the probe only with an operation-local receipt for an admitted
235
- regular file with one link, followed by current Root and canonical ancestor
236
- checks. A generic metadata error does not permit this retry, and public
303
+ If that successor disappears or is replaced during the recovery metadata probe,
304
+ the waiter may discard the probe only with an operation-local receipt for an
305
+ admitted regular file with one link. Replacement also requires a single exact
306
+ observation of a different regular file with one link. Current Root and canonical
307
+ ancestor checks must still pass. A generic metadata error does not permit this retry, and public
237
308
  `Root.stat()` still rejects a file that changes during observation.
238
309
  Generic `Root.open()` and held-owner/reclaim reads still reject failed opens.
239
310
  Moving an already-matched pinned descriptor without unlinking it, unknown or
@@ -270,6 +341,12 @@ sidecar no longer matches or after a verification I/O failure. This is
270
341
  detection, not revocation of work already in progress. Asynchronous checks are
271
342
  serialized, so a slow verification never overlaps the next timer tick.
272
343
 
344
+ Ownership-only checks compare serialized bytes, tokens, and file identities
345
+ without decoding an unused default JSON payload. Stale-policy reads still
346
+ decode the payload. Explicit `parsePayload` callbacks keep their existing
347
+ verification and asynchronous-cleanup calls, receivers, and errors;
348
+ synchronous release continues without invoking a custom parser.
349
+
273
350
  The compromise-check interval is validated before payload evaluation or
274
351
  filesystem acquisition. Omit it or pass `0` to disable monitoring; enabled
275
352
  intervals must be finite and between 1 and 2,147,483,647 milliseconds. Values
@@ -295,6 +372,46 @@ deadline budget. Errors from descriptor reads/stats or parsing are not treated
295
372
  as missing snapshots, even when their code is `ENOENT`. Held verification,
296
373
  release, and reclaim do not retry open denials.
297
374
 
375
+ Synchronous `lockRoot` is an authority boundary, not only a containment hint.
376
+ It requires a genuine `Root` returned by the same loaded package copy; a
377
+ structural/custom Root lookalike or a handle constructed by another installed
378
+ copy fails with `helper-unavailable` before any remaining acquisition option or
379
+ nested retry getter, payload evaluation, or filesystem effects. After reading
380
+ `lockRoot` once, the genuine Root and its policies are snapshotted before those
381
+ getters run. Construct `lockRoot` through the same import instance that provides
382
+ the synchronous lock function. The acquirer retains the original Root context,
383
+ exact root, parent, and file identities, and the Root's entry-time read, hardlink,
384
+ mutation-symlink, `denyMutations`, and `assertBeforeMutation` policies. Those
385
+ receipts remain authoritative through same-owner reuse, compromise checks,
386
+ reclaim, explicit release, and process-exit cleanup. If the Root, an admitted
387
+ parent, or the owned entry changes, cleanup leaves the ambiguous path in place.
388
+ Root-backed synchronous records and their exit handler use a separate versioned
389
+ global domain; legacy raw-lock handlers and legacy package copies cannot adopt or
390
+ pathname-delete those records. Root and raw acquisitions never share a
391
+ reentrant reference, even when their owner strings match.
392
+
393
+ As with asynchronous Root-backed acquisition, synchronous target normalization
394
+ does not create the target's parent. An explicit in-root `lockPath` can therefore
395
+ guard an external or not-yet-created target key without creating anything next
396
+ to that target. Missing directories for the sidecar itself are created one
397
+ component at a time through the retained Root policy; the returned `lockPath`
398
+ uses the admitted canonical spelling. This strengthens earlier synchronous
399
+ behavior that treated `lockRoot` as a one-time lexical/canonical bound and used
400
+ raw pathname operations afterward.
401
+
402
+ Windows Root-backed target keys use native existing-ancestor canonicalization,
403
+ so long and short spellings of the same target parent share an arbitration key.
404
+ Sidecar admission applies both the retained mutation policy and read/final-link
405
+ policy before payload evaluation; a dangling final sidecar link is rejected
406
+ without creating its target.
407
+
408
+ Exact Root, parent, and file receipts narrow replacement races but do not make a
409
+ pathname check and the following `open`, `mkdir`, `unlink`, or `rmdir` one atomic
410
+ filesystem operation. A hostile peer with direct write access can still race the
411
+ final syscall. An observed mismatch fails closed and ambiguous entries remain;
412
+ use OS-enforced directory permissions or a native descriptor-relative primitive
413
+ when that attacker model must be excluded.
414
+
298
415
  Both synchronous helpers consume the [process-wide lock defaults](config.md#configurefssafelocks-config).
299
416
  A synchronous retry sleep is clamped to the remaining finite deadline, so a long or jittered backoff cannot extend the configured timeout or block forever.
300
417
  Per-call options take precedence, including zero values; a per-call `retry`
@@ -332,6 +449,7 @@ error.
332
449
  The sync payload, reclaim, and parsing callbacks must also be synchronous. This
333
450
  shape is appropriate for a short boot migration; it is a poor fit for a server
334
451
  request because retry backoff uses a blocking wait.
452
+ Synchronous `shouldReclaim` and `shouldRemoveStaleLock` reject Promise or thenable results with `TypeError` before deleting the observed sidecar; an asynchronous result is never approval.
335
453
 
336
454
  If termination skips the relevant cleanup handler or cleanup fails, the sidecar remains. In particular, `process.exit()` skips asynchronous Root cleanup; await explicit release or drain during application-managed graceful shutdown. Once `staleMs` elapses (or your `shouldReclaim` returns true), acquisition fails closed by default instead of deleting by path.
337
455
 
@@ -49,7 +49,7 @@ remain with the caller.
49
49
 
50
50
  ```ts
51
51
  function stageFileInDirectory(options: {
52
- directory: string | DirectoryReceipt;
52
+ directory: string | DirectoryReceipt<Stats | BigIntStats>;
53
53
  content: string | Uint8Array;
54
54
  mode?: number;
55
55
  }): Promise<StagedFile>;
@@ -65,6 +65,11 @@ interface StagedFile extends AsyncDisposable {
65
65
  Strings are UTF-8. `mode` is the requested **published** mode and defaults to
66
66
  `0600`; exact final modes, including `000`, are supported. The unpublished file
67
67
  stays at `0600` throughout preparation and any awaited application checks.
68
+ The retained descriptor's actual mode is checked before writing payload bytes,
69
+ by `assertCurrent()`, and before publication; a successful but ineffective
70
+ `chmod` fails with `insecure-permissions`. Final mode verification after
71
+ publication can fail with a `published` receipt while preserving the completed
72
+ file. These are POSIX mode checks, not ACL or ownership admission.
68
73
  After rename succeeds and the published entry passes identity validation, the
69
74
  owner applies the requested mode through its retained file descriptor. Content
70
75
  was synchronized during preparation; publication always synchronizes the parent.
@@ -76,8 +81,9 @@ Creation uses an exclusive, no-follow, close-on-exec open of a generated direct
76
81
  child name. Writes use that descriptor. Inspection uses non-following metadata
77
82
  operations, never a potentially blocking reopen of the leaf.
78
83
 
79
- A supplied directory receipt must still match at admission. Its numeric
80
- identity must be exactly representable; ambiguous identity fails closed.
84
+ A supplied directory receipt must still match at admission. Caller receipts can
85
+ carry numeric `Stats` or exact `BigIntStats`; untracked numeric identities must
86
+ be exactly representable. Ambiguous identity fails closed.
81
87
  Returned receipts are frozen descriptive snapshots, not mutable authority.
82
88
  Changing a supplied receipt after admission cannot retarget the lifecycle.
83
89
 
@@ -105,9 +111,13 @@ touching descriptors.
105
111
  basename. Empty, dot, dotdot, separators, absolute paths, NUL, control characters,
106
112
  drive-relative spellings, and the stage's own name are rejected.
107
113
 
108
- With `overwrite: false`, publication is genuine kernel no-replace rename; a
109
- collision leaves both names unchanged and raises `FsSafeError("already-exists")`.
110
- The stage may then be cleaned or published under another name. With
114
+ With `overwrite: false`, publication is genuine kernel no-replace rename.
115
+ A native collision raises `FsSafeError("already-exists")`, but ordinary errno
116
+ does not prove that a remote rename never committed. Native rename failures
117
+ without explicit pre-dispatch provenance therefore report `indeterminate`:
118
+ cleanup preserves names and closes descriptors, and further publication rejects.
119
+ Only rejection before rename dispatch leaves the stage eligible for cleanup or
120
+ publication under another name. With
111
121
  `overwrite: true`, publication is plain atomic replacement. Neither route
112
122
  copies. Both source and destination resolve through the retained original
113
123
  parent, with checks immediately before rename and after publication.
@@ -89,7 +89,15 @@ claim before publication. If another consumer acknowledged, quarantined, or
89
89
  replaced that claim, the migration rejects with `FsSafeError("path-mismatch")`
90
90
  and leaves the newer generation or failed evidence intact. A stale migration
91
91
  rejects both single and batch loads; ordinary callback failures retain their
92
- existing single-load rejection and batch-skip behavior.
92
+ existing single-load rejection and batch-skip behavior. A caller or migration
93
+ error with code `ENOENT` is still a failure, not a missing queue entry; only a
94
+ claim that is absent or disappears before reading returns `null` from a single load.
95
+
96
+ If closing the read descriptor also fails, the original read, validation,
97
+ callback, or migration failure keeps precedence, including non-Error rejection
98
+ values. A close failure without an earlier failure is reported through the same
99
+ loader policy: direct reads and single loads reject, while batch loads skip it
100
+ unless migration has started.
93
101
 
94
102
  On Windows, migration releases its read pin once at this publication boundary
95
103
  because an open target can block replacement. It rechecks the exact pathname
@@ -31,6 +31,8 @@ rejects with `permission-unverified`. Existing supplied directories keep their
31
31
  permissions. Missing root components are created at `0o700` and initialized
32
32
  from their first exact security snapshot; if a restrictive umask changes that
33
33
  mode, correction uses a verified directory descriptor.
34
+ An initial mode-descriptor admission error is preserved if closing that rejected
35
+ descriptor also fails; close failures after successful admission remain reportable.
34
36
 
35
37
  For an already existing canonical root, discovery retains only its immutable
36
38
  exact identity. Cleanup-parent retention is provisional: after any native
@@ -155,12 +157,15 @@ uses guarded pathname-recursive removal. This fallback never recursively
155
157
  removes the public workspace name, but it is not atomic conditional deletion: a
156
158
  same-privilege peer that discovers and replaces the private quarantine after
157
159
  verification can still redirect the final pathname removal.
160
+ If admitting a cleanup parent fails and closing its descriptor also fails,
161
+ creation rejects with both failures in an `AggregateError`. This does not select
162
+ compatible fallback or retry the indeterminate descriptor close.
158
163
 
159
164
  Set `cleanupSafety: "require-bounded"` when that concurrent attacker is in scope.
160
165
  Creation then requires native no-replace directory rename, native owned-tree
161
166
  removal, and a readable retained parent descriptor **before** child creation.
162
167
  On POSIX, the final requested `dirMode` must also include owner read
163
- and search (`(dirMode & 0o500) === 0o500`). Preflight failure throws
168
+ and search (`(dirMode & 0o500) === 0o500`). An unavailable capability throws
164
169
  `FsSafeError("helper-unavailable")` without creating a child or calling a scoped
165
170
  callback. The child descriptor is opened
166
171
  while the new directory still has its private creation mode, before an explicit
@@ -221,9 +226,15 @@ A missing workspace returns `"missing"`. A replacement observed at the public
221
226
  name before quarantine returns `"identity-mismatch"` when the parent is stable;
222
227
  an ambiguous parent returns `"indeterminate"`. After successful removal,
223
228
  repeated cleanup returns `"missing"` without touching a recreated public name.
224
- Other statuses remain stable. Operational removal errors propagate and later
225
- cleanup returns `"indeterminate"` without retrying. Disposal and scoped helpers
226
- ignore returned statuses, while manual cleanup exposes the result.
229
+ Other statuses remain stable. Compatible recursive-removal failures propagate
230
+ the exact thrown value, including `undefined`, `null`, `false`, positive or
231
+ negative numeric zero, bigint zero, an empty string, and `NaN`; they are never
232
+ inferred from value identity or truthiness. Uncertain quarantine and
233
+ retained-parent checks instead return
234
+ `"indeterminate"`. After a propagated removal failure, later cleanup returns
235
+ `"indeterminate"` without retrying. Disposal and scoped helpers ignore returned
236
+ statuses, while manual cleanup exposes the result. A terminal descriptor-close
237
+ failure retains its existing precedence if it also fails during settlement.
227
238
 
228
239
  When cleanup is part of a retention or audit decision, inspect the receipt
229
240
  instead of treating cleanup as fire-and-forget:
@@ -410,6 +421,12 @@ files, hardlinks, and changes between the pre-open pathname, opened descriptor,
410
421
  and current pathname are rejected. The callback must finish and close its
411
422
  writer before returning. Its return value is preserved as `result`.
412
423
 
424
+ Each option is read once before directory creation starts, including both
425
+ callbacks, the temp prefix, isolation, directory and file modes, and sync flags.
426
+ Later changes to the options object do not change the in-flight operation.
427
+ `writeTemp` and `resolveFinalPath` retain their shared internal staging object
428
+ as the callback receiver.
429
+
413
430
  Generated temp filenames suffix Windows reserved-device basenames on every
414
431
  platform. Before either an ordinary or isolated producer runs, the completed staging
415
432
  name must be a nonempty, non-dot path component with no POSIX or Windows
@@ -536,6 +553,11 @@ await writeViaSiblingTempPath({
536
553
  If `replaceFileAtomic` does what you need, prefer that. Use
537
554
  `writeViaSiblingTempPath` when the producer needs a concrete temp pathname but
538
555
  the final destination still needs root-boundary checks.
556
+
557
+ The root, target, callback, fallback filename, and temp prefix are read once
558
+ before setup. Later changes to the parameters do not affect the in-flight
559
+ operation; `writeTemp` retains the original parameters object as its receiver.
560
+
539
561
  Its private workspace uses `tempFile()`'s compatible identity-aware cleanup.
540
562
  It preserves replacements observed before removal, but retains the final
541
563
  pathname-recursive-removal gap described above; this helper does not expose
@@ -625,7 +647,12 @@ recursive-`mkdir` winner is inspected as an untrusted existing directory.
625
647
  Broad-mode repair also uses a pinned descriptor; there is no pathname chmod.
626
648
 
627
649
  Repair and finalization require a known nonnegative safe-integer UID and exact
628
- bigint device, inode, owner, mode, and directory-type facts. They open with
650
+ bigint device, inode, owner, mode, and directory-type facts. Device and inode
651
+ identities accept Node's signed 64-bit stat representation, including negative
652
+ values down to `-(1n << 63n)`; inode zero remains invalid. Previously supported
653
+ nonnegative device and positive inode adapter values remain supported without
654
+ an upper cap. Values are compared exactly as received: signed and unsigned
655
+ encodings of the same bits are not treated as equal. They open with
629
656
  `O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_NONBLOCK`, verify the descriptor and
630
657
  current directory entry against the initial receipt before `fchmod`, then
631
658
  verify identity, permissions, and write/search access again before closing.
@@ -128,6 +128,8 @@ type RootOptions = {
128
128
  ## `RootReadOptions` / `RootWriteOptions` / `RootCopyOptions`
129
129
 
130
130
  ```ts
131
+ import type { CopyCloneMode, RootCopyPublicationReceipt } from "@openclaw/fs-safe";
132
+
131
133
  type RootReadOptions = Pick<RootDefaults, "hardlinks" | "maxBytes" | "nonBlockingRead" | "symlinks">;
132
134
  type RootWriteOptions = Pick<RootDefaults, "assertBeforeMutation" | "denyMutations" | "durable" | "mkdir" | "mode" | "renameIdentity" | "mutationSymlinks"> & {
133
135
  encoding?: BufferEncoding;
@@ -135,6 +137,11 @@ type RootWriteOptions = Pick<RootDefaults, "assertBeforeMutation" | "denyMutatio
135
137
  };
136
138
  type RootCopyOptions = Pick<RootDefaults, "assertBeforeMutation" | "denyMutations" | "durable" | "maxBytes" | "mkdir" | "mode" | "mutationSymlinks"> & {
137
139
  sourceHardlinks?: "reject" | "allow";
140
+ overwrite?: boolean;
141
+ clone?: CopyCloneMode;
142
+ signal?: AbortSignal;
143
+ preserveSourceMode?: boolean;
144
+ onDestinationPublished?: (receipt: RootCopyPublicationReceipt) => void;
138
145
  };
139
146
  type RootOpenWritableOptions = Pick<RootDefaults, "assertBeforeMutation" | "denyMutations" | "mkdir" | "mode" | "mutationSymlinks"> & {
140
147
  writeMode?: "replace" | "append" | "update";
@@ -150,8 +157,17 @@ type RootAppendOptions = RootWriteOptions & {
150
157
  type RootMoveOptions = Pick<RootDefaults, "assertBeforeMutation" | "denyMutations" | "mutationSymlinks"> & {
151
158
  overwrite?: boolean;
152
159
  };
153
- type RootRemoveOptions = Pick<RootDefaults, "assertBeforeMutation" | "denyMutations" | "mutationSymlinks">;
154
- type RootMkdirOptions = Pick<RootDefaults, "assertBeforeMutation" | "denyMutations" | "mutationSymlinks">;
160
+ type RootRemoveOptions = Pick<RootDefaults, "assertBeforeMutation" | "denyMutations" | "mutationSymlinks"> & {
161
+ recursive?: boolean;
162
+ force?: boolean;
163
+ order?: "filesystem" | "sorted";
164
+ maxEntries?: number;
165
+ maxDepth?: number;
166
+ signal?: AbortSignal;
167
+ };
168
+ type RootMkdirOptions = Pick<RootDefaults, "assertBeforeMutation" | "denyMutations" | "mutationSymlinks"> & {
169
+ private?: boolean;
170
+ };
155
171
  ```
156
172
 
157
173
  Per-method option shapes. Each picks the `RootDefaults` keys that apply, plus method-specific extras.
@@ -47,6 +47,10 @@ type WalkDirectoryFailure = {
47
47
 
48
48
  `depth` starts at `1` for direct children of `rootDir`. `relativePath` is always relative to the supplied root. `scannedEntryCount` counts directory entries examined, including entries filtered out by `include`.
49
49
 
50
+ Each entry's `path` is absolute and retains the normalized spelling of the
51
+ supplied root, including followed directory aliases. Paths do not switch to
52
+ the canonical symlink target during descent.
53
+
50
54
  `walkDirectory()` and `walkDirectorySync()` always return `failedDirs`; the property remains optional on the exported `WalkDirectoryResult` type so existing callers that manually construct the legacy result shape remain source-compatible. It lists every directory whose `realpath`/`readdir` threw, so its contents are absent from `entries`. `error` is the thrown value (a `NodeJS.ErrnoException` at runtime), so callers can distinguish a benign missing-directory race (`ENOENT`) from a real read failure (`EACCES`, `EIO`, `ESTALE`, …). The walk-root failure has an empty `relativePath` and `depth: 0`. Failures resolving a symlink's target kind are not reported here.
51
55
 
52
56
  ## Options
@@ -59,12 +63,43 @@ type WalkDirectoryOptions = {
59
63
  include?: (entry: WalkDirectoryEntry) => boolean;
60
64
  descend?: (entry: WalkDirectoryEntry) => boolean;
61
65
  };
66
+
67
+ type AsyncWalkDirectoryOptions = Omit<WalkDirectoryOptions, "include" | "descend"> & {
68
+ include?: (entry: WalkDirectoryEntry) => boolean | Promise<boolean>;
69
+ descend?: (entry: WalkDirectoryEntry) => boolean | Promise<boolean>;
70
+ };
62
71
  ```
63
72
 
64
73
  `symlinks` defaults to `"skip"`. `"include"` returns symlink entries without following them. `"follow"` resolves symlinks with `stat()` and may descend into linked directories, so use it only when that is intentional. Already-visited real directories are skipped so symlink cycles do not recurse forever.
65
74
 
75
+ Before descending into a child directory, `skip` and `include` recheck whether
76
+ that entry has become a symlink, including changes made while a filter waits.
77
+ The explicitly supplied walk root may still be a symlink. This best-effort
78
+ child check does not turn the standalone walker into a confinement boundary;
79
+ use `Root.walk()` when root confinement is required.
80
+
66
81
  `include` controls which entries are returned. `descend` controls which directory entries are traversed. A skipped directory can still be returned if `include` accepts it.
67
82
 
83
+ The asynchronous `walkDirectory()` accepts `AsyncWalkDirectoryOptions`. It resolves each `include` decision before calling `descend`, and resolves descent before reading the directory's children. Decisions run serially in the existing filesystem-order depth-first traversal. Both callbacks retain the supplied options object as their `this` receiver.
84
+
85
+ Absent callbacks and primitive results keep the synchronous selection path. Object and function results are awaited directly, including promises and thenables. For JavaScript callers, nullish results retain the default `true`; other resolved values use their existing truthiness. Return booleans or promises of booleans for the typed API.
86
+
87
+ ```ts
88
+ import fs from "node:fs/promises";
89
+ import path from "node:path";
90
+
91
+ const scan = await walkDirectory("/safe/workspace", {
92
+ include: (entry) => entry.kind === "file",
93
+ descend: async (entry) => {
94
+ const marked = await fs.access(path.join(entry.path, "SKILL.md"))
95
+ .then(() => true, () => false);
96
+ return !marked;
97
+ },
98
+ });
99
+ ```
100
+
101
+ This prunes a directory after finding its marker without listing that directory's children. Callback throws and promise rejections reject the walk; they are not directory failures in `failedDirs`. Filtering still consumes the examined-entry budget. `WalkDirectoryOptions` and `walkDirectorySync()` remain synchronous; the async options do not add confinement or cancellation to the standalone walker.
102
+
68
103
  Unreadable directories are skipped rather than throwing, but every skipped directory is recorded in `failedDirs`. This keeps the helper suitable for best-effort inventories while letting pruning jobs tell an incomplete scan from an empty one: a destructive reconcile that deletes state for paths missing from `entries` must first confirm `failedDirs` holds no real read failures, or a transient `EIO`/`EACCES` blip would be mistaken for mass deletion. Use a stricter root-bounded operation when every entry must be accounted for.
69
104
 
70
105
  ## Root-bounded async iteration
@@ -123,7 +158,9 @@ If a thrown walk failure and directory close both fail, disposal throws a
123
158
  `SuppressedError` with the close failure in `error` and the original failure in
124
159
  `suppressed`, preserving both causes.
125
160
 
126
- `entryFilter` is evaluated for each resolved file, directory, or other entry:
161
+ `entryFilter` is evaluated for each resolved file, directory, or other entry.
162
+ The `RootWalkEntryFilter` callback returns a `RootWalkEntryFilterResult`
163
+ or a `Promise<RootWalkEntryFilterResult>`:
127
164
 
128
165
  ```ts
129
166
  for await (const entry of capability.walk("", {
@@ -147,10 +184,43 @@ The result values are `"include"`, `"skip"`, and `"skip-subtree"`. Plain
147
184
  `"skip-subtree"` omits that directory and prunes its descendants. Returning
148
185
  `"skip-subtree"` for a non-directory is equivalent to `"skip"`.
149
186
 
187
+ An asynchronous filter can inspect a marker before deciding whether to prune:
188
+
189
+ ```ts
190
+ for await (const entry of capability.walk("", {
191
+ symlinkPolicy: "skip",
192
+ entryFilter: async (entry) => {
193
+ if (
194
+ entry.kind === "directory" &&
195
+ await capability.exists(`${entry.relativePath}/SKILL.md`)
196
+ ) {
197
+ return "skip-subtree";
198
+ }
199
+ return "include";
200
+ },
201
+ })) {
202
+ consume(entry);
203
+ }
204
+ ```
205
+
206
+ Filters run serially outside metadata batches and retain the supplied options
207
+ object as their `this` receiver. When an awaited filter resolves, the walk
208
+ checks cancellation and revalidates the current listing directory and Root
209
+ identities before using the decision. These checks do not refresh the entry's
210
+ captured metadata or pin a later operation.
211
+
212
+ Cancellation and iterator disposal wait for a pending filter to settle. The
213
+ walk does not race the callback against the abort signal or close its directory
214
+ while the callback is running; callbacks must settle their own work for
215
+ cancellation to finish. Callback throws and promise rejections reject the walk
216
+ through its normal cleanup path, even with `onDirectoryError: "skip-and-report"`.
217
+
150
218
  `onDirectoryError` defaults to `"throw"`, preserving the original fail-fast
151
219
  contract. `"skip-and-report"` yields a discriminated
152
220
  `{ kind: "directory-error", relativePath, size: 0, error }` marker for a
153
221
  directory that cannot be resolved or listed, then continues with its siblings.
222
+ This policy also applies when the directory or Root identity recheck after an
223
+ awaited filter fails; callback failures themselves are not directory errors.
154
224
  Every examined directory entry consumes `maxEntries` before filtering, so
155
225
  `"skip"` cannot turn the iterator into an unbounded traversal. Reporting and
156
226
  `"truncated"` markers describe already-reached state and do not authorize
@@ -161,6 +231,9 @@ its exact identity, and rechecks it and the Root identity around each metadata
161
231
  batch or individual filesystem-order observation. Sorted batches contain no
162
232
  await or caller code between their before/after checks. It tracks canonical
163
233
  directories to stop symlink cycles.
234
+ Directory rechecks retain exact identities while using ordinary numeric metadata
235
+ when it represents those identities without rounding. Large identities and
236
+ Windows unknown-identity retries keep the bigint inspection path.
164
237
  Neither mode holds a descriptor for every path component, so it is not a process sandbox against a hostile peer that
165
238
  can continuously swap and restore directories. Each individual lookup retains
166
239
  the documented Node `Root` boundary checks.