src.modes.creator.task_generator module
Task Generator for Marcus Creator Mode.
Generates properly ordered tasks from templates to prevent illogical
assignments.
-
class src.modes.creator.task_generator.TaskGenerator[source]
Bases: object
Generates task structures from templates or requirements.
-
__init__()[source]
- Return type:
None
-
async generate_from_template(template, customizations)[source]
Generate tasks from template with customizations.
- Parameters:
template (ProjectTemplate) – Project template to use
customizations (Dict[str, Any]) – Custom parameters like size, excluded_phases, etc.
- Returns:
List of generated tasks with proper dependencies
- Return type:
List[Task]
-
async create_task_hierarchy(tasks, project_name='unnamed_project')[source]
Create proper task objects from raw task data.
- Parameters:
tasks (List[Dict[str, Any]]) – List of task dictionaries
project_name (str) – Name of the project for working directory (default: “unnamed_project”)
- Returns:
List of Task objects with proper structure
- Return type:
List[Task]