UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 3.48 kB
import{a as extractErrorCode}from"../error-coercion-DlKnt6w-.mjs";import{r as isPathInside}from"../path-guards-DGttsOJI.mjs";import{C as statRegularFile,D as withTimeout,O as writeExternalFileWithinRoot,_ as resolveAbsolutePathForRead,a as findExistingAncestor,c as openLocalFileSafely,h as readRegularFileSync,l as pathExists,m as readRegularFile,n as appendRegularFile,r as canonicalPathFromExistingAncestor,t as FsSafeError,u as pathExistsSync,v as resolveAbsolutePathForWrite,w as statRegularFileSync,x as root,y as resolveLocalPathFromRootsSync}from"../fs-safe-Bxzu1j4h.mjs";import{n as compileSafeRegexDetailed}from"../safe-regex-DzqdzmXn.mjs";import{c as redactSensitiveText}from"../redact-BT59pdZ_.mjs";import{t as formatErrorMessage}from"../errors-D37BJTfI.mjs";import{r as resolvePreferredOpenClawTmpDir}from"../tmp-openclaw-dir-DapBruir.mjs";import{t as safeEqualSecret}from"../secret-equal-BtEZdDeQ.mjs";import{n as normalizeHostname}from"../hostname-BcqVfTz7.mjs";import{c as isPrivateNetworkAllowedByPolicy,p as resolvePinnedHostnameWithPolicy,t as SsrFBlockedError,u as matchesHostnameAllowlist}from"../ssrf-BzkUH7oD.mjs";import{i as hasProxyEnvConfigured}from"../proxy-env-C0Jh7bHZ.mjs";import{a as parseAccessGroupAllowFromEntry}from"../allow-from-DWjUTXyB.mjs";import{n as privateFileStoreSync}from"../private-file-store-BjRsyVmB.mjs";import{a as truncateSanitizedExternalContent,o as wrapExternalContent,s as wrapWebContent}from"../external-content-DTIz293E.mjs";import{i as fileExists,n as assertNoSymlinkParentsSync,t as assertNoSymlinkParents}from"../file-access-runtime-Jlxwf1va.mjs";import{a as resolveStrictExistingPathsWithinRoot,c as buildUntrustedChannelMetadata,i as resolveExistingPathsWithinRoot,n as pathScope,o as sanitizeUntrustedFileName,r as replaceFileAtomic,s as buildChannelMetadata,t as movePathWithCopyFallback}from"../security-runtime-Y28JTB1K.mjs";import{n as filterSupplementalContextItems,r as shouldIncludeSupplementalContext,t as evaluateSupplementalContextVisibility}from"../context-visibility-Cp7Qw-m0.mjs";import{t as expandAllowFromWithAccessGroups}from"../access-groups-xlLrXqiU.mjs";import{r as ensurePortAvailable}from"../ports-s-pm0xgU.mjs";import{i as resolvePinnedMainDmOwnerFromAllowlist}from"../dm-policy-shared-CvTh1Gcv.mjs";export{FsSafeError,SsrFBlockedError,appendRegularFile,assertNoSymlinkParents,assertNoSymlinkParentsSync,buildChannelMetadata,buildUntrustedChannelMetadata,canonicalPathFromExistingAncestor,compileSafeRegexDetailed,ensurePortAvailable,evaluateSupplementalContextVisibility,expandAllowFromWithAccessGroups,extractErrorCode,fileExists,filterSupplementalContextItems,findExistingAncestor,formatErrorMessage,hasProxyEnvConfigured,isPathInside,isPrivateNetworkAllowedByPolicy,matchesHostnameAllowlist,movePathWithCopyFallback,normalizeHostname,openLocalFileSafely,parseAccessGroupAllowFromEntry,pathExists,pathExistsSync,pathScope,privateFileStoreSync,readRegularFile,readRegularFileSync,redactSensitiveText,replaceFileAtomic,resolveAbsolutePathForRead,resolveAbsolutePathForWrite,resolveExistingPathsWithinRoot,resolveLocalPathFromRootsSync,resolvePinnedHostnameWithPolicy,resolvePinnedMainDmOwnerFromAllowlist,resolvePreferredOpenClawTmpDir,resolveStrictExistingPathsWithinRoot,root,safeEqualSecret,sanitizeUntrustedFileName,shouldIncludeSupplementalContext,statRegularFile,statRegularFileSync,truncateSanitizedExternalContent,withTimeout,wrapExternalContent,wrapWebContent,writeExternalFileWithinRoot};