openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
13 lines (12 loc) • 3.4 kB
JavaScript
import { t as formatCliCommand } from "../command-format-C7YfyMTd.js";
import { n as enablePluginInConfig } from "../enable-3OwjFbBV.js";
import { t as jsonResult } from "../tool-results-BCM3fdVS.js";
import { d as readPositiveIntegerParam, h as readToolStringParam, l as readNonNegativeIntegerParam, p as readStringArrayParam, u as readNumberParam } from "../common-Bm6UTDDA.js";
import { o as wrapWebContent } from "../external-content-CpqslxXH.js";
import { a as truncateWebFetchText, r as markdownToText } from "../web-fetch-utils-BasfkJij.js";
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-BcCNUCH7.js";
import { S as writeCachedSearchPayload, _ as resolveSearchTimeoutSeconds, a as buildUnsupportedSearchFilterResponse, b as withSelfHostedWebSearchEndpoint, c as normalizeToIsoDate, d as postTrustedWebToolsJson, f as readCachedSearchPayload, g as resolveSearchCount, h as resolveSearchCacheTtlMs, i as buildSearchCacheKey, l as parseIsoDateRange, m as readProviderEnvValue, 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 resolveSiteName, x as withTrustedWebSearchEndpoint, y as throwWebSearchApiError } from "../web-search-provider-common-CJ8tUQsS.js";
import { i as withTrustedWebToolsEndpoint, n as withSelfHostedWebToolsEndpoint } from "../web-guarded-fetch-DfTFSIPT.js";
import { a as setProviderWebSearchPluginConfigValue, i as resolveProviderWebSearchPluginConfig, n as getTopLevelCredentialValue, o as setScopedCredentialValue, r as mergeScopedSearchConfig, s as setTopLevelCredentialValue, t as getScopedCredentialValue } from "../web-search-provider-config-DP_T4wzm.js";
import { n as resolveCitationRedirectUrl, t as resolveWebSearchProviderCredential } from "../provider-web-search-Buu1PWOm.js";
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, resolveProviderWebSearchPluginConfig, resolveSearchCacheTtlMs, resolveSearchCount, resolveSearchTimeoutSeconds, resolveSiteName, resolveTimeoutSeconds, resolveWebSearchProviderCredential, setProviderWebSearchPluginConfigValue, setScopedCredentialValue, setTopLevelCredentialValue, throwWebSearchApiError, truncateWebFetchText as truncateText, withSelfHostedWebSearchEndpoint, withSelfHostedWebToolsEndpoint, withTrustedWebSearchEndpoint, withTrustedWebToolsEndpoint, wrapWebContent, writeCache, writeCachedSearchPayload };