// A WATCH'S LEARNED SPELLINGS, as umtool's series page reads them // (plans/umtool-redesign.md, R6.3). The editor writes learned.json (its one // writer, common/controller/learnedSpellings.ts); umtool reads it and acts // through `report-schedule` (learn, unlearn, promote-alias). Types only: safe // for a client component. import type { LearnedDrop, LearnedPass, LearnedSpelling } from "yt-dlp-transcript-common/lib/report/draft/triage/learned"; export type { LearnedDrop, LearnedPass, LearnedSpelling }; export type LearnedRow = LearnedSpelling & { // Its candidates were dismissed run after run: suggested for removal (never removed on its own). suggestRemoving: boolean; // Its name is no longer in the terms: kept, not used. idle: boolean; // "/ at mm:ss". cite: string; }; export type LearnedView = { schedule: string; rows: LearnedRow[]; blocked: { spelling: string; means?: string; at: string }[]; // The newest drops first (at most 12). dropped: LearnedDrop[]; lastPass: LearnedPass | null; proposedAt: string | null; // The names the terms watch (what a pass asks about). names: string[]; cap: number; }; /** What promote-alias answers as its plan (common/controller/learnedSpellings.ts PromotePlan). */ export type PromotePlanView = { id: string; spelling: string; means: string; to: string; file: string; action: "new" | "trigger" | "none"; alias: { id: string; label: string; triggers: string[]; suggestion: string; useRegex: boolean; note?: string }; before: { id: string; label: string; triggers: string[]; suggestion: string } | null; why: string; cite: string; sites: string[]; refused: string | null; };