import { type ResourceNode } from "../core.js"; import type { ValidationError } from "./compile.js"; import { type GitCheckout } from "./git.js"; export type BindHarnessRepositoriesResult = { nodes: ResourceNode[]; errors: ValidationError[]; /** * Non-fatal lines for the plan: which agents were bound to what, and which * were left unbound. An inferred repository is not visible in the code that * declared it, so printing it is the only way a reviewer can approve it. */ notes: string[]; }; export type BindHarnessRepositoriesOptions = { /** The project directory, used to resolve the checkout. Defaults to the cwd. */ dir?: string; /** Injectable git reader, so the pass is testable without a real checkout. */ readCheckout?: (startDir: string) => Promise; /** * Injectable package.json probe, for the same reason: the root walk reads the * filesystem, and a test using fake paths must not depend on what happens to * be on the disk under them. */ declaresCdk?: (dir: string) => boolean; }; /** * Fill the omitted `repository` fields of every harness agent in `nodes` from * the checkout and the project's GitHub connector. Returns the nodes to compile * (unchanged ones by reference), any binding failures as validation errors, and * notes describing what was resolved. */ export declare function bindHarnessRepositories(nodes: readonly ResourceNode[], options?: BindHarnessRepositoriesOptions): Promise; //# sourceMappingURL=bindHarnessRepository.d.ts.map