Skip to content
← Public packages

@kentcdodds/codebase-cleanup

Cursor cloud agents for legacy cleanup, docs freshness, tight tests, and prod CI fixes, plus a weekly Devin general audit.

FollowFork

Files

index.ts

33 lines · 1.1 KB · TypeScript
/**
 * Overview for @kentcdodds/codebase-cleanup: Cursor-agent automations
 * (legacy-reaper, prod-ci-failure, docs-freshness, keep-tests-tight) plus a
 * Devin general-audit, with
 * per-automation repo lists in package storage.
 */
import { listConfig, recentLaunches } from './config.ts'
import { listPromptTemplates } from './prompts.ts'
import { defaultModel, defaultRepos } from './shared.ts'

/**
 * Package overview: automation ids, default model, and current config summary.
 *
 * @example
 * import overview from 'kody:@kentcdodds/codebase-cleanup'
 * await overview()
 */
export default async function overview() {
	const config = await listConfig()
	return {
		package: '@kentcdodds/codebase-cleanup',
		defaultRepos,
		defaultModel,
		promptTemplates: listPromptTemplates(),
		automations: config.automations,
		recentLaunches: await recentLaunches({ limit: 5 }),
	}
}

export { listConfig, get, set, addRepo, removeRepo, recentLaunches } from './config.ts'
export { default as runNow } from './run.ts'
export { resolvePrompt, listPromptTemplates } from './prompts.ts'
export { default as handleCiFailure } from './handle-ci-failure.ts'