/** * `slowcook investigate` — bug-flow analogue of refine. * * Reads a GitHub issue (label: `bug`), uses code tools to find the * failure locus, emits `.brewing/bug-profiles/B-.yaml` and opens * a PR proposing the profile. The PR's merge triggers * `slowcook-recipe-regression.yml` (alpha.3) which kicks off * `recipe --regression` to write the failing test. * * **Status**: alpha.2a — scaffold only. Parses args, prints what it * WOULD do. Real LLM agent + PR opening land in alpha.2b. Calling the * command today exits with a clear "not yet implemented" notice so * accidental wiring (e.g., a workflow trigger) fails fast and visibly. */ import { type BugProfile } from "./schema.js"; /** * Pick the next free bug-id by walking `.brewing/bug-profiles/` * (and once branches exist, also \`slowcook/bug-profile/B-*\`). Same * race-aware pattern as story-id assignment (slowcook#8 fix). * * Exposed for use by alpha.2b once the agent emits real profiles. */ export declare function pickNextBugId(repoRoot: string): string; /** * Build a stub bug profile from issue metadata only — no code reading. * alpha.2a placeholder. alpha.2b replaces this with an LLM-driven * agent that actually investigates. */ export declare function buildStubProfile(args: { issueNumber: number; issueTitle: string; bugId: string; cliVersion: string; now: Date; }): BugProfile; export declare function investigate(argv: string[], cliVersion: string): Promise; /** * Render a BugProfile as YAML. Hand-rolled because we don't want to * pull a YAML lib dep just for emission. The schema is small enough * that this is fine. */ export declare function renderProfileAsYaml(profile: BugProfile): string; //# sourceMappingURL=index.d.ts.map