File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed
Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 1+ """
2+ Elimu Research Assistant - An intelligent research tool for Kenyan educators.
3+ """
14
2- # Empty init file to make the root directory a package
5+ __version__ = "1.0.2"
6+ __author__ = "Ashioya Jotham"
7+ __email__ = "victorashioya960@gmail.com"
8+
9+ from .cli import main
10+
11+ __all__ = ["main" ]
Original file line number Diff line number Diff line change 4141│ [bold yellow]"Bridging the Context Deficit in Education"[/bold yellow] │
4242╰──────────────────────────────────────────────────────────────╯[/bold blue]
4343"""
44+ try :
45+ from . import __version__
46+ except ImportError :
47+ __version__ = "1.0.2" # Default version if import fails
48+
4449
4550def display_banner ():
4651 """Display the ASCII art banner."""
@@ -119,7 +124,7 @@ def _extract_preview_sections(content, max_length=2000):
119124 return preview
120125
121126@click .group ()
122- @click .version_option (version = "1.0.0 " )
127+ @click .version_option (version = "1.0.2 " )
123128@click .option ('--verbose' , '-v' , is_flag = True , help = "Enable verbose logging" )
124129@click .option ('--no-config' , is_flag = True , help = "Skip API key checks (commands requiring API keys will fail)" )
125130def cli (verbose , no_config ):
Original file line number Diff line number Diff line change 77# Load environment variables from .env file
88load_dotenv ()
99
10- # Global configuration
11- _config = {}
10+ # Global variable to hold the configuration
11+ _config = ConfigManager ()
1212
1313def init_config ():
1414 """Initialize the configuration for Elimu Research Assistant."""
@@ -56,7 +56,7 @@ def init_config():
5656def get_config ():
5757 """Get the current configuration."""
5858 global _config
59- if not _config :
59+ if _config is None :
6060 return init_config ()
6161 return _config
6262
@@ -65,14 +65,14 @@ def update_config(key, value):
6565 global _config
6666
6767 # Initialize if not already initialized
68- if not _config :
68+ if _config is None :
6969 init_config ()
7070
7171 # Update the value
7272 _config [key ] = value
7373
7474 # Save to file
75- config_dir = Path .home () / ".web_research_agent "
75+ config_dir = Path .home () / ".elimu_research_assistant "
7676 config_file = config_dir / "config.json"
7777
7878 with open (config_file , "w" ) as f :
You can’t perform that action at this time.
0 commit comments