Docs/Skills and code/src/
src/topic-research/sources/google-ai-mode.js
What the file says about itself
Placeholder for Google Search "AI Mode" as a second source (not wired in yet). The pipeline treats every source as an adapter that returns documents: { key, kind, meta: {title, ...}, segments: [{start, duration, text}] } so an AI Mode…
Mentioned on: page 05
/**
* Placeholder for Google Search "AI Mode" as a second source (not wired in yet).
*
* The pipeline treats every source as an adapter that returns documents:
* { key, kind, meta: {title, ...}, segments: [{start, duration, text}] }
* so an AI Mode answer (text plus its cited links) can become one document per question and
* flow through the same extract -> verify -> synthesize steps, with its cited URLs kept as the
* source links.
*
* Mechanism (from docs/google_ai_search_automation_thread.md): load
* https://www.google.com/search?q=<query>&udm=50
* in a JS-rendering browser, wait for the answer container (div[data-subtree="aimc"]) to settle,
* then read its text and its non-google.com anchors as the cited sources. Selectors drift, so
* match on structure (data-subtree) rather than class names. Not done here on purpose: stealth
* plugins / proxy rotation to dodge bot detection. Prefer a real signed-in browser session
* driven at human pace, or a paid SERP API, when this is wired in.
*
* Intended use: run the `verification_queries` that synthesis emits (gaps, contested claims,
* single-source figures) through AI Mode, and extract from the answers.
*/
export const enabled = false;
export async function collectDocuments(/* queries, dir */) {
throw new Error("Google AI Mode source is not implemented yet.");
}
export const sourceUrl = doc => doc.meta?.url ?? null;
Shown as it is in the repository at build time (2026-11-03); the home directory appears as <home>. If this page and the file differ, the file is right. Back to the catalogue.