Module: Aircana::CLI::DoctorChecks::AircanaConfiguration

Included in:
Aircana::CLI::Doctor
Defined in:
lib/aircana/cli/commands/doctor_checks.rb

Instance Method Summary collapse

Instance Method Details

#check_agents_statusObject



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/aircana/cli/commands/doctor_checks.rb', line 42

def check_agents_status
  agents_dir = File.join(Dir.pwd, ".claude", "agents")
  if Dir.exist?(agents_dir) && !Dir.empty?(agents_dir)
    kb_count = Dir.glob(File.join(agents_dir, "*.md")).size
    log_success("KBs", "#{kb_count} knowledge base(s) configured")
  elsif Dir.exist?(agents_dir)
    log_info("KBs", "Knowledge bases directory exists but is empty")
  else
    log_info("KBs", "No knowledge bases configured yet")
    log_remedy("Create knowledge bases with: aircana kb create")
  end
end

#check_aircana_configurationObject



35
36
37
38
39
40
# File 'lib/aircana/cli/commands/doctor_checks.rb', line 35

def check_aircana_configuration
  Aircana.human_logger.info "\nAircana Configuration:"

  check_directory("~/.aircana", "Global Aircana directory")
  check_agents_status
end