UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

34 lines (33 loc) • 2.09 kB
import "./boundary-file-read-BfaFLDqt.mjs"; import "./path-guards-TIjxtj6H.mjs"; import { D as statRegularFileSync$1 } from "./fs-safe-BbWvmdVn.mjs"; import "./tmp-openclaw-dir-Bf0oU1Cn.mjs"; import "./directory-durability-DlnWwNmv.mjs"; import "./file-descriptor-DQ-v5bLt.mjs"; import "./file-range-DRkJd9Kz.mjs"; import "./staged-inputs-p_W1dPfN.mjs"; import { r as removePathWithinRoot$1 } from "./fs-safe-remove-mw1k_RwN.mjs"; import "./fs-observation-snapshot-75D5ef0W.mjs"; import "./remote-workspace-file-BlEhjdPd.mjs"; import { assertNoSymlinkParents as assertNoSymlinkParents$1, assertNoSymlinkParentsSync as assertNoSymlinkParentsSync$1, basenameFromMediaSource as basenameFromMediaSource$1, readFileHandleBounded as readFileHandleBounded$1, readFileWindowFully as readFileWindowFully$1, resolvePathPrefixSync as resolvePathPrefixSync$1, safeFileURLToPath as safeFileURLToPath$1, tempFile as tempFile$1 } from "@openclaw/fs-safe/advanced"; import { inspectPathPermissions as inspectPathPermissions$1 } from "@openclaw/fs-safe/permissions"; import { watch as watch$1 } from "@openclaw/fs-safe/watch"; //#region src/infra/fs-watch-errors.ts function getFileWatchCapacityCode(e) { if (typeof e !== "object" || e === null || !("syscall" in e) || e.syscall !== "watch" || !("code" in e)) return; const t = e.code; return t === "EMFILE" || t === "ENFILE" || t === "ENOSPC" ? t : void 0; } //#endregion //#region src/plugin-sdk/file-access-runtime.ts /** Return whether a path resolves to a regular file, treating filesystem errors as missing. */ function fileExists(e) { try { return !statRegularFileSync$1(e).missing; } catch { return false; } } const removePathWithinRoot = removePathWithinRoot$1; //#endregion export { inspectPathPermissions$1 as a, removePathWithinRoot as c, tempFile$1 as d, watch$1 as f, fileExists as i, resolvePathPrefixSync$1 as l, assertNoSymlinkParentsSync$1 as n, readFileHandleBounded$1 as o, getFileWatchCapacityCode as p, basenameFromMediaSource$1 as r, readFileWindowFully$1 as s, assertNoSymlinkParents$1 as t, safeFileURLToPath$1 as u };