UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 3.47 kB
import{t as formatCliCommand}from"../command-format-D7KhNLP0.mjs";import{n as enablePluginInConfig}from"../enable-DLQhpAs1.mjs";import{n as jsonResult}from"../tool-results-BkLNMSCi.mjs";import{a as readNonNegativeIntegerParam,d as readToolStringParam,l as readStringArrayParam,o as readNumberParam,s as readPositiveIntegerParam}from"../common-DIgvX97L.mjs";import{n as readProviderEnvValue}from"../provider-credential-values-BjeBUyPy.mjs";import{s as wrapWebContent}from"../external-content-DTIz293E.mjs";import{i as truncateWebFetchText,r as markdownToText}from"../web-fetch-utils-CrYJdTgD.mjs";import{a as readCache,c as resolvePositiveTimeoutSeconds,d as writeCache,i as normalizeCacheKey,l as resolveTimeoutSeconds,n as DEFAULT_TIMEOUT_SECONDS,o as readResponseText,s as resolveCacheTtlMs,t as DEFAULT_CACHE_TTL_MINUTES}from"../web-shared-CPCN-uc2.mjs";import{C as withTrustedWebSearchEndpoint,S as withSelfHostedWebSearchEndpoint,_ as resolveSearchCacheTtlMs,a as buildUnsupportedSearchFilterResponse,b as resolveSiteName,c as normalizeFreshness,d as parseWebSearchTimeFilters,f as postTrustedWebToolsJson,g as readWebSearchQueryAndCount,h as readWebSearchApiKey,i as buildSearchCacheKey,l as normalizeToIsoDate,m as readConfiguredSecretString,n as FRESHNESS_TO_RECENCY,o as externalContentStamp,p as readCachedSearchPayload,r as MAX_SEARCH_COUNT,s as isoToPerplexityDate,t as DEFAULT_SEARCH_COUNT,u as parseIsoDateRange,v as resolveSearchCount,w as writeCachedSearchPayload,x as throwWebSearchApiError,y as resolveSearchTimeoutSeconds}from"../web-search-provider-common-DZsfSXgm.mjs";import{i as withTrustedWebToolsEndpoint,n as withSelfHostedWebToolsEndpoint}from"../web-guarded-fetch-a1PrRWZq.mjs";import{a as setScopedCredentialValue,i as setProviderWebSearchPluginConfigValue,o as setTopLevelCredentialValue,r as mergeScopedSearchConfig,s as resolvePluginWebSearchConfig,t as getScopedCredentialValue}from"../web-search-provider-config-CXXXsVoi.mjs";import{n as resolveWebSearchProviderCredential,r as resolveCitationRedirectUrl,t as nativeWebSearchCodecs}from"../provider-web-search-Jfo69ebv.mjs";export{DEFAULT_CACHE_TTL_MINUTES,DEFAULT_SEARCH_COUNT,DEFAULT_TIMEOUT_SECONDS,FRESHNESS_TO_RECENCY,MAX_SEARCH_COUNT,buildSearchCacheKey,buildUnsupportedSearchFilterResponse,enablePluginInConfig,externalContentStamp,formatCliCommand,getScopedCredentialValue,isoToPerplexityDate,jsonResult,markdownToText,mergeScopedSearchConfig,nativeWebSearchCodecs,normalizeCacheKey,normalizeFreshness,normalizeToIsoDate,parseIsoDateRange,parseWebSearchTimeFilters,postTrustedWebToolsJson,readCache,readCachedSearchPayload,readConfiguredSecretString,readNonNegativeIntegerParam,readNumberParam,readPositiveIntegerParam,readProviderEnvValue,readResponseText,readStringArrayParam,readToolStringParam as readStringParam,readWebSearchApiKey,readWebSearchQueryAndCount,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};