@openclaw/matrix 2026.11.11 → 2026.12.1-beta.2
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-CCGCnRgz.mjs → approval-handler.runtime-BfY586xJ.mjs} +4 -4
- package/dist/.setup/{channel-BEgolhUJ.mjs → channel-Cc7auxIF.mjs} +8 -8
- package/dist/.setup/{channel.runtime-_NMfiRJl.mjs → channel.runtime-B6ZmWLDZ.mjs} +5 -5
- package/dist/.setup/{channel.setup-B7r4NCcE.mjs → channel.setup-D9-chyNP.mjs} +2 -2
- package/dist/.setup/{cli-CyjnAIzU.mjs → cli-BrTpL9JI.mjs} +7 -7
- package/dist/.setup/{cli-metadata-DNeLBXHC.mjs → cli-metadata-R7WyIFzA.mjs} +1 -1
- package/dist/.setup/{client-BVgnwwz0.mjs → client-BmxOI9-U.mjs} +2 -2
- package/dist/.setup/{client-gch0wggI.mjs → client-DOb_5cJm.mjs} +2 -2
- package/dist/.setup/{client-bootstrap-CHs5OQ1Z.mjs → client-bootstrap-BwDbzw5i.mjs} +1 -1
- package/dist/.setup/{create-client-mnjEWdZV.mjs → create-client-BQpMgtl2.mjs} +2 -2
- package/dist/.setup/{crypto-runtime-tZ95jwNO.mjs → crypto-runtime-CStae6zK.mjs} +1 -1
- package/dist/.setup/{direct-management-D59C1WO-.mjs → direct-management-Bm4vd-k1.mjs} +1 -1
- package/dist/.setup/{directory-live-CQNKUJJx.mjs → directory-live-DRGF3zFp.mjs} +1 -1
- package/dist/.setup/{draft-stream-DI_6HWy4.mjs → draft-stream-DpSefQTK.mjs} +2 -2
- package/dist/.setup/{exec-approvals-B23spbVI.mjs → exec-approvals-CTkGLt3Z.mjs} +2 -2
- package/dist/.setup/{messages-VnZ4u4iq.mjs → messages-DjmI7l5t.mjs} +3 -3
- package/dist/.setup/{monitor-wbUkxHXK.mjs → monitor-HjyjGlys.mjs} +18 -18
- package/dist/.setup/{onboarding-B51d5a6R.mjs → onboarding-BPkKv4dw.mjs} +3 -3
- package/dist/.setup/{outbound-D8rgFTRa.mjs → outbound-CthMgcxZ.mjs} +2 -2
- package/dist/.setup/{profile-update-DAQFPf4L.mjs → profile-update-myTQ_w_e.mjs} +3 -3
- package/dist/.setup/{reaction-events-CZlbNkx_.mjs → reaction-events-C22fpTeK.mjs} +5 -5
- package/dist/.setup/{resolve-targets-B3NLls5a.mjs → resolve-targets-3B6QJQUf.mjs} +1 -1
- package/dist/.setup/{room-info-Cw-BH1CA.mjs → room-info-7ER9IkzT.mjs} +3 -3
- package/dist/.setup/{sdk-Bzp2OIxv.mjs → sdk-DphkoEH1.mjs} +32 -33
- package/dist/.setup/{send-CK8h-x83.mjs → send-CAfHI3Oi.mjs} +18 -13
- package/dist/.setup/{send-currentness-D1x6YP9O.mjs → send-currentness-Zv5Z-1_t.mjs} +9 -5
- package/dist/.setup/{setup-bootstrap-DsHa4swp.mjs → setup-bootstrap-COKlzUTV.mjs} +2 -2
- package/dist/.setup/{setup-core-B3MI_zz4.mjs → setup-core-B1dRvn1h.mjs} +1 -1
- package/dist/.setup/setup-plugin-api-BGpOj2cE.mjs +2 -0
- package/dist/.setup/{thread-bindings-C_SHelhg.mjs → thread-bindings-DFF_4WP3.mjs} +1 -1
- package/dist/.setup/{tool-actions-nhsof0wb.mjs → tool-actions-Cal-116X.mjs} +11 -11
- package/dist/.setup/{verification-BZqaSKCW.mjs → verification-2flsiwT7.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/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 +57 -0
- package/node_modules/@openclaw/fs-safe/README.md +6 -0
- 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 +10 -0
- package/node_modules/@openclaw/fs-safe/dist/bounded-read.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/bounded-read.js +15 -4
- package/node_modules/@openclaw/fs-safe/dist/directory-guard.js +11 -2
- package/node_modules/@openclaw/fs-safe/dist/drvfs-parent.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/drvfs-parent.js +38 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.js +2 -2
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +13 -8
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-io.js +13 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.d.ts +2 -2
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.js +34 -24
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +7 -2
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.js +20 -20
- package/node_modules/@openclaw/fs-safe/dist/file-observation.d.ts +13 -2
- package/node_modules/@openclaw/fs-safe/dist/file-observation.js +8 -4
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +11 -1
- package/node_modules/@openclaw/fs-safe/dist/file-store-write-options.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-write-options.js +17 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/file-store.js +12 -16
- package/node_modules/@openclaw/fs-safe/dist/guest-native-python.js +1 -1
- package/node_modules/@openclaw/fs-safe/dist/guest.js +3 -4
- package/node_modules/@openclaw/fs-safe/dist/json-document-store.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/json-document-store.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/json-store.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/json.d.ts +5 -2
- package/node_modules/@openclaw/fs-safe/dist/json.js +6 -2
- package/node_modules/@openclaw/fs-safe/dist/local-file-descriptor.js +16 -10
- package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +4 -0
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file-metadata.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file-metadata.js +18 -0
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +3 -18
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +48 -24
- package/node_modules/@openclaw/fs-safe/dist/opened-file-failure.js +19 -7
- package/node_modules/@openclaw/fs-safe/dist/output.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/output.js +3 -0
- package/node_modules/@openclaw/fs-safe/dist/path-policy.js +4 -1
- package/node_modules/@openclaw/fs-safe/dist/permissions-windows.js +35 -10
- package/node_modules/@openclaw/fs-safe/dist/pinned-open.d.ts +9 -2
- package/node_modules/@openclaw/fs-safe/dist/pinned-open.js +42 -23
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.js +85 -34
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write.js +4 -0
- package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.js +1 -1
- package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +2 -2
- package/node_modules/@openclaw/fs-safe/dist/publication-recovery.d.ts +24 -0
- package/node_modules/@openclaw/fs-safe/dist/publication-recovery.js +151 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.js +2 -1
- package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/realpath.js +22 -11
- package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +5 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.js +75 -2
- package/node_modules/@openclaw/fs-safe/dist/replace-file-types.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file.js +14 -10
- package/node_modules/@openclaw/fs-safe/dist/root-context.js +28 -12
- package/node_modules/@openclaw/fs-safe/dist/root-copy.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/root-create-input.js +2 -2
- package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.js +53 -36
- package/node_modules/@openclaw/fs-safe/dist/root-file-open-batch-sync.js +3 -1
- package/node_modules/@openclaw/fs-safe/dist/root-file.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/root-file.js +24 -13
- package/node_modules/@openclaw/fs-safe/dist/root-impl.js +17 -1
- package/node_modules/@openclaw/fs-safe/dist/root-options.d.ts +4 -2
- package/node_modules/@openclaw/fs-safe/dist/root-path.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/root-path.js +2 -1
- package/node_modules/@openclaw/fs-safe/dist/root-read-admission.js +31 -9
- package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +6 -2
- package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-file.js +2 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +84 -4
- package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +2 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.js +22 -15
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-publication.d.ts +22 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-publication.js +303 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.js +9 -1
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.js +37 -3
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-staging.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-staging.js +155 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.js +7 -2
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-write.d.ts +10 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-write.js +143 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-target.js +28 -7
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.d.ts +2 -2
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.js +34 -18
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.js +13 -3
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-ownership.js +1 -1
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/test-hooks.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +1 -1
- package/node_modules/@openclaw/fs-safe/dist/text-atomic.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-owner.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-owner.js +2 -1
- package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
- package/node_modules/@openclaw/fs-safe/docs/advanced.md +6 -1
- package/node_modules/@openclaw/fs-safe/docs/atomic.md +64 -0
- package/node_modules/@openclaw/fs-safe/docs/contributing.md +69 -0
- package/node_modules/@openclaw/fs-safe/docs/file-store.md +2 -0
- package/node_modules/@openclaw/fs-safe/docs/json-store.md +2 -0
- package/node_modules/@openclaw/fs-safe/docs/json.md +2 -0
- package/node_modules/@openclaw/fs-safe/docs/output.md +2 -0
- package/node_modules/@openclaw/fs-safe/docs/permissions.md +20 -7
- package/node_modules/@openclaw/fs-safe/docs/reading.md +24 -9
- package/node_modules/@openclaw/fs-safe/docs/root.md +2 -0
- package/node_modules/@openclaw/fs-safe/docs/security-model.md +2 -0
- package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +12 -7
- package/node_modules/@openclaw/fs-safe/docs/staged-file.md +2 -0
- package/node_modules/@openclaw/fs-safe/docs/temp-isolation-reference.md +73 -0
- package/node_modules/@openclaw/fs-safe/docs/temp.md +65 -0
- package/node_modules/@openclaw/fs-safe/docs/testing.md +1 -0
- package/node_modules/@openclaw/fs-safe/docs/writing.md +2 -0
- package/node_modules/@openclaw/fs-safe/package.json +25 -20
- 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-D6-D6LLj.mjs +0 -2
|
@@ -47,6 +47,58 @@ under trusted ancestry. Do not make shared `/tmp` private or take ownership of
|
|
|
47
47
|
another user's directory. A caller's preferred root takes precedence over
|
|
48
48
|
`TMPDIR`; changing `TMPDIR` only changes the resolver's fallback location.
|
|
49
49
|
|
|
50
|
+
### Externally isolated ancestors
|
|
51
|
+
|
|
52
|
+
When a deployment excludes untrusted writers through external isolation, it
|
|
53
|
+
can pass `trustedWritableAncestors` to allow group/world-write on exact named
|
|
54
|
+
ancestors without sticky protection. For example, an isolated volume mounted
|
|
55
|
+
at `/sandbox` can contain a private temp root:
|
|
56
|
+
|
|
57
|
+
Untrusted processes, including same-UID model tools, terminal sessions, and
|
|
58
|
+
worker subprocesses, must not be able to rename or recreate the trusted
|
|
59
|
+
ancestry. Otherwise, later workspace reads or writes may target replacement
|
|
60
|
+
directories. Private root/child permissions and `cleanupSafety: "require-bounded"`
|
|
61
|
+
do not prevent redirected I/O. A volume dedicated to one workload is insufficient
|
|
62
|
+
if untrusted processes inside that workload can mutate this ancestry. Isolation
|
|
63
|
+
must hold from admission through the completion of workspace use and cleanup.
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
await withTempWorkspace({
|
|
67
|
+
rootDir: "/sandbox/private-temp",
|
|
68
|
+
prefix: "job-",
|
|
69
|
+
// Deployment isolation excludes every untrusted writer for the workspace lifetime.
|
|
70
|
+
trustedWritableAncestors: ["/sandbox"],
|
|
71
|
+
}, async (workspace) => {
|
|
72
|
+
await workspace.writeText("result.txt", "done");
|
|
73
|
+
});
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Entries must be existing, normalized, canonical absolute paths; symlink aliases
|
|
77
|
+
are rejected. Matching is exact, not recursive or by prefix. The list is copied
|
|
78
|
+
at admission, and omitted or empty lists keep the default policy. All four
|
|
79
|
+
workspace helpers accept the option; it does not configure other fs-safe APIs.
|
|
80
|
+
|
|
81
|
+
Only the matching ancestor's writable-mode requirement changes. Ownership,
|
|
82
|
+
directory type, path and identity checks, and private root/child permissions
|
|
83
|
+
still apply, even if the private root is listed. Windows ACL requirements are
|
|
84
|
+
unchanged. This option does not establish isolation: the caller must ensure
|
|
85
|
+
that untrusted writers cannot replace directories through the trusted ancestor for
|
|
86
|
+
the workspace's lifetime. Obtain the list from trusted deployment configuration,
|
|
87
|
+
not workspace contents or untrusted requests.
|
|
88
|
+
|
|
89
|
+
The first ancestor writable-mode check bypassed through this option emits a
|
|
90
|
+
`FS_SAFE_TRUSTED_WRITABLE_ANCESTOR` warning through Node's warning event, once
|
|
91
|
+
per process and without paths. An unused entry or a directory already accepted
|
|
92
|
+
by the strict policy emits no such warning. The warning reports reliance on
|
|
93
|
+
external isolation; it does not verify that isolation or guarantee that the
|
|
94
|
+
remaining workspace admission checks succeed.
|
|
95
|
+
|
|
96
|
+
See the [isolation reference](temp-isolation-reference.md) for a reproducible
|
|
97
|
+
Linux configuration and adversarial lifetime proof. Its result applies only
|
|
98
|
+
to the tested configuration; other deployments must establish equivalent isolation.
|
|
99
|
+
|
|
100
|
+
### Platform and identity checks
|
|
101
|
+
|
|
50
102
|
On Android only (`process.platform === "android"`), ancestors may also be owned
|
|
51
103
|
by Android's OS system identity, AID_SYSTEM (UID 1000). The system is trusted like
|
|
52
104
|
root; this does not trust arbitrary foreign UIDs or stop the walk at `HOME` or
|
|
@@ -384,6 +436,19 @@ type TempFile = {
|
|
|
384
436
|
};
|
|
385
437
|
```
|
|
386
438
|
|
|
439
|
+
`tempFile()` and its `file()` method preserve safe Unicode filenames, including
|
|
440
|
+
CJK text, accents, and emoji. They select a basename, replace unsafe punctuation,
|
|
441
|
+
whitespace, and control characters, and protect Windows device names. Overlong
|
|
442
|
+
names are shortened to 255 UTF-8 bytes as written and under NFC/NFD, preserving
|
|
443
|
+
the extension when possible. The separate safe-path-segment identifier helpers
|
|
444
|
+
remain ASCII-only.
|
|
445
|
+
|
|
446
|
+
On Windows, `tempFile()` and `withTempFile()` support temporary directory paths
|
|
447
|
+
longer than `MAX_PATH` in both cleanup modes without exposing extended-length
|
|
448
|
+
path prefixes to callers. Bounded cleanup retains its existing root
|
|
449
|
+
canonicalization. Path admission, identity checks, and cleanup requirements
|
|
450
|
+
still apply.
|
|
451
|
+
|
|
387
452
|
The default `cleanupSafety: "compatible"` retains the historical temp-file
|
|
388
453
|
behavior without loading or probing the native helper. Cleanup captures the
|
|
389
454
|
directory identity at creation time and preserves a replacement observed by
|
|
@@ -247,6 +247,7 @@ as numbers or bigints.
|
|
|
247
247
|
| `beforeRootListObservation` | `directoryPath, withFileTypes` | After `Root.list()` admits the selected directory, before collecting names and optional metadata. |
|
|
248
248
|
| `afterPinnedWriteFallbackRename` | `targetPath` | After fallback rename commits, before post-commit identity checks. |
|
|
249
249
|
| `beforeSiblingTempWrite` | `tempPath` | Before the `writeViaSiblingTempPath` producer runs, with its selected output pathname still absent. |
|
|
250
|
+
| `beforeSidecarLockPublish` (**sync**) | `lockPath, temporaryPath` | After the complete staging record is synced, immediately before exclusive publication. |
|
|
250
251
|
| `beforeSidecarLockSnapshotOpen` | `lockPath` | After sidecar inspection, before opening it for a bounded snapshot read. |
|
|
251
252
|
| `beforeRegularFileAppendOpen` | `filePath` | After append preflight and the initial size-budget check, before async open. |
|
|
252
253
|
| `beforeRegularFileAppendOpenSync` (**sync**) | `filePath` | The corresponding sync append point, before `openSync`. |
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Writing
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
Writes and creates can explicitly enable `allowDrvfsRenameRecovery` through Root defaults or per-call options. Native and TypeScript paths use the same [DrvFS admission and recovery contract](atomic.md#drvfs-hidden-rename-recovery).
|
|
3
5
|
The `Root` handle exposes a tight set of mutation verbs. Replacement writes
|
|
4
6
|
(`write`, `writeJson`, and `copyIn`) publish with a sibling-temp commit so no
|
|
5
7
|
half-written replacement appears at the destination. Create-only writes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/fs-safe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.2",
|
|
4
4
|
"description": "Capability-style filesystem roots for Node.js apps that handle untrusted relative paths.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"filesystem",
|
|
@@ -157,6 +157,7 @@
|
|
|
157
157
|
"test:coverage:collect": "pnpm build && pnpm archive:wasm:allocator-tests && vitest run --coverage --coverage.reporter=json --coverage.thresholds.lines=0 --coverage.thresholds.functions=0 --coverage.thresholds.statements=0 --coverage.thresholds.branches=0",
|
|
158
158
|
"test:coverage:merge": "node scripts/merge-coverage.mjs",
|
|
159
159
|
"test:security": "vitest run test/fs-safe.test.ts test/read-boundary-bypass.test.ts test/write-boundary-bypass.test.ts test/additional-boundary-bypass.test.ts test/adversarial-boundary-payloads.test.ts",
|
|
160
|
+
"proof:temp-isolation": "node scripts/verify-temp-workspace-isolation.mjs",
|
|
160
161
|
"check": "pnpm lint:file-size && pnpm lint:fs-boundary && pnpm check:runtime",
|
|
161
162
|
"check:runtime": "pnpm build && pnpm archive:wasm:allocator-tests && pnpm docs:check && pnpm test && node scripts/check-pack.mjs",
|
|
162
163
|
"docs:check": "node scripts/check-doc-examples.mjs",
|
|
@@ -177,36 +178,40 @@
|
|
|
177
178
|
"crabbox:warmup": "crabbox warmup",
|
|
178
179
|
"archive:wasm": "node scripts/build-archive-wasm.mjs",
|
|
179
180
|
"archive:wasm:allocator-tests": "node scripts/build-archive-wasm.mjs --allocator-tests",
|
|
180
|
-
"archive:producer-smoke": "node scripts/archive-producer-smoke.mjs"
|
|
181
|
+
"archive:producer-smoke": "node scripts/archive-producer-smoke.mjs",
|
|
182
|
+
"archive:interop:fixtures": "node archive-core/tests/fixtures/generate-interop.mjs",
|
|
183
|
+
"archive:interop:test": "cargo test --locked -p fs-safe-archive-core --test interoperability",
|
|
184
|
+
"archive:interop:wasm": "node archive-core/tests/wasm-interoperability.mjs",
|
|
185
|
+
"archive:interop:writer": "cargo run --locked --quiet -p fs-safe-archive-core --example directory-link-reproducer"
|
|
181
186
|
},
|
|
182
187
|
"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.
|
|
188
|
+
"@openclaw/fs-safe-darwin-arm64": "0.28.2",
|
|
189
|
+
"@openclaw/fs-safe-darwin-x64": "0.28.2",
|
|
190
|
+
"@openclaw/fs-safe-freebsd-arm64": "0.28.2",
|
|
191
|
+
"@openclaw/fs-safe-freebsd-x64": "0.28.2",
|
|
192
|
+
"@openclaw/fs-safe-linux-arm64-gnu": "0.28.2",
|
|
193
|
+
"@openclaw/fs-safe-linux-arm64-musl": "0.28.2",
|
|
194
|
+
"@openclaw/fs-safe-linux-x64-gnu": "0.28.2",
|
|
195
|
+
"@openclaw/fs-safe-linux-x64-musl": "0.28.2",
|
|
196
|
+
"@openclaw/fs-safe-win32-arm64-msvc": "0.28.2",
|
|
197
|
+
"@openclaw/fs-safe-win32-x64-msvc": "0.28.2",
|
|
193
198
|
"jszip": "^3.10.2"
|
|
194
199
|
},
|
|
195
200
|
"devDependencies": {
|
|
196
|
-
"@emnapi/runtime": "2.0.0-beta.
|
|
197
|
-
"@napi-rs/cli": "3.10.
|
|
198
|
-
"@types/node": "^26.6.
|
|
199
|
-
"@vitest/coverage-v8": "5.
|
|
201
|
+
"@emnapi/runtime": "2.0.0-beta.3",
|
|
202
|
+
"@napi-rs/cli": "3.10.12",
|
|
203
|
+
"@types/node": "^26.6.6",
|
|
204
|
+
"@vitest/coverage-v8": "5.1.1",
|
|
200
205
|
"acorn": "8.19.0",
|
|
201
206
|
"fast-check": "^4.10.2",
|
|
202
207
|
"istanbul-lib-coverage": "3.2.2",
|
|
203
208
|
"istanbul-lib-report": "3.0.1",
|
|
204
209
|
"istanbul-reports": "3.2.0",
|
|
205
|
-
"sigstore": "5.0.
|
|
206
|
-
"tar": "7.5.
|
|
210
|
+
"sigstore": "5.0.1",
|
|
211
|
+
"tar": "7.5.23",
|
|
207
212
|
"typescript": "^7.0.2",
|
|
208
|
-
"vite": "8.3.
|
|
209
|
-
"vitest": "^5.0
|
|
213
|
+
"vite": "8.3.8",
|
|
214
|
+
"vitest": "^5.1.0"
|
|
210
215
|
},
|
|
211
216
|
"engines": {
|
|
212
217
|
"node": ">=22"
|
|
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.
|
|
3
|
+
"version": "2026.12.1-beta.2",
|
|
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.28.2",
|
|
14
14
|
"fake-indexeddb": "6.2.7",
|
|
15
15
|
"markdown-it": "15.0.3",
|
|
16
16
|
"matrix-js-sdk": "44.0.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"zod": "4.6.7"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"openclaw": ">=2026.
|
|
22
|
+
"openclaw": ">=2026.12.1-beta.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependenciesMeta": {
|
|
25
25
|
"openclaw": {
|
|
@@ -170,11 +170,11 @@
|
|
|
170
170
|
"allowInvalidConfigRecovery": true
|
|
171
171
|
},
|
|
172
172
|
"compat": {
|
|
173
|
-
"pluginApi": ">=2026.
|
|
173
|
+
"pluginApi": ">=2026.12.1-beta.2"
|
|
174
174
|
},
|
|
175
175
|
"build": {
|
|
176
176
|
"bundledDist": false,
|
|
177
|
-
"openclawVersion": "2026.
|
|
177
|
+
"openclawVersion": "2026.12.1-beta.2"
|
|
178
178
|
},
|
|
179
179
|
"release": {
|
|
180
180
|
"publishToClawHub": true,
|