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-DwEdrDKL.mjs";
import { n as enablePluginInConfig } from "../enable-C2KEdu16.mjs";
import { n as readProviderEnvValue } from "../provider-credential-values-Cf7LMsFg.mjs";
import { o as wrapWebContent } from "../external-content-Bkm4w5qo.mjs";
import { t as jsonResult } from "../tool-results-BCM3fdVS.mjs";
import { c as readNonNegativeIntegerParam, f as readStringArrayParam, l as readNumberParam, m as readToolStringParam, u as readPositiveIntegerParam } from "../common-Dyxcwsy8.mjs";
import { a as truncateWebFetchText, r as markdownToText } from "../web-fetch-utils-Iv2Zmiom.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-D8fUK6Vo.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-CA2avHBq.mjs";
import { i as withTrustedWebToolsEndpoint, n as withSelfHostedWebToolsEndpoint } from "../web-guarded-fetch-B0DIznrg.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-D50o08z_.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 };