import AppShell from "@/components/shell/AppShell"; import PhraseFinder from "@/components/tools/PhraseFinder"; import { toolsHref } from "@/lib/hrefs"; import { phraseFinderState, phraseScanView } from "@/lib/phrase-finder/server"; export const dynamic = "force-dynamic"; // THE PHRASE FINDER (release 34): the next montage phrase, found in the UI // with no model. Phrases (plain words or a regular expression) over the // channels picked, in one pass, as a job; per phrase the instances once folded // (phraseScan's rules), by year, Rumble or another channel, how many have a // caption speaker change, ten contexts to read in place and play; and Create // montage, the new-project form's phrase seed with these exact settings. The // search is in the page's state, not the URL: `?scan=` reopens a finished // one and `?q=` prefills a phrase. type Params = Record; const one = (v: string | string[] | undefined) => (Array.isArray(v) ? v[0] : v) ?? ""; export default async function PhrasesPage({ searchParams }: { searchParams: Promise }) { const sp = await searchParams; const state = await phraseFinderState(); const scanId = one(sp.scan) || state.running || null; const initialScan = scanId ? await phraseScanView(scanId) : null; return (
); }