/** * Verifier discovery — convention-based loading of project-local verifiers. * * Discovers verifier modules from `.pi/taskflows/verifiers/` (project scope) * and `~/.pi/taskflows/verifiers/` (user scope). Each `.ts` or `.js` file in * the directory is dynamically imported; its default export (or named * `verifier` / `verifiers` export) is collected. Project-scope verifiers * shadow user-scope verifiers with the same `name`. * * This is the minimum-viable discovery deferred by #82: convention dir, no * config file, no registry. Programmatic registration via * `verifyTaskflow(flow, { verifiers })` always takes precedence. * * Discovery is async (dynamic import) and fail-open: a broken verifier module * is skipped with a warning, never crashes the host. */ import type { TaskflowVerifier } from "../verify.ts"; export interface DiscoveredVerifiers { /** All discovered verifiers, project-scope shadowing user-scope by name. */ verifiers: TaskflowVerifier[]; /** Warnings for modules that failed to load or had no valid exports. */ warnings: string[]; /** Directories that were scanned. */ dirs: string[]; } /** * Discover project-local and user-scope verifiers from the convention * directories. Fail-open: broken modules are skipped with a warning. * * Project-scope verifiers shadow user-scope verifiers with the same `name`. * Within a scope, files are loaded in sorted order; later files do NOT shadow * earlier ones with the same name (first wins within a scope). */ export declare function discoverVerifiers(cwd: string): Promise; /** * Synchronous variant: discovers verifier files but does NOT import them * (import is async). Returns the file paths that would be loaded, for * diagnostics / `--list-verifiers` style commands. */ export declare function listVerifierPaths(cwd: string): { project: string[]; user: string[]; }; //# sourceMappingURL=discover.d.ts.map