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
MessageDisplay::COLOR_MAP, MessageDisplay::CRITICAL_TYPES
Instance Attribute Summary collapse
-
#user_input ⇒ Object
readonly
Expose for testability.
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, #quiet_mode?
Constructor Details
#initialize(prompt: TTY::Prompt.new, workflow_selector: nil) ⇒ WorkflowSelector
Returns a new instance of WorkflowSelector.
16 17 18 19 20 |
# File 'lib/aidp/execute/workflow_selector.rb', line 16 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 Attribute Details
#user_input ⇒ Object (readonly)
Expose for testability
14 15 16 |
# File 'lib/aidp/execute/workflow_selector.rb', line 14 def user_input @user_input end |
Instance Method Details
#select_workflow(harness_mode: false, mode: nil) ⇒ Object
Main entry point for interactive workflow selection
23 24 25 26 27 28 29 30 31 |
# File 'lib/aidp/execute/workflow_selector.rb', line 23 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 |