src.integrations.nlp_task_utils module#
Natural Language Task Processing Utilities.
Shared utilities for natural language task creation tools. Eliminates code duplication between create_project and add_feature.
- class src.integrations.nlp_task_utils.TaskType[source]#
Bases:
EnumTask type classification.
- DESIGN = 'design'#
- DEPLOYMENT = 'deployment'#
- IMPLEMENTATION = 'implementation'#
- TESTING = 'testing'#
- INTEGRATION = 'integration'#
- DOCUMENTATION = 'documentation'#
- INFRASTRUCTURE = 'infrastructure'#
- OTHER = 'other'#
- class src.integrations.nlp_task_utils.TaskClassifier[source]#
Bases:
objectClassify tasks by their type based on keywords.
- TASK_KEYWORDS = {TaskType.DEPLOYMENT: ['deploy', 'release', 'production', 'launch', 'rollout', 'publish', 'go-live', 'deliver', 'staging', 'live'], TaskType.DESIGN: ['design', 'architect', 'plan', 'specification', 'wireframe', 'mockup', 'diagram', 'blueprint', 'prototype', 'architecture', 'planning'], TaskType.DOCUMENTATION: ['document', 'docs', 'readme', 'guide', 'tutorial', 'manual', 'wiki', 'annotate', 'comment'], TaskType.IMPLEMENTATION: ['implement', 'build', 'create', 'develop', 'code', 'construct', 'write', 'refactor', 'program', 'engineer', 'fix', 'bugfix', 'bug', 'patch', 'hotfix', 'repair', 'resolve'], TaskType.INFRASTRUCTURE: ['setup', 'configure', 'install', 'provision', 'infrastructure', 'database', 'server', 'environment', 'docker', 'kubernetes'], TaskType.INTEGRATION: ['integration verification', 'build verification', 'smoke test', 'startup verification', 'system verification', 'health check', 'endpoint verification'], TaskType.TESTING: ['test', 'qa', 'quality', 'verify', 'validate', 'check', 'assert', 'unittest', 'e2e', 'coverage']}#
- class src.integrations.nlp_task_utils.TaskBuilder[source]#
Bases:
objectBuild task data structures for kanban board creation.
- class src.integrations.nlp_task_utils.SafetyChecker[source]#
Bases:
objectApply safety checks to ensure logical task ordering.
- apply_deployment_dependencies(tasks)[source]#
Ensure deployment tasks depend on implementation and testing tasks.
This prevents premature deployment by establishing proper dependencies.
- apply_implementation_dependencies(tasks)[source]#
Ensure implementation tasks depend on design tasks.
Supports both bundled domain designs (GH-108) and per-feature designs for backward compatibility with existing workflows.
Bundled designs have IDs like: design_user_authentication Per-feature designs have IDs like: task_user-login_design