← 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.
Files
import { launchOrPreviewCursor } from './cursor-launch.ts'
import { launchOrPreviewDevin } from './devin-launch.ts'
import { createRunNow, type SpawnOrPreviewInput } from './run-core.ts'
import { launcherOf } from './shared.ts'
async function spawnOrPreview(input: SpawnOrPreviewInput) {
if (launcherOf(input.automation) === 'devin') return await launchOrPreviewDevin(input)
return await launchOrPreviewCursor(input)
}
/**
* Run one automation now against its configured repos (or a single repo).
* Devin automations launch a Devin session; the others launch a Cursor Cloud Agent.
*
* @example
* import runNow from 'kody:@kody/kody-factory/cleanup/run'
* await runNow({ automation: 'keep-tests-tight', dryRun: true })
*/
export default createRunNow(spawnOrPreview)
export type { RunNowInput } from './run-core.ts'