Skip to content
← Public packages

@kody/kody-factory

Forkable multi-project software factory: signals, priority queue, project UI, sweep job. Agent runners and Sentry reach it by events.

FollowFork

Files

run.ts

23 lines · 1.1 KB · TypeScript
/**
 * Weekly CI review of kody-hq/kody, run by the factory. Measures 7 days of
 * GitHub Actions (speed, cost, redundant work, flakiness), ranks what is worth
 * changing with confidence in shipping first, and posts one factory report:
 * safe wins become work cards, coverage trades become Needs-you cards. It
 * reads GitHub with GET only and never posts there.
 *
 * Dry run is the default and writes nothing. A full run reads a few hundred
 * GitHub responses (about 3 minutes), so run it with the local CLI:
 * `npx -y @kodycodes/cli@latest execute --local --org kody --invoke kody:@kody/kody-factory/ci-review/run --params '{"dryRun":true}'`
 *
 * @param input - `dryRun` (default true), `force`, `useModel`, `maxApiCalls`, `fullMetrics`, `notify`
 * @returns Dry run: metrics, ranking, and the report and cards it would post. Live: the report id, link, and cards.
 *
 * @example
 * import run from 'kody:@kody/kody-factory/ci-review/run'
 * await run({ dryRun: true })
 */
import { runCiReview, type CiReviewRunInput } from '../../ci-review/run.ts'

export default async function run(input: CiReviewRunInput = {}) {
	return runCiReview(input)
}