|
184 | 184 | echo -e "${GREEN}✅ Setup complete.${NC}" |
185 | 185 | echo "" |
186 | 186 |
|
187 | | -# Step 5: Auto-commit generated files (with user consent) |
188 | | -echo -e "${YELLOW}📝 Committing generated files to Git...${NC}" |
189 | | -git add .conductor .github setup.py requirements.txt pyproject.toml VERSION 2>/dev/null |
190 | | -if git diff --staged --quiet; then |
191 | | - echo -e "${GREEN}✅ No changes to commit (files already in Git).${NC}" |
192 | | -else |
193 | | - read -p "Commit these changes automatically? [Y/n]: " -n 1 -r |
194 | | - echo "" |
195 | | - if [[ $REPLY =~ ^[Yy]$ ]] || [[ -z $REPLY ]]; then |
196 | | - git commit -m "Initialize Code Conductor setup" || echo -e "${YELLOW}⚠️ Commit failed.${NC}" |
197 | | - echo -e "${GREEN}✅ Changes committed.${NC}" |
198 | | - else |
199 | | - echo -e "${YELLOW}⚠️ Skipping commit. Remember to commit manually.${NC}" |
200 | | - fi |
201 | | -fi |
202 | | -echo "" |
203 | | - |
204 | | -# Step 6: Interactive Role Configuration (improved: numbered menu) |
| 187 | +# Step 5: Interactive Role Configuration (improved: numbered menu) |
205 | 188 | echo -e "${YELLOW}🎭 Configuring agent roles...${NC}" |
206 | 189 |
|
207 | 190 | # Read detected stacks from config |
|
319 | 302 | fi |
320 | 303 | fi |
321 | 304 |
|
322 | | -# Step 7: Seed Demo Tasks |
| 305 | +# Step 6: Seed Demo Tasks |
323 | 306 | echo "" |
324 | 307 | echo -e "${YELLOW}📝 Creating demo tasks...${NC}" |
325 | 308 |
|
@@ -366,6 +349,23 @@ else: |
366 | 349 | " || echo -e "${YELLOW}⚠️ Could not create demo tasks.${NC}" |
367 | 350 | fi |
368 | 351 |
|
| 352 | +# Step 7: Auto-commit all generated files (with user consent) |
| 353 | +echo "" |
| 354 | +echo -e "${YELLOW}📝 Committing all generated files to Git...${NC}" |
| 355 | +git add .conductor .github setup.py requirements.txt pyproject.toml VERSION 2>/dev/null |
| 356 | +if git diff --staged --quiet; then |
| 357 | + echo -e "${GREEN}✅ No changes to commit (files already in Git).${NC}" |
| 358 | +else |
| 359 | + read -p "Commit these changes automatically? [Y/n]: " -n 1 -r |
| 360 | + echo "" |
| 361 | + if [[ $REPLY =~ ^[Yy]$ ]] || [[ -z $REPLY ]]; then |
| 362 | + git commit -m "Initialize Code Conductor setup with configuration" || echo -e "${YELLOW}⚠️ Commit failed.${NC}" |
| 363 | + echo -e "${GREEN}✅ Changes committed.${NC}" |
| 364 | + else |
| 365 | + echo -e "${YELLOW}⚠️ Skipping commit. Remember to commit manually.${NC}" |
| 366 | + fi |
| 367 | +fi |
| 368 | + |
369 | 369 | # Step 8: Development Environment Selection |
370 | 370 | echo "" |
371 | 371 | echo -e "${YELLOW}🖥️ Select your primary development environment:${NC}" |
|
0 commit comments