← 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
/**
* Monday 4:00 AM America/Denver: weekly CI review. A full review reads a few
* hundred GitHub responses, which can outlast a plain job run, so the job hands
* the work to one durable workflow (`./ci-review/weekly-run`). The idempotency
* key makes a repeated trigger in the same week return the existing run.
*/
import { workflows } from 'kody:runtime'
import { weekKey } from '../ci-review/shared.ts'
export default async function ciReviewWeekly() {
if (!workflows) throw new Error('kody:runtime workflows is unavailable; cannot start the weekly CI review')
const week = weekKey()
return await workflows.create({
workflowName: 'factory ci-review weekly',
exportName: './ci-review/weekly-run',
runAt: new Date(),
idempotencyKey: `factory:ci-review:weekly:${week}`,
params: {},
})
}