Skip to content

Commit 252bd84

Browse files
committed
fix(media): route bounded reads through fs-safe facade
1 parent 9af73a0 commit 252bd84

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/infra/fs-safe-advanced.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import path from "node:path";
66
export {
77
assertNoSymlinkParents,
88
assertNoSymlinkParentsSync,
9+
readFileHandleBounded,
910
type FileIdentityStat,
1011
sameFileIdentity,
1112
} from "@openclaw/fs-safe/advanced";

‎src/media/local-media-access.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Local media access helpers validate workspace-local media path access.
22
import fs from "node:fs/promises";
33
import path from "node:path";
4-
import { readFileHandleBounded } from "@openclaw/fs-safe/advanced";
54
import { resolveInboundPathRoot } from "@openclaw/media-core/inbound-path-policy";
5+
import { readFileHandleBounded } from "../infra/fs-safe-advanced.js";
66
import { FsSafeError, openLocalFileSafely } from "../infra/fs-safe.js";
77
import { assertNoWindowsNetworkPath } from "../infra/local-file-access.js";
88
import { isPathInside } from "../infra/path-guards.js";

0 commit comments

Comments
 (0)