/** * `docs_orient` — what the code around some files is. * * It starts from files somebody already has: the ones a stack trace, a ticket * or an editor names, or the ones `docs_search`, `docs_symbol` and `docs_grep` * found. Finding them is those tools' job. The first two answer from the index * `variance index` publishes and the third runs ripgrep over what one file * reaches, so orientation does not scan source text. This answers the graph * questions each of those files raises: what it declares at its top level, the * package it belongs to, the names that cross that package's edge in both * directions, the recorded cases that ran it, the calls those cases took into * and out of it, and the commands that ask about one of the names it printed; * `path:line` narrows the calls to the function holding that line. * * The package graph and the recorded cases are the addon's, through * `@variance-authority/sense`: they read what an earlier `variance index` and * an earlier recorded run published, and the calls are the journeys `variance * index` walked from that run; nothing here scans or runs anything. * A reading that was never published is said to be absent, with the command * that publishes it. * * Asked with no files, it prints the code map instead: the package graph folded * into nested areas, one page at a time, which `variance index` prepares beside * the source index. The top page is where a reader with nothing in hand starts, * and `area` opens one of the areas it lists. */ import type { Tool } from '@variance-authority/mcp/tools'; import { type JourneysAsk } from '@variance-authority/sense'; /** The files as they were said, each once, in the order said. */ export declare function filesOf(input: Readonly>): readonly string[]; /** Each file as said, split at a trailing `:` into the path and the line asked about. */ export declare function asksOf(files: readonly string[]): readonly JourneysAsk[]; /** * Typed over nothing, like `docs_grep`: it reads no workspace value. The * checkout is the one the host names on the call, as `invocation.root`; with * none named it refuses, because the process's working directory is where the * host was launched and not necessarily the checkout it serves. */ export declare const orient: Tool; //# sourceMappingURL=orient.d.ts.map