Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions conductor-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,24 +184,7 @@ fi
echo -e "${GREEN}βœ… Setup complete.${NC}"
echo ""

# Step 5: Auto-commit generated files (with user consent)
echo -e "${YELLOW}πŸ“ Committing generated files to Git...${NC}"
git add .conductor .github setup.py requirements.txt pyproject.toml VERSION 2>/dev/null
if git diff --staged --quiet; then
echo -e "${GREEN}βœ… No changes to commit (files already in Git).${NC}"
else
read -p "Commit these changes automatically? [Y/n]: " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]] || [[ -z $REPLY ]]; then
git commit -m "Initialize Code Conductor setup" || echo -e "${YELLOW}⚠️ Commit failed.${NC}"
echo -e "${GREEN}βœ… Changes committed.${NC}"
else
echo -e "${YELLOW}⚠️ Skipping commit. Remember to commit manually.${NC}"
fi
fi
echo ""

# Step 6: Interactive Role Configuration (improved: numbered menu)
# Step 5: Interactive Role Configuration (improved: numbered menu)
echo -e "${YELLOW}🎭 Configuring agent roles...${NC}"

# Read detected stacks from config
Expand Down Expand Up @@ -319,7 +302,7 @@ EOF
fi
fi

# Step 7: Seed Demo Tasks
# Step 6: Seed Demo Tasks
echo ""
echo -e "${YELLOW}πŸ“ Creating demo tasks...${NC}"

Expand Down Expand Up @@ -366,6 +349,24 @@ else:
" || echo -e "${YELLOW}⚠️ Could not create demo tasks.${NC}"
fi

# Step 7: Auto-commit generated files (with user consent)
echo ""
echo -e "${YELLOW}πŸ“ Committing generated files to Git...${NC}"
git add .conductor .github setup.py requirements.txt pyproject.toml VERSION 2>/dev/null
if git diff --staged --quiet; then
echo -e "${GREEN}βœ… No changes to commit (files already in Git).${NC}"
else
read -p "Commit these changes automatically? [Y/n]: " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]] || [[ -z $REPLY ]]; then
git commit -m "Initialize Code Conductor setup" || echo -e "${YELLOW}⚠️ Commit failed.${NC}"
echo -e "${GREEN}βœ… Changes committed.${NC}"
else
echo -e "${YELLOW}⚠️ Skipping commit. Remember to commit manually.${NC}"
fi
fi
echo ""

# Step 8: Launch Agent (improved: handle uncommitted changes)
echo ""
read -p "Would you like to start a dev agent now? [Y/n]: " -n 1 -r
Expand Down
Loading