import type { PlanningObservation } from "../planning/observation.js"; import type { AgentContext } from "./bootstrap-context.js"; export type RepositoryType = "empty" | "node" | "python" | "polyglot" | "brownfield" | "unknown"; export type RepositoryAnalysis = { repositoryType: RepositoryType; languages: string[]; frameworks: string[]; hasTests: boolean; hasPackageManager: boolean; fileCount: number; observations: PlanningObservation[]; adapterErrors: string[]; /** Source history classification for the target repository. */ sourceHistory: AgentContext["sourceHistory"]; /** Agent Context Contract derived from Discovery output. */ agentContext?: AgentContext; /** Discovery session provenance carried into Genesis for lineage. */ discoverySessionId?: string; discoverySessionHash?: string; }; /** * Classify whether version-control history is available in the target * repository, missing, or lives in an external (parent) repository. */ export declare function classifySourceHistory(targetDir: string): Promise; export declare function analyzeRepository(targetDir: string): Promise;