/** * Repo interrogation — extract slot content from README, Cargo.toml, * package.json, etc., without guessing or substituting generic slop. * * Contract (per faf-auto-no-guess-no-slop doctrine): * - Each slot has a per-slot evidence anchor * - If the anchor is missing → leave empty (do NOT synthesize from other slots) * - If the anchor is present but content is generic / too long / structural → * leave empty (do NOT settle for slop) * - Empty is honest; wrong is a lie * * Per goal-is-not-a-6w doctrine: * - `project.goal` is the elevator pitch / use case — its own anchor * - Each `human_context.*` 6W has its own anchor * - No slot inherits from / is split-extracted from another */ /** Content extracted from a single source file (README, Cargo.toml, etc.) */ export interface ExtractedContext { project?: { /** One-line elevator pitch / use case. README first prose paragraph, * ## Use Case section, or Cargo.toml description. */ goal?: string; }; human_context?: { /** Audience — "## Audience" / "for {audience}" patterns */ who?: string; /** What's being built — "## About" / "## Description" / "X is..." */ what?: string; /** Motivation — "## Why" / "## Motivation" / "Problem:" */ why?: string; /** Where it runs — "## Deployment" / "## Where" / install-target */ where?: string; /** Status / timeline — "## Status" / "Production since" / version line */ when?: string; /** Approach — "## Architecture" / "## How it works" */ how?: string; }; /** Stack facts pulled from real config files (docker-compose services, …). * Higher-precedence than README prose or presence-only guesses for these. */ stack?: { database?: string; cache?: string; search?: string; storage?: string; hosting?: string; runtime?: string; }; /** Real project commands from Makefile / justfile / Taskfile targets. */ commands?: Record; /** Secrets handling — from .env.example / .env.sample presence. */ security?: { secrets?: string; example?: string; }; } /** The README headings that hold each slot's fact — one list, shared by the * README interrogator and Relentless. Each is matched as the whole heading * (regex source, case-insensitive; groups must be non-capturing). Left out, * because they usually hold a misplaced fact: Release / Roadmap (the release * process, future plans), History (a changelog), Design (visual design), * About (the author), Users (an adopters list). */ export declare const SECTION_HEADINGS: { readonly goal: readonly ["use\\s+cases?", "goals?"]; readonly what: readonly ["description", "overview", "purpose", "introduction", "what", "what\\s+is\\s+(?!new\\b)\\S+", "what\\s+it\\s+does"]; readonly who: readonly ["audience", "target\\s+audience", "for\\s+whom", "who", "who\\s+is\\s+(?:this|it)\\s+for", "who\\s+it.s\\s+for"]; readonly why: readonly ["why", "why\\s+(?:use\\s+)?(?!not\\b)\\S+", "motivations?", "(?:the\\s+)?problem", "rationale", "mission", "vision"]; readonly where: readonly ["deployment", "where", "where\\s+it\\s+runs", "hosting", "platforms", "supported\\s+platforms", "platform\\s+support"]; readonly when: readonly ["status", "(?:project|current)\\s+status", "timeline", "since", "launched"]; readonly how: readonly ["architecture", "how", "how\\s+it\\s+works", "how\\s+does\\s+it\\s+work", "under\\s+the\\s+hood", "internals", "approach", "methodology"]; }; /** Confidence threshold rules for extracted text — empty if violated */ export declare const EXTRACTION_LIMITS: { /** Minimum length for a slot to be considered worth filling (in chars) */ readonly MIN_LENGTH: 8; /** Maximum length — anything longer is documentation, not a slot fill */ readonly MAX_LENGTH: 280; }; /** Generic slop patterns — extracted text matching these is rejected */ export declare const SLOP_PATTERNS: readonly RegExp[]; /** A notice, not a description of the project: maintenance status, * sponsors, hiring, where the docs are, requirements, a move or a mirror, * merch, a question, a status label or an emoji-led feature label. Fine in * `when` (## Status: "No longer maintained since 2024"), never the goal. */ export declare function isNotice(t: string): boolean; /** A callout or banner, not a description: a GitHub admonition, a warning * sign, or pre-release phrasing ("Nightly release, expect rough edges"). */ export declare function isCallout(t: string): boolean; /** Lines without a setext title at the top ("Title" over "-----" or * "=====") — it is the title, not the first paragraph. */ export declare function dropSetextTitle(lines: string[]): string[]; /** Validate extracted text against the no-guess/no-slop doctrine */ export declare function isValidExtraction(text: string): boolean; /** The first sentence of `text` — whole, ending at its own full stop — or * null when there is none, or when it is a question (not a fact). For a * first paragraph too long to be a slot: its opening sentence is usually the * fact ("Flask is a lightweight WSGI web application framework."), and a * whole sentence is never a cut. A stop after `e.g.`, `i.e.`, `vs.`, `Dr.` * or an ellipsis does not end it; after `etc.` or initials (`U.S.`) it ends * only when the next word starts a sentence. */ export declare function firstSentence(text: string): string | null;