export type ContextMode = "page_only" | "site_only" | "hybrid"; /** * `page_only` reads the host page's DOM; `site_only` the crawled index; * `hybrid` both. * * 🚨 UNKNOWN IS NOT DISABLED. Both flags arrive on the operator's config, which * the loader fetches asynchronously, so before it lands, and on any mount that * never receives one, they are `undefined`. Treating that as `false` sent * `page_only`, which stops the assistant consulting the site index at all: it * then refuses questions its own corpus answers and, having no evidence, falls * back on the model's priors. * * MEASURED 2026-08-29, same question and corpus: * page_only → grounding "refused", 0 citations, invented billing terms * hybrid → grounding "grounded", 10 citations, the real plan table * * Defaulting permissive is safe because the server is the authority: it * defaults both features to true and re-clamps the mode in * `resolveAssistantContextMode`. An operator who really disabled one still gets * it enforced there. */ export declare function resolveContextMode(features?: { domRagEnabled?: boolean; siteRagEnabled?: boolean; }): ContextMode;