//#region src/agent/tools/search/http.ts
/** Shared fetch defaults for HTML search fallbacks (reduce naive bot blocking). */
const HTML_SEARCH_USER_AGENT = "Mozilla/5.0 (compatible; xopc/1.0; +https://github.com/xopcai/xopc)";
const DEFAULT_HTML_SEARCH_TIMEOUT_MS = 25e3;
function mergeAbortWithTimeout(signal, ms) {
	const t = AbortSignal.timeout(ms);
	if (!signal) return t;
	return AbortSignal.any([signal, t]);
}
//#endregion
export { DEFAULT_HTML_SEARCH_TIMEOUT_MS, HTML_SEARCH_USER_AGENT, mergeAbortWithTimeout };

//# sourceMappingURL=http.js.map