@openclaw/matrix 2026.11.6 → 2026.11.8
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/{approval-handler.runtime-CshxBDs7.mjs → approval-handler.runtime-CKiMSdnX.mjs} +3 -3
- package/dist/.setup/{channel-OLndtGNE.mjs → channel-CZJeLUuu.mjs} +8 -8
- package/dist/.setup/{channel.runtime-CFSou_MS.mjs → channel.runtime-hpiGNile.mjs} +5 -5
- package/dist/.setup/{channel.setup-CqcEb6JR.mjs → channel.setup-Dc4G7kdF.mjs} +6 -2
- package/dist/.setup/{cli-CkMedN4Y.mjs → cli-DnLr6VVE.mjs} +8 -8
- package/dist/.setup/{cli-doctor-BVstkgJE.mjs → cli-doctor-DRM-8rZg.mjs} +1 -1
- package/dist/.setup/{cli-metadata-DN1E7yCf.mjs → cli-metadata-C9wZ_TOY.mjs} +1 -1
- package/dist/.setup/{client-Bk_tBqNp.mjs → client-CnPiPhTg.mjs} +4 -4
- package/dist/.setup/{client-Rlwtz1hG.mjs → client-CsgjDjyA.mjs} +2 -2
- package/dist/.setup/{client-bootstrap-Bhhri97J.mjs → client-bootstrap-CRN75TtW.mjs} +1 -1
- package/dist/.setup/{create-client-CzUtZgYF.mjs → create-client-C5bd0RUQ.mjs} +4 -4
- package/dist/.setup/{credentials-kT20jk_u.mjs → credentials-Byq2Kcqg.mjs} +1 -1
- package/dist/.setup/{crypto-runtime-BI9Pc344.mjs → crypto-runtime-EdW32JgS.mjs} +2 -2
- package/dist/.setup/{crypto-state-store-BZLlwkv_.mjs → crypto-state-store-m13QToc7.mjs} +2 -1
- package/dist/.setup/{crypto-store-ownership-CiQ1l_O7.mjs → crypto-store-ownership-CVeppnSH.mjs} +1 -1
- package/dist/.setup/{crypto-unsafe-state-doctor-CmF1X1dZ.mjs → crypto-unsafe-state-doctor-C_vhqxOm.mjs} +3 -3
- package/dist/.setup/{directory-live-DmkH9hcp.mjs → directory-live-Brv_PC6z.mjs} +1 -1
- package/dist/.setup/{draft-stream-DbTsJkoL.mjs → draft-stream-BAf9CYmE.mjs} +1 -1
- package/dist/.setup/{exec-approvals-CiGrN-cV.mjs → exec-approvals-ClD4sAHY.mjs} +2 -2
- package/dist/.setup/{file-sync-store-BpS12yaK.mjs → file-sync-store-Dilb8bVT.mjs} +2 -2
- package/dist/.setup/{idb-persistence-BTOsltD9.mjs → idb-persistence-COLTtrm_.mjs} +2 -2
- package/dist/.setup/{messages-DJDczJnC.mjs → messages-zsGFORuZ.mjs} +2 -2
- package/dist/.setup/{monitor-ZDbuZRVB.mjs → monitor-CdT6CsWk.mjs} +32 -18
- package/dist/.setup/{onboarding-DwhMV1fp.mjs → onboarding-FJiJ-X6s.mjs} +3 -3
- package/dist/.setup/{outbound-7iSmOloX.mjs → outbound-yjH1XHCr.mjs} +2 -2
- package/dist/.setup/{profile-update-Fu4u-aSC.mjs → profile-update-uRiRQTtX.mjs} +9 -4
- package/dist/.setup/{reaction-events-CBltCP52.mjs → reaction-events-DYJrx8eq.mjs} +3 -3
- package/dist/.setup/{resolve-targets-CWW9zTYp.mjs → resolve-targets-DwRQnBpN.mjs} +1 -1
- package/dist/.setup/{retired-state-JGUEBE72.mjs → retired-state-DohpBmxW.mjs} +1 -37
- package/dist/.setup/{room-info-DFDDmkBC.mjs → room-info-B6-Yo6I5.mjs} +3 -3
- package/dist/.setup/{sdk-ByFgA6Il.mjs → sdk-CPgBCtd2.mjs} +5 -5
- package/dist/.setup/{send-DiS4anyi.mjs → send-CCT72yQb.mjs} +7 -7
- package/dist/.setup/{setup-bootstrap-OfuocnF0.mjs → setup-bootstrap-CB0idLzk.mjs} +2 -2
- package/dist/.setup/{setup-core-CEQJRnym.mjs → setup-core-5sswwYZt.mjs} +1 -1
- package/dist/.setup/setup-plugin-api-BU7RNSl9.mjs +2 -0
- package/dist/.setup/sqlite-state-7WEloajv.mjs +37 -0
- package/dist/.setup/{startup-verification-UkaoSldm.mjs → startup-verification-zrBugJBv.mjs} +3 -2
- package/dist/.setup/{storage-C3N6YZIn.mjs → storage-BjNHtYwT.mjs} +4 -3
- package/dist/.setup/{sync-cache-state-BKVaKRzQ.mjs → sync-cache-state-CovS1oSw.mjs} +2 -1
- package/dist/.setup/{thread-bindings-BvoisBZE.mjs → thread-bindings-DZvpe83d.mjs} +4 -3
- package/dist/.setup/{tool-actions-TYBYDIkj.mjs → tool-actions-Dd8WTKXA.mjs} +10 -10
- package/dist/.setup/{verification-BhFA9xF6.mjs → verification-BKVxSiIq.mjs} +1 -1
- package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
- package/dist/api.js +4 -4
- package/dist/channel-plugin-api.js +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/contract-api.js +2 -2
- package/dist/doctor-contract-api.js +6 -5
- package/dist/index.js +1 -1
- package/dist/plugin-entry.handlers.runtime.js +2 -2
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/node_modules/@openclaw/fs-safe/CHANGELOG.md +45 -1
- package/node_modules/@openclaw/fs-safe/README.md +4 -0
- package/node_modules/@openclaw/fs-safe/dist/absolute-path.js +2 -2
- package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +2 -2
- package/node_modules/@openclaw/fs-safe/dist/advanced.js +2 -2
- package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
- package/node_modules/@openclaw/fs-safe/dist/atomic-io.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/atomic-io.js +6 -0
- package/node_modules/@openclaw/fs-safe/dist/atomic.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.js +13 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-mode-options.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-mode-options.js +6 -0
- package/node_modules/@openclaw/fs-safe/dist/errors.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/errors.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.d.ts +0 -1
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.js +1 -11
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +3 -3
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +2 -3
- package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.d.ts +3 -3
- package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.js +30 -4
- package/node_modules/@openclaw/fs-safe/dist/file-store-prune.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/file-store-prune.js +7 -1
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.js +30 -4
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +2 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/file-store.js +5 -0
- package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.js +9 -0
- package/node_modules/@openclaw/fs-safe/dist/json-store.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +4 -1
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +1 -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 +19 -13
- package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.js +27 -5
- package/node_modules/@openclaw/fs-safe/dist/path-prefix.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/path-prefix.js +84 -7
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.js +0 -11
- package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.js +61 -0
- package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +2 -1
- package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/realpath.js +16 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +8 -6
- package/node_modules/@openclaw/fs-safe/dist/replace-file-types.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/replace-file.js +20 -13
- package/node_modules/@openclaw/fs-safe/dist/root-context.js +4 -1
- package/node_modules/@openclaw/fs-safe/dist/root-create-native.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/root-create-native.js +18 -9
- package/node_modules/@openclaw/fs-safe/dist/root-errors.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/root-errors.js +9 -0
- package/node_modules/@openclaw/fs-safe/dist/root-impl.js +4 -1
- package/node_modules/@openclaw/fs-safe/dist/root-mkdir-native.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/root-mkdir-native.js +35 -16
- package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +6 -2
- package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +32 -20
- package/node_modules/@openclaw/fs-safe/dist/root-path.js +32 -26
- package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +4 -1
- package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/secret-file.js +2 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +5 -4
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.d.ts +3 -2
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.js +8 -9
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.js +3 -1
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/types.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +12 -3
- package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
- package/node_modules/@openclaw/fs-safe/dist/write-file-handle.d.ts +0 -1
- package/node_modules/@openclaw/fs-safe/dist/write-file-handle.js +10 -12
- package/node_modules/@openclaw/fs-safe/docs/advanced.md +3 -3
- package/node_modules/@openclaw/fs-safe/docs/atomic.md +16 -3
- package/node_modules/@openclaw/fs-safe/docs/compiler-qualification.md +1 -1
- package/node_modules/@openclaw/fs-safe/docs/contributing.md +27 -18
- package/node_modules/@openclaw/fs-safe/docs/errors.md +3 -1
- package/node_modules/@openclaw/fs-safe/docs/file-store.md +14 -2
- package/node_modules/@openclaw/fs-safe/docs/in-place-write.md +31 -0
- package/node_modules/@openclaw/fs-safe/docs/install.md +1 -1
- package/node_modules/@openclaw/fs-safe/docs/json-store.md +6 -1
- package/node_modules/@openclaw/fs-safe/docs/json.md +5 -1
- package/node_modules/@openclaw/fs-safe/docs/path-prefix.md +14 -4
- package/node_modules/@openclaw/fs-safe/docs/public-api.md +4 -2
- package/node_modules/@openclaw/fs-safe/docs/secret-file.md +5 -1
- package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +4 -0
- package/node_modules/@openclaw/fs-safe/docs/temp.md +9 -1
- package/node_modules/@openclaw/fs-safe/docs/types.md +5 -1
- package/node_modules/@openclaw/fs-safe/package.json +12 -12
- package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-freebsd-arm64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-freebsd-arm64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-freebsd-x64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-freebsd-x64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
- package/package.json +5 -5
- package/dist/.setup/setup-plugin-api-4hHy1k4x.mjs +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Resolving an existing path prefix
|
|
2
2
|
|
|
3
|
-
`resolvePathPrefixSync()`
|
|
3
|
+
`resolvePathPrefix()` and `resolvePathPrefixSync()` follow filesystem path components until the first
|
|
4
4
|
missing entry. It returns a canonical existing prefix and the unprocessed
|
|
5
5
|
suffix separately, including dangling symlink targets.
|
|
6
6
|
|
|
7
7
|
```ts
|
|
8
|
-
import {
|
|
8
|
+
import { resolvePathPrefix, type ResolvedPathPrefix } from "@openclaw/fs-safe/advanced";
|
|
9
9
|
|
|
10
|
-
const observed: ResolvedPathPrefix =
|
|
10
|
+
const observed: ResolvedPathPrefix = await resolvePathPrefix("/srv/data/future/file.json");
|
|
11
11
|
// When /srv/data exists but future does not:
|
|
12
12
|
// observed.existingPath is the canonical spelling of /srv/data.
|
|
13
13
|
// observed.unresolvedSegments is ["future", "file.json"].
|
|
@@ -63,9 +63,19 @@ suffix for every component. The fixed small-queue bound limits repeated front
|
|
|
63
63
|
removal while retaining legacy shift-based consumption for shallow paths. This
|
|
64
64
|
asymptotic bound is not a platform performance result; performance acceptance
|
|
65
65
|
requires separate benchmark evidence. Callers should still apply their own
|
|
66
|
-
input-size limits:
|
|
66
|
+
input-size limits: both helpers retain the raw suffix and
|
|
67
67
|
performs filesystem work for each non-empty existing component.
|
|
68
68
|
|
|
69
|
+
The async form uses asynchronous component `lstat` and `readlink`, and native
|
|
70
|
+
Node `realpath`. On Node POSIX, fully existing paths use a kernel `lstat` traversal
|
|
71
|
+
and canonicalization without separately inspecting each ancestor. A final symlink
|
|
72
|
+
also checks target search permissions before canonicalization. For a clean missing path, it probes parents only until the nearest existing directory.
|
|
73
|
+
Raw dot/separator forms, dangling links, and uncertain failures fall through to the
|
|
74
|
+
component walker, retaining its missing-suffix and error contract. The synchronous form retains its existing contract. Bun POSIX
|
|
75
|
+
canonicalization and Windows AppContainer fallback still use fs-safe's
|
|
76
|
+
synchronous native-realpath owner to preserve its platform guarantees; these
|
|
77
|
+
fallbacks are not a promise of nonblocking filesystem work on those runtimes.
|
|
78
|
+
|
|
69
79
|
This is a read-only path observation. It neither pins files nor creates a root
|
|
70
80
|
boundary, authorizes access, or guarantees a consistent snapshot during
|
|
71
81
|
concurrent changes. Results can become stale immediately. Use a guarded Root
|
|
@@ -65,13 +65,15 @@ see [directory identity](directory-identity.md).
|
|
|
65
65
|
`overwriteFileHandle` and `OverwriteFileHandleOptions` provide in-place byte
|
|
66
66
|
replacement through a borrowed regular-file handle. Its once-only `beforeWrite`
|
|
67
67
|
callback admits the complete write and any required best-effort rollback after
|
|
68
|
-
prefix preparation.
|
|
68
|
+
prefix preparation. `overwriteFileHandleWithAuthority` instead awaits a required
|
|
69
|
+
authority preparer and runs its synchronous final assertion immediately before
|
|
70
|
+
mutation. See [in-place writes](in-place-write.md).
|
|
69
71
|
|
|
70
72
|
`probePathCaseInsensitiveSync` and `ProbePathCaseOptions` are advanced exports
|
|
71
73
|
for local ASCII-case observations. An unavailable answer remains `undefined`;
|
|
72
74
|
the caller selects any fallback. See [path case probing](path-case.md).
|
|
73
75
|
|
|
74
|
-
`resolvePathPrefixSync
|
|
76
|
+
`resolvePathPrefix`, `resolvePathPrefixSync`, and `ResolvedPathPrefix` separate a canonical existing
|
|
75
77
|
path prefix from its raw unresolved suffix after physical symlink traversal.
|
|
76
78
|
See [resolving path prefixes](path-prefix.md).
|
|
77
79
|
|
|
@@ -196,7 +196,7 @@ type WriteSecretFileParams = {
|
|
|
196
196
|
filePath: string; // absolute path; must be inside rootDir
|
|
197
197
|
content: string | Uint8Array;
|
|
198
198
|
mode?: number; // file mode for the new file (default PRIVATE_SECRET_FILE_MODE = 0o600)
|
|
199
|
-
dirMode?: number;
|
|
199
|
+
dirMode?: number | "preserve"; // numeric mode required; preserve is rejected (default 0o700)
|
|
200
200
|
durable?: boolean; // default true; false skips file and parent fsync
|
|
201
201
|
};
|
|
202
202
|
```
|
|
@@ -208,6 +208,10 @@ stores forward their durability policy here.
|
|
|
208
208
|
|
|
209
209
|
The full POSIX directory mode is asserted on each component along the path: `rootDir`, then any intermediate dirs, then the parent. Existing directories, including another creator's `EEXIST` winner, must already match `dirMode` exactly or the write fails with `insecure-permissions`; they are never chmod-repaired. An explicitly requested directory mode such as `0o2750` preserves its setgid bit. Audit and adjust existing secret directories yourself. The admitted directory guards are retained through traversal and the final writer/lock handoff; a fresh pathname lookup cannot silently authorize a replacement. The caller must still trust the selected root and its owners; matching permission bits alone do not establish that trust.
|
|
210
210
|
|
|
211
|
+
Both `writeSecretFileAtomic` and `createSecretFileAtomic` reject
|
|
212
|
+
`dirMode: "preserve"` with `FsSafeError("invalid-path")`. This keeps the explicit
|
|
213
|
+
private-directory mode assertion intact rather than accepting shared parents.
|
|
214
|
+
|
|
211
215
|
Directory admission and its retained guards use lossless bigint identities, including through private locks and native writes. On Windows, an unknown zero device or inode gets one reinspection that retains known components; a definite mismatch or persistent ambiguity fails with `path-mismatch` rather than authorizing a replacement.
|
|
212
216
|
|
|
213
217
|
Both mode options must resolve to integers between `0o0000` and `0o7777`; invalid values fail with `invalid-path` before directory creation or file publication. Windows validates the options but does not enforce POSIX permission bits.
|
|
@@ -330,6 +330,10 @@ target-leaf symlink. Non-Root acquisition retains its existing parent-creation
|
|
|
330
330
|
behavior.
|
|
331
331
|
|
|
332
332
|
An owner can finish releasing while another async acquirer inspects its record.
|
|
333
|
+
Default stale detection uses the admitted record's `createdAt` or captured
|
|
334
|
+
modification time, without looking up its pathname again after reading it.
|
|
335
|
+
Retiring that record therefore does not turn a fresh lock into a stale one or
|
|
336
|
+
authorize recovery of its successor.
|
|
333
337
|
Create-only Root writes do not open an existing record merely to inherit its
|
|
334
338
|
mode. Once a pathname sample and opened descriptor agree, a failed acquisition
|
|
335
339
|
snapshot can be discarded only when the original descriptor has exact identity,
|
|
@@ -323,7 +323,7 @@ Manage the lifetime with `try/finally` and inspect the cleanup result, as in the
|
|
|
323
323
|
type TempWorkspaceOptions = {
|
|
324
324
|
rootDir: string; // parent directory for workspaces
|
|
325
325
|
prefix: string; // dir prefix (sanitized)
|
|
326
|
-
dirMode?: number;
|
|
326
|
+
dirMode?: number | "preserve"; // new workspace mode; preserve means default 0o700
|
|
327
327
|
mode?: number; // file write mode; default 0o600
|
|
328
328
|
cleanupSafety?: "compatible" | "require-bounded"; // default compatible
|
|
329
329
|
};
|
|
@@ -561,6 +561,14 @@ still propagate; there is no pathname chmod fallback. Windows only passes the
|
|
|
561
561
|
directory mode to `mkdir`. Pass
|
|
562
562
|
`chmodDir: false` when an existing staging/output directory mode must be preserved.
|
|
563
563
|
|
|
564
|
+
Prefer `dirMode: "preserve"` to keep the existing parent verified without any
|
|
565
|
+
chmod and finalize every directory created by the operation at `0o700` on POSIX.
|
|
566
|
+
This explicit policy also applies with `chmodDir: false`. Concurrent mkdir
|
|
567
|
+
winners are verified as existing directories. Windows uses mkdir's default
|
|
568
|
+
handling. For `tempWorkspace`, `tempWorkspaceSync`, and their scoped wrappers,
|
|
569
|
+
`"preserve"` means the new workspace's default `0o700` mode; existing supplied
|
|
570
|
+
roots are already left untouched by these factories.
|
|
571
|
+
|
|
564
572
|
### `writeViaSiblingTempPath`
|
|
565
573
|
|
|
566
574
|
A higher-level convenience for callback-based producers. The callback writes to
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
The types most callers reach for. Shared data shapes are exported from `@openclaw/fs-safe/types`; method-specific option/result types live next to their subpath.
|
|
4
4
|
|
|
5
|
-
For atomic replacement, `ReplaceFileAtomicFileSystem` and `ReplaceFileAtomicSyncFileSystem` are exported from `@openclaw/fs-safe/atomic`. Async adapters use `chmod()` on the `FileHandle` returned by their required `open()` operation. The synchronous type adds optional `fchmodSync(fd, mode)`; custom sync adapters that explicitly request `mode` or `preserveExistingMode` must implement it. See [Atomic writes](atomic.md#test-injection).
|
|
5
|
+
For atomic replacement, `ReplaceFileAtomicFileSystem` and `ReplaceFileAtomicSyncFileSystem` are exported from `@openclaw/fs-safe/atomic`. Async adapters use `chmod()` on the `FileHandle` returned by their required `open()` operation. The synchronous type adds optional `fchmodSync(fd, mode)`; custom sync adapters that explicitly request `mode`, numeric `dirMode`, or `preserveExistingMode` must implement it. `dirMode: "preserve"` requires it when creating directories. See [Atomic writes](atomic.md#test-injection).
|
|
6
|
+
|
|
7
|
+
`DirectoryMode = number | "preserve"` is exported from `/types` and `/atomic`.
|
|
8
|
+
Each accepting API documents whether preservation applies to existing parents
|
|
9
|
+
or is a creation-default alias. Private secret/store APIs reject `"preserve"`.
|
|
6
10
|
|
|
7
11
|
`ReplaceFileAtomicDestinationState` is also exported from that subpath. It is a
|
|
8
12
|
readonly union of `{ state: "removed", path }` and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/fs-safe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"description": "Capability-style filesystem roots for Node.js apps that handle untrusted relative paths.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"filesystem",
|
|
@@ -180,16 +180,16 @@
|
|
|
180
180
|
"archive:producer-smoke": "node scripts/archive-producer-smoke.mjs"
|
|
181
181
|
},
|
|
182
182
|
"optionalDependencies": {
|
|
183
|
-
"@openclaw/fs-safe-darwin-arm64": "0.
|
|
184
|
-
"@openclaw/fs-safe-darwin-x64": "0.
|
|
185
|
-
"@openclaw/fs-safe-freebsd-arm64": "0.
|
|
186
|
-
"@openclaw/fs-safe-freebsd-x64": "0.
|
|
187
|
-
"@openclaw/fs-safe-linux-arm64-gnu": "0.
|
|
188
|
-
"@openclaw/fs-safe-linux-arm64-musl": "0.
|
|
189
|
-
"@openclaw/fs-safe-linux-x64-gnu": "0.
|
|
190
|
-
"@openclaw/fs-safe-linux-x64-musl": "0.
|
|
191
|
-
"@openclaw/fs-safe-win32-arm64-msvc": "0.
|
|
192
|
-
"@openclaw/fs-safe-win32-x64-msvc": "0.
|
|
183
|
+
"@openclaw/fs-safe-darwin-arm64": "0.27.1",
|
|
184
|
+
"@openclaw/fs-safe-darwin-x64": "0.27.1",
|
|
185
|
+
"@openclaw/fs-safe-freebsd-arm64": "0.27.1",
|
|
186
|
+
"@openclaw/fs-safe-freebsd-x64": "0.27.1",
|
|
187
|
+
"@openclaw/fs-safe-linux-arm64-gnu": "0.27.1",
|
|
188
|
+
"@openclaw/fs-safe-linux-arm64-musl": "0.27.1",
|
|
189
|
+
"@openclaw/fs-safe-linux-x64-gnu": "0.27.1",
|
|
190
|
+
"@openclaw/fs-safe-linux-x64-musl": "0.27.1",
|
|
191
|
+
"@openclaw/fs-safe-win32-arm64-msvc": "0.27.1",
|
|
192
|
+
"@openclaw/fs-safe-win32-x64-msvc": "0.27.1",
|
|
193
193
|
"jszip": "^3.10.2"
|
|
194
194
|
},
|
|
195
195
|
"devDependencies": {
|
|
@@ -211,5 +211,5 @@
|
|
|
211
211
|
"engines": {
|
|
212
212
|
"node": ">=22"
|
|
213
213
|
},
|
|
214
|
-
"packageManager": "pnpm@12.
|
|
214
|
+
"packageManager": "pnpm@12.15.0"
|
|
215
215
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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/matrix",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.8",
|
|
4
4
|
"description": "OpenClaw Matrix channel plugin for rooms and direct messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@matrix-org/matrix-sdk-crypto-nodejs": "0.6.6",
|
|
12
12
|
"@matrix-org/matrix-sdk-crypto-wasm": "18.9.0",
|
|
13
|
-
"@openclaw/fs-safe": "0.
|
|
13
|
+
"@openclaw/fs-safe": "0.27.1",
|
|
14
14
|
"fake-indexeddb": "6.2.6",
|
|
15
15
|
"markdown-it": "15.0.3",
|
|
16
16
|
"matrix-js-sdk": "43.0.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"zod": "4.6.7"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"openclaw": ">=2026.11.
|
|
22
|
+
"openclaw": ">=2026.11.8"
|
|
23
23
|
},
|
|
24
24
|
"peerDependenciesMeta": {
|
|
25
25
|
"openclaw": {
|
|
@@ -170,11 +170,11 @@
|
|
|
170
170
|
"allowInvalidConfigRecovery": true
|
|
171
171
|
},
|
|
172
172
|
"compat": {
|
|
173
|
-
"pluginApi": ">=2026.11.
|
|
173
|
+
"pluginApi": ">=2026.11.8"
|
|
174
174
|
},
|
|
175
175
|
"build": {
|
|
176
176
|
"bundledDist": false,
|
|
177
|
-
"openclawVersion": "2026.11.
|
|
177
|
+
"openclawVersion": "2026.11.8"
|
|
178
178
|
},
|
|
179
179
|
"release": {
|
|
180
180
|
"publishToClawHub": true,
|