import { allIssuesInputKeys, runSweep, validateSweepInput, type SweepInput } from './sweep.ts' /** * All-issues sweep: every open issue in repos marked `allIssues` (friction * issues only in the other sweep repos), minus `needs-kent` (and equivalent * owner-decision labels), `friction-skipped`, issues an open PR references, * and issues held by in-flight sessions. Issues in extra-care areas are * included and tagged for the prompt's checklist. Groups by theme with Clef (keyword fallback) and * starts one Devin session per group with the same caps as the daily sweep. * A superset of the daily friction sweep. At most one spawning run per * Denver day. * * @param input - same keys as `./sweep` * @returns plan or run summary: per-repo exclusions, groups, timings * * @example * import allIssues from 'kody:@kody/kody-factory/friction/all-issues' * * const preview = await allIssues({ dryRun: true, includePrompts: false }) */ export default async function allIssues(input: SweepInput = {}) { validateSweepInput(input as Record, allIssuesInputKeys) return await runSweep({ ...input, mode: 'all-issues' }) }