/** * Intent suggestions — the goal and the six W's, as the repo suggests them. * * "AI cannot fill human slots. It can only suggest." `faf init` and `faf auto` * never write these slots; `faf go` shows each suggestion in gray and the * human confirms, edits, replaces or skips it. Nothing here is stored: the * suggestions are read from the repo (README, package.json, Cargo.toml) each * time they're asked for, so the .faf format stays clean and a suggestion is * never staler than the file it came from. * * Sourced or nothing: every suggestion names where it came from * (`README.md § Status`, `package.json description`). * * Target only. Every slot has three outcomes — Target (the validated fact for * that slot), Slop (waffle, nonsense, markup) and Misplaced (good info, wrong * slot) — and only a Target is suggested: every candidate passes the one gate * (isValidExtraction), headings match whole, and no text is offered for two * slots. * * Exported so other surfaces can show the same suggestions (the `/faf-go` * skill and CFM's `faf_go`, via buildTableOf8 as `detailed` + `goal`); today * only the CLI's `faf go` reads it. */ /** The human-authored slots: the goal and the six W's. */ export declare const INTENT_PATHS: readonly ["project.goal", "human_context.who", "human_context.what", "human_context.why", "human_context.where", "human_context.when", "human_context.how"]; export type IntentPath = (typeof INTENT_PATHS)[number]; export interface Suggestion { value: string; /** Where it came from: `README.md § Status`, `package.json description`. */ source: string; } export type IntentSuggestions = Partial>; /** True for the goal and the six W's — slots only a human fills. */ export declare function isIntentPath(path: string): path is IntentPath; /** * Suggestions for the goal and the six W's in `dir`. When `faf` (the current * .faf data) is given, a slot it already fills gets no suggestion — the * human's words are never second-guessed. Precedence: README (sections, then * the tagline) → the GitHub description (when given) → package.json * description → Cargo.toml description → Relentless (README + manifest, * sourced). * * `sources.githubDescription` is the repo's GitHub description, fetched by the * caller (githubDescription in `faf-cli/fetch`); this function reads no network. */ export declare function suggestIntent(dir: string, faf?: Record, sources?: { githubDescription?: string | null; }): IntentSuggestions; /** Text as a person reads it: markdown links as their words, no emphasis * markers or inline HTML tags, entities as characters, one line. Real * brackets and underscores stay: `arr[i]`, `Foo[T]`, `[WIP]`, `__init__.py`. */ export declare function asProse(text: string, refs?: ReadonlySet): string; /** One way to name a source, whichever reader found it: Relentless says * `README:## Why` / `README:first-paragraph` / `package.json:description`; * people read `README.md § Why` / `README.md § first paragraph` / * `package.json description`. */ export declare function sourceName(source: string): string; /** The one line init and auto print when suggestions are waiting, or null: * `3 suggestions for the goal and the six W's (README.md, package.json) — * confirm them in 'faf go'`. */ export declare function suggestionNote(dir: string, faf?: Record): string | null;