openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
14 lines (13 loc) • 3.49 kB
JavaScript
import { t as formatCliCommand } from "../command-format-Cte1SWM4.mjs";
import { n as enablePluginInConfig } from "../enable-DWX6itjm.mjs";
import { n as readProviderEnvValue } from "../provider-credential-values-Cf7LMsFg.mjs";
import { o as wrapWebContent } from "../external-content-CmQTCbqd.mjs";
import { t as jsonResult } from "../tool-results-BCM3fdVS.mjs";
import { d as readPositiveIntegerParam, h as readToolStringParam, l as readNonNegativeIntegerParam, p as readStringArrayParam, u as readNumberParam } from "../common-CwfR3iO6.mjs";
import { a as truncateWebFetchText, r as markdownToText } from "../web-fetch-utils-CioLJa7o.mjs";
import { a as readResponseText, c as resolveTimeoutSeconds, i as readCache, l as writeCache, n as DEFAULT_TIMEOUT_SECONDS, o as resolveCacheTtlMs, r as normalizeCacheKey, s as resolvePositiveTimeoutSeconds, t as DEFAULT_CACHE_TTL_MINUTES } from "../web-shared-ZjgpgzJT.mjs";
import { _ as resolveSiteName, a as buildUnsupportedSearchFilterResponse, b as withTrustedWebSearchEndpoint, c as normalizeToIsoDate, d as postTrustedWebToolsJson, f as readCachedSearchPayload, g as resolveSearchTimeoutSeconds, h as resolveSearchCount, i as buildSearchCacheKey, l as parseIsoDateRange, m as resolveSearchCacheTtlMs, n as FRESHNESS_TO_RECENCY, o as isoToPerplexityDate, p as readConfiguredSecretString, r as MAX_SEARCH_COUNT, s as normalizeFreshness, t as DEFAULT_SEARCH_COUNT, u as parseWebSearchTimeFilters, v as throwWebSearchApiError, x as writeCachedSearchPayload, y as withSelfHostedWebSearchEndpoint } from "../web-search-provider-common-BOu7i-pY.mjs";
import { i as withTrustedWebToolsEndpoint, n as withSelfHostedWebToolsEndpoint } from "../web-guarded-fetch-DQrp9Z1-.mjs";
import { a as setScopedCredentialValue, i as setProviderWebSearchPluginConfigValue, n as getTopLevelCredentialValue, o as setTopLevelCredentialValue, r as mergeScopedSearchConfig, s as resolvePluginWebSearchConfig, t as getScopedCredentialValue } from "../web-search-provider-config-COuPfUzM.mjs";
import { n as resolveCitationRedirectUrl, t as resolveWebSearchProviderCredential } from "../provider-web-search-DIt7aLVU.mjs";
export { DEFAULT_CACHE_TTL_MINUTES, DEFAULT_SEARCH_COUNT, DEFAULT_TIMEOUT_SECONDS, FRESHNESS_TO_RECENCY, MAX_SEARCH_COUNT, buildSearchCacheKey, buildUnsupportedSearchFilterResponse, enablePluginInConfig, formatCliCommand, getScopedCredentialValue, getTopLevelCredentialValue, isoToPerplexityDate, jsonResult, markdownToText, mergeScopedSearchConfig, normalizeCacheKey, normalizeFreshness, normalizeToIsoDate, parseIsoDateRange, parseWebSearchTimeFilters, postTrustedWebToolsJson, readCache, readCachedSearchPayload, readConfiguredSecretString, readNonNegativeIntegerParam, readNumberParam, readPositiveIntegerParam, readProviderEnvValue, readResponseText, readStringArrayParam, readToolStringParam as readStringParam, resolveCacheTtlMs, resolveCitationRedirectUrl, resolvePositiveTimeoutSeconds, resolvePluginWebSearchConfig as resolveProviderWebSearchPluginConfig, resolveSearchCacheTtlMs, resolveSearchCount, resolveSearchTimeoutSeconds, resolveSiteName, resolveTimeoutSeconds, resolveWebSearchProviderCredential, setProviderWebSearchPluginConfigValue, setScopedCredentialValue, setTopLevelCredentialValue, throwWebSearchApiError, truncateWebFetchText as truncateText, withSelfHostedWebSearchEndpoint, withSelfHostedWebToolsEndpoint, withTrustedWebSearchEndpoint, withTrustedWebToolsEndpoint, wrapWebContent, writeCache, writeCachedSearchPayload };