openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
5 lines • 1.81 kB
JavaScript
import"./directory-durability-o_aQCRBZ.mjs";import"./path-guards-DGttsOJI.mjs";import{w as statRegularFileSync$1}from"./fs-safe-Bxzu1j4h.mjs";import"./boundary-file-read-bB9An35K.mjs";import"./tmp-openclaw-dir-DapBruir.mjs";import"./file-descriptor-CRkf5tcV.mjs";import"./file-range-DuRgoDtz.mjs";import"./staged-inputs-CPADsu98.mjs";import{r as removePathWithinRoot$1}from"./fs-safe-remove-B-h3BvbP.mjs";import"./fs-observation-snapshot-CpujGKm6.mjs";import"./remote-workspace-file-CpYRmqns.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";
//!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}
//!src/plugin-sdk/file-access-runtime.ts
function fileExists(e){try{return!statRegularFileSync$1(e).missing}catch{return false}}const removePathWithinRoot=removePathWithinRoot$1;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};