/** * A repo display name for generated canon headings (RULE_ROUTER + bootloader * preambles) that is STABLE across checkout locations. Deriving it from the * checkout folder's basename made `bootstrap-ai --verify` environment-sensitive: * the drift probe regenerates content in the CURRENT checkout, so a renamed * clone or a `git worktree` checkout false-failed with `canon.generated-drift`. * * Derivation chain, failing SOFT at every step (this is a display name, never a * gate input): * 1. the git `origin` remote URL's repo segment — `.git/config` is read * directly (never a `git` subprocess); a worktree's `.git` pointer FILE is * resolved through `gitdir:` and `commondir` to the main checkout's config; * 2. `package.json` `name`, npm scope stripped; * 3. `basename(resolve(root))` (resolve first: basename(".") is "."); * 4. "this repo". */ export declare function repoDisplayName(root: string): string;