src.modes.creator.basic_creator module
Basic Creator Mode for Marcus Hybrid Approach.
Implements the Creator Mode that generates project structures from requirements
to prevent illogical task assignments like “Deploy to production” first.
-
class src.modes.creator.basic_creator.BasicCreatorMode[source]
Bases: object
Basic Creator Mode implementation.
-
__init__()[source]
- Return type:
None
-
async initialize(saved_state)[source]
Initialize mode with saved state.
- Return type:
None
- Parameters:
saved_state (Dict[str, Any])
-
async get_state()[source]
Get current mode state for saving.
- Return type:
Dict[str, Any]
-
async get_status()[source]
Get current mode status.
- Return type:
Dict[str, Any]
-
async create_project_from_template(template_name, project_name, customizations=None)[source]
Create a new project from a template.
- Parameters:
template_name (str) – Name of template to use (‘web’, ‘api’, ‘mobile’).
project_name (str) – Name for the new project.
customizations (Optional[Dict[str, Any]]) – Custom parameters (size, excluded_phases, etc.).
- Returns:
Result containing generated tasks.
- Return type:
Dict[str, Any]
-
async customize_project(adjustments)[source]
Customize the currently active project.
- Parameters:
adjustments (Dict[str, Any]) – Adjustments to make (add/remove phases, change size, etc.).
- Returns:
Updated project information.
- Return type:
Dict[str, Any]
-
async get_available_templates()[source]
Get list of available project templates.
- Return type:
Dict[str, Any]
-
async preview_template(template_name, size=None)[source]
Preview what a template would generate.
- Parameters:
-
- Returns:
Preview of tasks that would be generated.
- Return type:
Dict[str, Any]
-
async create_from_description(description, project_name)[source]
Create project from natural language description.
This is a simplified version - Phase 2 will add AI-powered analysis.
- Parameters:
-
- Returns:
Generated project or template recommendation.
- Return type:
Dict[str, Any]