mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-11 21:42:36 +00:00
Fixes #4345 When creating a crew with 'crewai create crew test', the name 'test' conflicts with the 'test' script entry in pyproject.toml, causing a duplicate key error. This change adds validation to reject project names that would conflict with reserved script names in the generated pyproject.toml: For crews: run_crew, train, replay, test, run_with_trigger For flows: kickoff, run_crew, plot, run_with_trigger The fix provides a clear error message asking users to choose a different name. Co-Authored-By: João <joao@crewai.com>