UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

22 lines (21 loc) • 3.69 kB
import { a as extractErrorCode } from "../error-coercion-hDrHOSGy.mjs"; import { n as compileSafeRegexDetailed } from "../safe-regex-sRheBeEI.mjs"; import { s as redactSensitiveText } from "../redact-Mj7pppxC.mjs"; import { r as isPathInside } from "../path-guards-TIjxtj6H.mjs"; import { t as formatErrorMessage } from "../errors-BKzCeTYb.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-BbWvmdVn.mjs"; import { n as resolvePreferredOpenClawTmpDir } from "../tmp-openclaw-dir-Bf0oU1Cn.mjs"; import { t as safeEqualSecret } from "../secret-equal-BogABOFr.mjs"; import { n as normalizeHostname } from "../hostname-DQVb2xzD.mjs"; import { c as isPrivateNetworkAllowedByPolicy, p as resolvePinnedHostnameWithPolicy, t as SsrFBlockedError, u as matchesHostnameAllowlist } from "../ssrf-DHBNJw0c.mjs"; import { i as hasProxyEnvConfigured } from "../proxy-env-CZP0dXDG.mjs"; import { a as parseAccessGroupAllowFromEntry } from "../allow-from-BGE4RL6B.mjs"; import { n as privateFileStoreSync } from "../private-file-store-D564pKJx.mjs"; import { a as wrapExternalContent, i as truncateSanitizedExternalContent, o as wrapWebContent } from "../external-content-CGL7l-3s.mjs"; import { i as fileExists, n as assertNoSymlinkParentsSync, t as assertNoSymlinkParents } from "../file-access-runtime-BD2Fjfbw.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-C-zE_Zy_.mjs"; import { n as filterSupplementalContextItems, r as shouldIncludeSupplementalContext, t as evaluateSupplementalContextVisibility } from "../context-visibility-DKa41bxb.mjs"; import { t as expandAllowFromWithAccessGroups } from "../access-groups-TMZDMoGF.mjs"; import { r as ensurePortAvailable } from "../ports-VdrN6cKU.mjs"; import { i as resolvePinnedMainDmOwnerFromAllowlist } from "../dm-policy-shared-DYfj6q8U.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 };