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-non-interactive-integration.test.tsmodified+4-3
Changes to test/cli-non-interactive-integration.test.ts
@@ -123,7 +123,8 @@ describe('CLI Non-Interactive Integration Tests', () => {
123123 // Verify the unified workflow has the correct content
124124 const unifiedContent = await fs.readFile('.github/workflows/buddy.yml', 'utf-8')
125125 expect(unifiedContent).toContain('name: Buddy')
126 expect(unifiedContent).toContain('cron: \'0 */2 * * *\'')
126 // The standard preset's own schedule, not a constant the generator invents.
127 expect(unifiedContent).toContain('cron: \'0 9 * * 1,3,5\'')
127128 expect(unifiedContent).toContain('default: true') // dry_run default
128129 })
129130
@@ -186,7 +187,7 @@ describe('CLI Non-Interactive Integration Tests', () => {
186187 // Test all the required sections from the specification
187188 const requiredSections = [
188189 'name: Buddy',
189 'cron: \'0 */2 * * *\'',
190 'cron: \'0 9 * * 1,3,5\'',
190191 'workflow_dispatch:',
191192 'strategy:',
192193 'dry_run:',
@@ -251,7 +252,7 @@ describe('CLI Non-Interactive Integration Tests', () => {
251252
252253 const requiredSections = [
253254 'name: Buddy',
254 'cron: \'15 */2 * * *\'',
255 'cron: \'0 9 * * 1,3,5\'',
255256 'workflow_dispatch:',
256257 'bunx @buddysh/buddy dashboard',
257258 'dashboard-update:', // job name