refactor(infra): trim unused fs-safe facade exports · openclaw/openclaw@89c9021
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -18,10 +18,5 @@ export {
|
18 | 18 | resolveArchiveKind, |
19 | 19 | resolvePackedRootDir, |
20 | 20 | withStagedArchiveDestination, |
21 | | -type ArchiveExtractLimits, |
22 | | -type ArchiveKind, |
23 | | -type ArchiveLimitErrorCode, |
24 | 21 | type ArchiveLogger, |
25 | | -type ArchiveSecurityErrorCode, |
26 | | -type TarEntryInfo, |
27 | 22 | } from "@openclaw/fs-safe/archive"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,9 +8,6 @@ export {
|
8 | 8 | matchRootFileOpenFailure, |
9 | 9 | openRootFile, |
10 | 10 | openRootFileSync, |
11 | | -type OpenRootFileParams, |
12 | | -type OpenRootFileSyncParams, |
13 | 11 | type RootFileOpenFailure, |
14 | | -type RootFileOpenFailureReason, |
15 | 12 | type RootFileOpenResult, |
16 | 13 | } from "@openclaw/fs-safe/advanced"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,10 +4,7 @@ import "./fs-safe-defaults.js";
|
4 | 4 | // Boundary path resolution keeps alias expansion and realpath checks in one |
5 | 5 | // shared contract before file IO happens. |
6 | 6 | export { |
7 | | -ROOT_PATH_ALIAS_POLICIES, |
8 | 7 | resolvePathViaExistingAncestorSync, |
9 | 8 | resolveRootPath, |
10 | 9 | resolveRootPathSync, |
11 | | -type ResolvedRootPath, |
12 | | -type RootPathAliasPolicy, |
13 | 10 | } from "@openclaw/fs-safe/advanced"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,8 +3,4 @@ import "./fs-safe-defaults.js";
|
3 | 3 | |
4 | 4 | // Process-local file lock manager used by code that needs explicit lifecycle |
5 | 5 | // control instead of a one-shot withFileLock call. |
6 | | -export { |
7 | | -createFileLockManager, |
8 | | -type FileLockHeldEntry, |
9 | | -type FileLockManager, |
10 | | -} from "@openclaw/fs-safe/file-lock"; |
| 6 | +export { createFileLockManager } from "@openclaw/fs-safe/file-lock"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,10 +3,4 @@ import "./fs-safe-defaults.js";
|
3 | 3 | |
4 | 4 | // Safe file-store facade. Callers get the repo default fs-safe configuration |
5 | 5 | // before constructing root-scoped stores. |
6 | | -export { |
7 | | -fileStore, |
8 | | -type FileStore, |
9 | | -type FileStoreOptions, |
10 | | -type FileStorePruneOptions, |
11 | | -type FileStoreWriteOptions, |
12 | | -} from "@openclaw/fs-safe/store"; |
| 6 | +export { fileStore, type FileStore } from "@openclaw/fs-safe/store"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,6 +11,5 @@ export {
|
11 | 11 | resolveRegularFileAppendFlags, |
12 | 12 | statRegularFile, |
13 | 13 | statRegularFileSync, |
14 | | -type AppendRegularFileOptions, |
15 | 14 | type RegularFileStatResult, |
16 | 15 | } from "@openclaw/fs-safe/advanced"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,6 @@ import {
|
11 | 11 | export { |
12 | 12 | replaceDirectoryAtomic, |
13 | 13 | replaceFileAtomicSync, |
14 | | -type ReplaceDirectoryAtomicOptions, |
15 | 14 | type ReplaceFileAtomicFileSystem, |
16 | 15 | type ReplaceFileAtomicOptions, |
17 | 16 | type ReplaceFileAtomicResult, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。