UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

22 lines (21 loc) • 3.69 kB
import { i as extractErrorCode } from "../error-coercion-CvJK4lmH.mjs"; import { A as withTimeout, D as statRegularFileSync, E as statRegularFile, _ as readRegularFileSync, a as canonicalPathFromExistingAncestor, b as resolveAbsolutePathForWrite, d as pathExists, f as pathExistsSync, g as readRegularFile, j as writeExternalFileWithinRoot, n as appendRegularFile, s as findExistingAncestor, t as FsSafeError, u as openLocalFileSafely, w as root, x as resolveLocalPathFromRootsSync, y as resolveAbsolutePathForRead } from "../fs-safe-BUXBSN-4.mjs"; import { n as compileSafeRegexDetailed } from "../safe-regex-CLaK5Jxv.mjs"; import { _ as redactSensitiveText } from "../redact-DJ8j6ADa.mjs"; import { r as isPathInside } from "../path-guards-CH7noY0Z.mjs"; import { t as formatErrorMessage } from "../errors-O33D01XW.mjs"; import { n as resolvePreferredOpenClawTmpDir } from "../tmp-openclaw-dir-DR7bHNl9.mjs"; import { t as normalizeHostname } from "../hostname-Db1ZcSGB.mjs"; import { r as hasProxyEnvConfigured } from "../proxy-env-DlRjxK5F.mjs"; import { c as isPrivateNetworkAllowedByPolicy, p as resolvePinnedHostnameWithPolicy, t as SsrFBlockedError, u as matchesHostnameAllowlist } from "../ssrf-v45DW-yR.mjs"; import { a as parseAccessGroupAllowFromEntry } from "../allow-from-C_5BIb-Y.mjs"; import { n as privateFileStoreSync } from "../private-file-store-DM0i141q.mjs"; import { a as wrapExternalContent, i as truncateSanitizedExternalContent, o as wrapWebContent } from "../external-content-Bkm4w5qo.mjs"; import { i as fileExists, n as assertNoSymlinkParentsSync, t as assertNoSymlinkParents } from "../file-access-runtime-BMp89X4Y.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-Cl_Gnohk.mjs"; import { n as filterSupplementalContextItems, r as shouldIncludeSupplementalContext, t as evaluateSupplementalContextVisibility } from "../context-visibility-C5CaKMWO.mjs"; import { t as expandAllowFromWithAccessGroups } from "../access-groups-D-Ncd63h.mjs"; import { r as ensurePortAvailable } from "../ports-CJQmwij_.mjs"; import { t as safeEqualSecret } from "../secret-equal-DRsL8lKD.mjs"; import { i as resolvePinnedMainDmOwnerFromAllowlist } from "../dm-policy-shared-BRGB1_No.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 };