Class: Aidp::Execute::WorkflowSelector
- Inherits:
-
Object
- Object
- Aidp::Execute::WorkflowSelector
- Includes:
- MessageDisplay
- Defined in:
- lib/aidp/execute/workflow_selector.rb
Overview
Handles interactive workflow selection and project setup
Constant Summary
Constants included from MessageDisplay
Instance Method Summary collapse
-
#initialize(prompt: TTY::Prompt.new, workflow_selector: nil) ⇒ WorkflowSelector
constructor
A new instance of WorkflowSelector.
-
#select_workflow(harness_mode: false, mode: nil) ⇒ Object
Main entry point for interactive workflow selection.
Methods included from MessageDisplay
#display_message, included, #message_display_prompt
Constructor Details
#initialize(prompt: TTY::Prompt.new, workflow_selector: nil) ⇒ WorkflowSelector
Returns a new instance of WorkflowSelector.
13 14 15 16 17 |
# File 'lib/aidp/execute/workflow_selector.rb', line 13 def initialize(prompt: TTY::Prompt.new, workflow_selector: nil) @user_input = {} @prompt = prompt @workflow_selector = workflow_selector || Aidp::Workflows::Selector.new(prompt: @prompt) end |
Instance Method Details
#select_workflow(harness_mode: false, mode: nil) ⇒ Object
Main entry point for interactive workflow selection
20 21 22 23 24 25 26 27 28 |
# File 'lib/aidp/execute/workflow_selector.rb', line 20 def select_workflow(harness_mode: false, mode: nil) if harness_mode # In harness mode, use default values to avoid blocking select_workflow_with_defaults else # Use new unified workflow selector (default as of Issue #79) select_workflow_with_new_selector(mode) end end |