ReviewOS

also looking at this

stacks/buddy

feat(setup): make the preset you pick the preset you get

#1412
Merged glennmichael123 wants to merge feat/preset-wiring into main
10 files +507 -61
test/cli-setup-simple.test.tsmodified+4-4
Changes to test/cli-setup-simple.test.ts
@@ -7,7 +7,7 @@ describe('CLI Setup - Enhanced Functions', () => {
77 const workflow = generateUnifiedWorkflow(true)
88
99 expect(workflow).toContain('name: Buddy')
10 expect(workflow).toContain('cron: \'15 */2 * * *\'') // Updated dashboard schedule
10 expect(workflow).toContain('cron: \'0 9 * * 1,3,5\'') // Standard preset schedule
1111 // GITHUB_TOKEN is the built-in token; BUDDY_TOKEN is passed separately for workflow file permissions
1212 // eslint-disable-next-line no-template-curly-in-string
1313 expect(workflow).toContain('GITHUB_TOKEN: $')
@@ -38,8 +38,8 @@ describe('CLI Setup - Enhanced Functions', () => {
3838 expect(workflow).toContain('dependency-update:')
3939 expect(workflow).toContain('dashboard-update:')
4040 expect(workflow).toContain('pull_request:') // Rebase checkbox triggers instantly via PR edit event
41 expect(workflow).toContain('cron: \'0 */2 * * *\'') // Update every 2 hours
42 expect(workflow).toContain('cron: \'15 */2 * * *\'') // Dashboard 15 mins after updates
41 expect(workflow).toContain('cron: \'0 9 * * 1,3,5\'') // Updates and dashboard
42 expect(workflow).toContain('cron: \'0 4 * * *\'') // Housekeeping, never preset-driven
4343 expect(workflow).toContain('bunx @buddysh/buddy update-check')
4444 expect(workflow).toContain('bunx @buddysh/buddy update')
4545 expect(workflow).toContain('bunx @buddysh/buddy dashboard')
@@ -70,7 +70,7 @@ describe('CLI Setup - Enhanced Functions', () => {
7070 const workflow = generateUnifiedWorkflow(false)
7171
7272 expect(workflow).toContain('name: Buddy')
73 expect(workflow).toContain('cron: \'0 */2 * * *\'')
73 expect(workflow).toContain('cron: \'0 9 * * 1,3,5\'')
7474 expect(workflow).toContain('default: false') // dry_run default
7575 expect(workflow).toContain('dependency-update:') // job name
7676 expect(workflow).toContain('determine-jobs:') // job coordination