@openclaw/feishu 2026.10.1-beta.2 → 2026.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.setup/{channel-CX62T71S.mjs → channel-DoRSlOQd.mjs} +7 -7
- package/dist/.setup/{channel.runtime-COiaq-Rv.mjs → channel.runtime-jLSFNkJh.mjs} +6 -6
- package/dist/.setup/{chat-BdyvImsY.mjs → chat-mTBvMMvx.mjs} +2 -2
- package/dist/.setup/{client-BsBVWJzN.mjs → client-CcxmEkoy.mjs} +1 -1
- package/dist/.setup/{doctor-contract-B1B9ogdd.mjs → doctor-contract-DyOo8NvC.mjs} +15 -5
- package/dist/.setup/{monitor-7DvwUs4Y.mjs → monitor-DX3vAlY9.mjs} +3 -3
- package/dist/.setup/{monitor.account-7xVu7XWY.mjs → monitor.account-C_uDFPtG.mjs} +9 -9
- package/dist/.setup/{probe-B9o7iey6.mjs → probe-BjSykXB8.mjs} +2 -2
- package/dist/.setup/{reply-delivery-result-Bt-BWBEA.mjs → reply-delivery-result-laBNOmBu.mjs} +2 -2
- package/dist/.setup/{setup-api-DmzX9S01.mjs → setup-api-DTTsvzfC.mjs} +1 -1
- package/dist/.setup/{subagent-hooks-CUXg0pC-.mjs → subagent-hooks-C8Z_x3KJ.mjs} +1 -1
- package/dist/api.js +5 -5
- package/dist/channel-plugin-api.js +1 -1
- package/dist/doctor-contract-api.js +2 -2
- package/dist/setup-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- package/dist/subagent-hooks-api.js +1 -1
- package/node_modules/@openclaw/fs-safe/CHANGELOG.md +56 -0
- package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/advanced.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-entry.js +7 -3
- package/node_modules/@openclaw/fs-safe/dist/copy-root-file-sync.d.ts +35 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-root-file-sync.js +218 -0
- package/node_modules/@openclaw/fs-safe/dist/create.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/create.js +4 -1
- package/node_modules/@openclaw/fs-safe/dist/entry-publication.js +3 -1
- package/node_modules/@openclaw/fs-safe/dist/errors.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/errors.js +5 -0
- package/node_modules/@openclaw/fs-safe/dist/index.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/index.js +1 -1
- package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/native-move-fallback.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/native-move-fallback.js +54 -0
- package/node_modules/@openclaw/fs-safe/dist/native-noreplace.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/native-noreplace.js +55 -0
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +12 -2
- package/node_modules/@openclaw/fs-safe/dist/native-rename-outcome.js +3 -1
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +48 -5
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.js +17 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write.js +1 -1
- package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file-native.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file-native.js +35 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file.js +8 -2
- package/node_modules/@openclaw/fs-safe/dist/replace-directory.js +6 -5
- package/node_modules/@openclaw/fs-safe/dist/root-errors.js +25 -4
- package/node_modules/@openclaw/fs-safe/dist/root-impl.js +3 -3
- package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.d.ts +4 -2
- package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.js +13 -17
- package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +18 -3
- package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.js +4 -1
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.js +27 -4
- package/node_modules/@openclaw/fs-safe/docs/advanced.md +1 -0
- package/node_modules/@openclaw/fs-safe/docs/archive.md +2 -1
- package/node_modules/@openclaw/fs-safe/docs/copy.md +61 -1
- package/node_modules/@openclaw/fs-safe/docs/durability.md +50 -5
- package/node_modules/@openclaw/fs-safe/docs/errors.md +37 -0
- package/node_modules/@openclaw/fs-safe/docs/native-helper.md +5 -3
- package/node_modules/@openclaw/fs-safe/docs/native.md +39 -6
- package/node_modules/@openclaw/fs-safe/docs/public-api.md +3 -1
- package/node_modules/@openclaw/fs-safe/docs/staged-file.md +10 -3
- package/node_modules/@openclaw/fs-safe/docs/watch.md +3 -1
- package/node_modules/@openclaw/fs-safe/docs/writing.md +40 -11
- package/node_modules/@openclaw/fs-safe/package.json +11 -11
- package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
- package/package.json +5 -5
|
@@ -45,6 +45,11 @@ failures with messages such as `permission denied (EACCES)` or
|
|
|
45
45
|
code and `policy` category for compatibility, along with the original `cause`;
|
|
46
46
|
they do not expose native message text or paths. Already-classified `FsSafeError`
|
|
47
47
|
instances and missing-path errors keep their existing classification.
|
|
48
|
+
Disk-space diagnostics also survive combined publication and disposal failures,
|
|
49
|
+
including `SuppressedError` and `AggregateError`. They retain the original cause
|
|
50
|
+
graph and cleanup/publication receipts, without changing the compatibility code
|
|
51
|
+
or category. An uncertain native rename still reports indeterminate publication
|
|
52
|
+
and a preserved stage; `ENOSPC` does not prove that publication never happened.
|
|
48
53
|
|
|
49
54
|
Descriptor exhaustion during writes uses `helper-failed` / `operational` and
|
|
50
55
|
names `EMFILE` (process descriptor limit) or `ENFILE` (system descriptor limit)
|
|
@@ -254,3 +259,35 @@ Two reasons it isn't a richer hierarchy of subclasses:
|
|
|
254
259
|
- [Reading](reading.md) — read-path codes.
|
|
255
260
|
- [Writing](writing.md) — write-path codes.
|
|
256
261
|
- [Archive extraction](archive.md) — `ArchiveLimitError` and `ArchiveSecurityError`.
|
|
262
|
+
|
|
263
|
+
## Unsupported no-replace moves
|
|
264
|
+
|
|
265
|
+
`isNoReplaceUnsupported(error)` is exported from `@openclaw/fs-safe` and
|
|
266
|
+
`@openclaw/fs-safe/errors`. It recognizes a `helper-unavailable` `FsSafeError`
|
|
267
|
+
with `details.capability === "rename-noreplace"`. This includes strict native
|
|
268
|
+
publication refusals and a Root file move whose link fallback is also unavailable
|
|
269
|
+
(`details.fallback === "link-unlink"`, `details.fallbackCapability === "linkat"`).
|
|
270
|
+
It does not classify a missing native addon, unrelated permission errors, or
|
|
271
|
+
post-publication failures. Once no-replace rename has been rejected, a denied
|
|
272
|
+
or unsupported `linkat` fallback (`EPERM`, `EOPNOTSUPP`, `EMLINK`, `EXDEV`,
|
|
273
|
+
or `ENOSYS`) also fails with this classification. `EPERM` can reflect source
|
|
274
|
+
permissions or inode flags rather than a filesystem-wide lack of hard links;
|
|
275
|
+
the fallback is unavailable for this move. No link-capability cache is populated.
|
|
276
|
+
Consumers need not inspect internal native cause codes.
|
|
277
|
+
The classifier is diagnostic; it does not authorize a replacing retry.
|
|
278
|
+
|
|
279
|
+
When a Root file move's link/unlink fallback fails after creating the target,
|
|
280
|
+
`details.operation` is `"move"`, `details.fallback` is `"link-unlink"`, and
|
|
281
|
+
`details.publication` is `"published"` (the link was created, not a guarantee
|
|
282
|
+
that a concurrent actor has left it unchanged). `details.sourceRemoval` is:
|
|
283
|
+
|
|
284
|
+
| Value | Observation |
|
|
285
|
+
| --- | --- |
|
|
286
|
+
| `"not-attempted"` | Identity or link-pair verification failed; source unlink was refused (`path-mismatch`). |
|
|
287
|
+
| `"still-linked"` | Unlink failed and both original inode links were reverified (`helper-failed`). |
|
|
288
|
+
| `"unverified"` | Unlink failed and the current pair could not be verified (`helper-failed`). |
|
|
289
|
+
| `"removed"` | Source unlink succeeded but final target verification failed (`helper-failed`). |
|
|
290
|
+
|
|
291
|
+
The target is never deleted to roll back these failures. These are observations,
|
|
292
|
+
not locks; inspect the names and identities before recovery. Interrupted processes
|
|
293
|
+
can likewise leave both links, and default hardlink rejection remains enabled.
|
|
@@ -94,9 +94,11 @@ through the retained parents without another receipt, duplicate, reopen, or
|
|
|
94
94
|
macOS `F_GETPATH`; the documented final source-name substitution window remains
|
|
95
95
|
there. Deeper names retain guarded parent traversal.
|
|
96
96
|
|
|
97
|
-
No-clobber `Root.move()`
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
No-clobber `Root.move()` requires descriptor-relative parent admission. On Linux,
|
|
98
|
+
`auto` can use identity-checked link/unlink for files or plain descriptor-relative
|
|
99
|
+
rename for directories when `RENAME_NOREPLACE` is unsupported. Directory fallback
|
|
100
|
+
can replace an empty directory created concurrently; `require` stays strict.
|
|
101
|
+
See the [move contract](writing.md#fs-move-from-to-options) and the
|
|
100
102
|
[fallback contract](native.md#javascript-fallback-guarantees-and-delta).
|
|
101
103
|
|
|
102
104
|
Guarded JavaScript mutations can have out-of-root effects before a post-check
|
|
@@ -127,11 +127,44 @@ is the same documented containment class as the macOS and JavaScript paths;
|
|
|
127
127
|
applications requiring atomic beneath resolution must check the result or use
|
|
128
128
|
OS isolation. Rejection after a mutating open does not promise rollback.
|
|
129
129
|
|
|
130
|
-
Nested no-clobber `Root.move()`
|
|
131
|
-
`renameat2(RENAME_NOREPLACE)`.
|
|
132
|
-
|
|
133
|
-
the
|
|
134
|
-
|
|
130
|
+
Nested no-clobber `Root.move()` admits both parents and first uses
|
|
131
|
+
`renameat2(RENAME_NOREPLACE)`. Linux `auto` can fall back through those same
|
|
132
|
+
descriptors to identity-checked file link/unlink or directory `renameat`;
|
|
133
|
+
the directory fallback can replace an empty directory created concurrently.
|
|
134
|
+
See the [move contract](writing.md#fs-move-from-to-options) for identity windows
|
|
135
|
+
and partial-state receipts. `require` rejects an unsupported capability.
|
|
136
|
+
Turning native mode `off` still disables no-clobber moves.
|
|
137
|
+
|
|
138
|
+
For regular-file writes with no-clobber publication (including `Root.create()`
|
|
139
|
+
and archive file extraction), `auto` removes its identity-checked unpublished
|
|
140
|
+
stage and retries through the same guarded JavaScript path as native mode `off`
|
|
141
|
+
when Linux rejects `RENAME_NOREPLACE` with `EINVAL`, `ENOSYS`, or unsupported-operation
|
|
142
|
+
errno. This is a definite non-publication, not an uncertain remote rename.
|
|
143
|
+
Completed streams are replayed from the retained stage descriptor, without
|
|
144
|
+
calling their producer again. Unsupported capability is cached by the retained
|
|
145
|
+
parent's exact device number in a process-local cache bounded to 128 devices.
|
|
146
|
+
Only distinct sibling publication/quarantine/move failures populate that cache; generic
|
|
147
|
+
cross-parent moves can also reject directory ancestry after a source swap.
|
|
148
|
+
Other devices and replacement writes retain their native route. `require`
|
|
149
|
+
cleans the stage and reports `helper-unavailable`, naming the operation and
|
|
150
|
+
`renameat2 RENAME_NOREPLACE`. Failed cleanup prevents retry.
|
|
151
|
+
Copies explicitly requiring `clone: "always"` also fail closed: the JavaScript
|
|
152
|
+
byte-copy path cannot satisfy that requirement.
|
|
153
|
+
|
|
154
|
+
Private producer workspace promotion likewise uses its existing guarded
|
|
155
|
+
JavaScript handoff in `auto`, preserving the completed producer output.
|
|
156
|
+
Explicit native-only staged, retained-entry, symlink and directory-replacement
|
|
157
|
+
contracts fail closed with the same capability
|
|
158
|
+
diagnostic. Compatible temp-workspace cleanup can use its existing guarded
|
|
159
|
+
JavaScript quarantine/removal path; `require-bounded` and native `require` refuse
|
|
160
|
+
that downgrade. These publication/cleanup owners keep their own recovery
|
|
161
|
+
contracts. Regular-file `publishFileExclusive` with `rename-noreplace` also opts
|
|
162
|
+
into the retained-parent file-move fallback in Linux `auto`, reporting
|
|
163
|
+
`fallback: "link-unlink"`; `require` still refuses. This fallback is not
|
|
164
|
+
crash-atomic: see [publication strategies](durability.md#strategies) and partial
|
|
165
|
+
failure receipts. The standalone
|
|
166
|
+
`movePathWithCopyFallback()` uses guarded replacing rename and its existing
|
|
167
|
+
cross-device copy policy, so unsupported no-replace flags do not affect it.
|
|
135
168
|
|
|
136
169
|
Bounded owned-tree cleanup deliberately has no `openat` fallback:
|
|
137
170
|
`RESOLVE_NO_XDEV` rejects bind mounts even when device numbers match, which
|
|
@@ -311,7 +344,7 @@ See [Root containment guarantees](security-model.md#containment-guarantees-by-pl
|
|
|
311
344
|
| ZIP/TAR/gzip | Rust streaming decode and fd-relative output creation. | Optional JSZip or bundled WASM TAR into guarded private staging, then the same guarded merge policy. |
|
|
312
345
|
| Zstd/bzip2 TAR | Rust streaming decode and fd-relative output creation. | Bundled WASM codecs feed the shared Rust TAR parser, then guarded private staging and the same merge policy; no optional codec dependency. |
|
|
313
346
|
| Publication copy | Clone, Linux `copy_file_range`, async native SHA-256. | Exclusive `wx` byte loop and Node SHA-256 with the same content/identity fences. |
|
|
314
|
-
| `rename-noreplace` | Atomic platform no-replace rename. | Unsupported; no emulation by check-then-rename. |
|
|
347
|
+
| `rename-noreplace` | Atomic platform no-replace rename; Linux `auto` file publication can use identity-checked, non-crash-atomic link/unlink when unsupported. | Unsupported; no emulation by check-then-rename. |
|
|
315
348
|
| Windows DACL read | Direct `GetSecurityInfo`; the public facts API exposes ordered basic allow/deny ACE SIDs, masks, and decoded flags without trust policy. Secure-file reads query the borrowed open descriptor and compare its 32-bit volume serial and 64-bit file-index projection with Node's bigint receipt. | The packaged PowerShell/C# bridge preserves raw facts and inspects the borrowed descriptor for secure reads, with the same Node identity comparison; its command failures reject. Structured .NET pathname reporting retains its separate compatibility query. |
|
|
316
349
|
| Windows private directory | Creation-time protected DACL. | The packaged PowerShell/C# bridge applies the protected DACL at creation and retains exact handles through identity validation and failure cleanup. Command failures reject. |
|
|
317
350
|
|
|
@@ -24,7 +24,9 @@ The handle resolver verifies exact descriptor and pathname identities, with one
|
|
|
24
24
|
bounded retry for unknown Windows observations. It borrows the handle without
|
|
25
25
|
reading, reopening, closing it, or changing its cursor.
|
|
26
26
|
|
|
27
|
-
The error helpers are `categorizeFsSafeError` and
|
|
27
|
+
The error helpers are `categorizeFsSafeError`, `isNoReplaceUnsupported`, and
|
|
28
|
+
`FsSafeErrorDetails`. The no-replace classifier recognizes the documented
|
|
29
|
+
capability refusal without matching internal cause codes.
|
|
28
30
|
|
|
29
31
|
## `path` and `advanced`
|
|
30
32
|
|
|
@@ -114,10 +114,17 @@ drive-relative spellings, and the stage's own name are rejected.
|
|
|
114
114
|
With `overwrite: false`, publication is genuine kernel no-replace rename.
|
|
115
115
|
A native collision raises `FsSafeError("already-exists")`, but ordinary errno
|
|
116
116
|
does not prove that a remote rename never committed. Native rename failures
|
|
117
|
-
without explicit
|
|
117
|
+
without explicit non-publication provenance therefore report `indeterminate`:
|
|
118
118
|
cleanup preserves names and closes descriptors, and further publication rejects.
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
Rejection before rename dispatch, or an unsupported no-replace capability,
|
|
120
|
+
leaves the stage eligible for identity-checked cleanup. Linux `EINVAL` for the
|
|
121
|
+
fixed `RENAME_NOREPLACE` flag on a regular file renamed to a distinct sibling,
|
|
122
|
+
`ENOSYS`, and unsupported-operation errno prove that nothing was published
|
|
123
|
+
([rename(2)](https://man7.org/linux/man-pages/man2/rename.2.html),
|
|
124
|
+
[VFS rename contract](https://www.kernel.org/doc/html/latest/filesystems/vfs.html)).
|
|
125
|
+
This native-only API reports `helper-unavailable` with the capability name;
|
|
126
|
+
it does not retry through JavaScript. `Root.create()` in native `auto` mode owns
|
|
127
|
+
that separate compatibility retry. With
|
|
121
128
|
`overwrite: true`, publication is plain atomic replacement. Neither route
|
|
122
129
|
copies. Both source and destination resolve through the retained original
|
|
123
130
|
parent, with checks immediately before rename and after publication.
|
|
@@ -131,7 +131,9 @@ and, when present, the entry itself. Parent activity requests a guarded scan
|
|
|
131
131
|
without supplying filenames. The entry descriptor covers content and attribute
|
|
132
132
|
changes and is replaced when a guarded scan admits a new identity. Missing paths
|
|
133
133
|
use their nearest admitted ancestor. Descriptors are opened without following
|
|
134
|
-
symlinks; a symlink entry uses `O_SYMLINK` to observe the link itself.
|
|
134
|
+
symlinks; a symlink entry uses `O_SYMLINK` to observe the link itself. All
|
|
135
|
+
non-directory entries are opened nonblocking so a FIFO cannot stall the shared
|
|
136
|
+
watch hub. Every
|
|
135
137
|
descriptor's device/inode must match the guarded observation. There are at most
|
|
136
138
|
two retained descriptors per entry scope (128 scopes maximum), counted in health
|
|
137
139
|
`directories`; descriptor exhaustion fails registration with `EMFILE`. Removal
|
|
@@ -367,6 +367,11 @@ For high-volume logging, consider [`openWritable`](#openwritable-for-streaming)
|
|
|
367
367
|
|
|
368
368
|
### `fs.copyIn(rel, sourceAbsPath, options?)`
|
|
369
369
|
|
|
370
|
+
Synchronous module hooks can use [`copyRootFileSync`](copy.md#synchronous-guarded-file-copies)
|
|
371
|
+
from `@openclaw/fs-safe/advanced` to create an absent destination and retain its
|
|
372
|
+
descriptor for hashing. Root itself remains asynchronous.
|
|
373
|
+
|
|
374
|
+
|
|
370
375
|
`copyIn` accepts a `RootCopySource`: a trusted absolute source path or a file
|
|
371
376
|
within another Root. The guarded form supplies `root` with only its `open` and
|
|
372
377
|
`stat` read capabilities, plus `relativePath`:
|
|
@@ -416,8 +421,11 @@ default to `"auto"`:
|
|
|
416
421
|
| `auto` | Try native file cloning, then copy offload or ordinary byte copying when cloning is unavailable. |
|
|
417
422
|
| `always` | Require native cloning; fail when the binding or filesystem cannot provide it. |
|
|
418
423
|
|
|
419
|
-
Native file cloning supports APFS and supported Linux filesystems.
|
|
420
|
-
|
|
424
|
+
Native file cloning supports APFS and supported Linux filesystems. On Linux, a
|
|
425
|
+
`FICLONE` request denied with `EPERM`, as container seccomp profiles commonly
|
|
426
|
+
do, counts as unavailable cloning: `auto` copies bytes and `always` fails with
|
|
427
|
+
`unsupported-platform`. Windows currently uses byte copying for `never` and
|
|
428
|
+
`auto`; `always` fails. Clone choice
|
|
421
429
|
does not change modes, durability, root confinement, or source and publication
|
|
422
430
|
identity checks. The shared strategy does not replace Root's guarded regular-file
|
|
423
431
|
contract with `copyTree`'s caller-owned immutable-tree and metadata contract.
|
|
@@ -460,17 +468,38 @@ Mutation policy is captured at call start; changes to caller-owned denial arrays
|
|
|
460
468
|
apply to later moves. For live cancellation or revocation, throw from
|
|
461
469
|
`assertBeforeMutation` immediately before dispatch.
|
|
462
470
|
|
|
463
|
-
The default no-clobber mode
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
+
The default no-clobber mode supports regular files and directories and requires
|
|
472
|
+
the native helper. It admits both parent directory descriptors and first uses
|
|
473
|
+
descriptor-relative no-replace rename. If the helper or safe parent admission
|
|
474
|
+
is unavailable, the call fails with `helper-unavailable`. After dispatch it
|
|
475
|
+
rechecks both parent identities; rejection does not imply rollback.
|
|
476
|
+
|
|
477
|
+
On Linux filesystems that reject `renameat2(RENAME_NOREPLACE)`, `auto` uses the
|
|
478
|
+
same retained parents and rechecks the source identity before falling back:
|
|
479
|
+
|
|
480
|
+
- Regular files use `linkat` without following symlinks, verify the exact
|
|
481
|
+
source/target inode pair with two links, then recheck the source before
|
|
482
|
+
`unlinkat`. Existing targets cannot be overwritten. Only this intermediate
|
|
483
|
+
pair permits two links; admission and completed publication require one.
|
|
484
|
+
Denied or unsupported hard links fail closed, naming both capabilities.
|
|
485
|
+
- Directories recheck that the target is absent and use plain `renameat`.
|
|
486
|
+
A concurrent non-empty directory or non-directory target rejects as
|
|
487
|
+
`already-exists`. **A concurrently created empty directory can be replaced.**
|
|
488
|
+
A trailing slash on the direct-child source requires a directory at syscall
|
|
489
|
+
time, even after a file or symlink substitution. Source identity checks and
|
|
490
|
+
rename/unlink are separate syscalls,
|
|
491
|
+
not source-name compare-and-swap; use exclusive namespace ownership or OS
|
|
492
|
+
isolation against hostile actors in the final check-to-syscall window.
|
|
493
|
+
|
|
494
|
+
`require` does not take these fallbacks. Use
|
|
495
|
+
[`isNoReplaceUnsupported(error)`](errors.md#unsupported-no-replace-moves) to
|
|
496
|
+
classify the capability refusal. File fallback failures after link publication
|
|
497
|
+
leave the target intact and report `details.publication: "published"` plus
|
|
498
|
+
`details.sourceRemoval`; callers must inspect that partial state before retrying.
|
|
499
|
+
There is no automatic rollback or crash-durability guarantee.
|
|
471
500
|
|
|
472
501
|
Linux without `openat2` uses the [guarded native parent walk](native.md#linux-without-openat2).
|
|
473
|
-
The move
|
|
502
|
+
The move uses `renameat2(RENAME_NOREPLACE)` or the Linux auto fallbacks above;
|
|
474
503
|
parent resolution reports the documented `best-effort` containment class.
|
|
475
504
|
Disabling the addon still makes no-clobber moves unavailable.
|
|
476
505
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/fs-safe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.2",
|
|
4
4
|
"description": "Capability-style filesystem roots for Node.js apps that handle untrusted relative paths.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"filesystem",
|
|
@@ -173,20 +173,20 @@
|
|
|
173
173
|
"archive:producer-smoke": "node scripts/archive-producer-smoke.mjs"
|
|
174
174
|
},
|
|
175
175
|
"optionalDependencies": {
|
|
176
|
-
"@openclaw/fs-safe-darwin-arm64": "0.
|
|
177
|
-
"@openclaw/fs-safe-darwin-x64": "0.
|
|
178
|
-
"@openclaw/fs-safe-linux-arm64-gnu": "0.
|
|
179
|
-
"@openclaw/fs-safe-linux-arm64-musl": "0.
|
|
180
|
-
"@openclaw/fs-safe-linux-x64-gnu": "0.
|
|
181
|
-
"@openclaw/fs-safe-linux-x64-musl": "0.
|
|
182
|
-
"@openclaw/fs-safe-win32-x64-msvc": "0.
|
|
176
|
+
"@openclaw/fs-safe-darwin-arm64": "0.24.2",
|
|
177
|
+
"@openclaw/fs-safe-darwin-x64": "0.24.2",
|
|
178
|
+
"@openclaw/fs-safe-linux-arm64-gnu": "0.24.2",
|
|
179
|
+
"@openclaw/fs-safe-linux-arm64-musl": "0.24.2",
|
|
180
|
+
"@openclaw/fs-safe-linux-x64-gnu": "0.24.2",
|
|
181
|
+
"@openclaw/fs-safe-linux-x64-musl": "0.24.2",
|
|
182
|
+
"@openclaw/fs-safe-win32-x64-msvc": "0.24.2",
|
|
183
183
|
"jszip": "^3.10.2"
|
|
184
184
|
},
|
|
185
185
|
"devDependencies": {
|
|
186
186
|
"@emnapi/runtime": "2.0.0-alpha.5",
|
|
187
|
-
"@napi-rs/cli": "3.10.
|
|
187
|
+
"@napi-rs/cli": "3.10.6",
|
|
188
188
|
"@types/node": "^26.6.1",
|
|
189
|
-
"@vitest/coverage-v8": "5.0.
|
|
189
|
+
"@vitest/coverage-v8": "5.0.3",
|
|
190
190
|
"fast-check": "^4.10.1",
|
|
191
191
|
"istanbul-lib-coverage": "3.2.2",
|
|
192
192
|
"istanbul-lib-report": "3.0.1",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"sigstore": "5.0.0",
|
|
195
195
|
"tar": "7.5.22",
|
|
196
196
|
"typescript": "^7.0.2",
|
|
197
|
-
"vite": "8.3.
|
|
197
|
+
"vite": "8.3.2",
|
|
198
198
|
"vitest": "^5.0.1"
|
|
199
199
|
},
|
|
200
200
|
"engines": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/feishu",
|
|
3
|
-
"version": "2026.10.1
|
|
3
|
+
"version": "2026.10.1",
|
|
4
4
|
"description": "OpenClaw Feishu/Lark channel plugin for chats and workplace tools (community maintained by @m1heng).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@larksuiteoapi/node-sdk": "1.74.0",
|
|
12
|
-
"@openclaw/fs-safe": "0.
|
|
12
|
+
"@openclaw/fs-safe": "0.24.2",
|
|
13
13
|
"mdast-util-from-markdown": "2.0.3",
|
|
14
14
|
"mdast-util-gfm-table": "2.0.0",
|
|
15
15
|
"micromark-extension-gfm-table": "2.1.2",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"zod": "4.6.5"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"openclaw": ">=2026.10.1
|
|
20
|
+
"openclaw": ">=2026.10.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependenciesMeta": {
|
|
23
23
|
"openclaw": {
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"minHostVersion": ">=2026.5.29"
|
|
65
65
|
},
|
|
66
66
|
"compat": {
|
|
67
|
-
"pluginApi": ">=2026.10.1
|
|
67
|
+
"pluginApi": ">=2026.10.1"
|
|
68
68
|
},
|
|
69
69
|
"build": {
|
|
70
70
|
"bundledDist": false,
|
|
71
|
-
"openclawVersion": "2026.10.1
|
|
71
|
+
"openclawVersion": "2026.10.1"
|
|
72
72
|
},
|
|
73
73
|
"release": {
|
|
74
74
|
"publishToClawHub": true,
|