Class: Ralph::Output::Banner

Inherits:
Object
  • Object
show all
Defined in:
lib/ralph/output/banner.rb

Class Method Summary collapse

Class Method Details

.call(loop_context) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/ralph/output/banner.rb', line 6

def self.call(loop_context)
  Output::NoPluginWarning.call(loop_context) if loop_context.config.disable_plugins

  puts <<~BANNER

#{'=' * 66}    ║                    Ralph Wiggum Loop                            ║
    ║         Iterative AI Development with #{loop_context.agent.config_name.ljust(20)}#{'=' * 66}  BANNER

  if loop_context.config.tasks_mode
    tasks_storage = Storage::Tasks.new
    unless File.exist?(tasks_storage.path)
      tasks_storage.initialize_tasks_file
      Output::TasksFileCreated.call(path: tasks_storage.path)
    end
  end

  Output::ConfigSummary.call(loop_context)
end