import type * as HydraDB from "../index.js"; /** * CodeSearch is the repository code-search branch's answer, when routed. */ export interface SearchCodeSearchResult { /** * DecidedBy names the signal that routed the query: "request" (caller * forced it), "planner" (is_code_query) or "stage2" (embedding router). */ decidedBy?: string; /** DurationMS is the wall time the branch took. */ durationMs?: number; /** Reason explains a non-ok status in one sentence. */ reason?: string; /** Repos lists each repository searched with its own status and answer. */ repos?: HydraDB.SearchCodeSearchRepoResult[]; /** * Status is "ok" when at least one repository answered, "not_found" when * none had an archive, "error"/"timeout" when the branch failed, or * "skipped" with a Reason when it was not attempted (no repositories * connected, caller opted out). */ status?: string; }