// The "searxng-bundled" search-source plug-in (REQ-PLUG-2, REQ-INST-1, decision 0b81b0c5): the // SearXNG the Stack installs and runs, bound to loopback only. The install component is a separate // item; until it runs, a search is refused as "search is unavailable". The address is fixed here // and ignores web.searxng. import { loadWebConfig, webSearch } from "../../../discord/src/web.mjs"; export const interfaceVersion = 1; export const BUNDLED_URL = "http://127.0.0.1:8888"; export function search(_settings, query, deps, { signal } = {}) { const config = loadWebConfig({ searxng: BUNDLED_URL }); const run = { ...config, signal }; return deps === undefined ? webSearch(run, { query }) : webSearch(run, { query }, deps); }