Skip to content

Commit 01e0601

Browse files
committed
Merge branch 'development'
It's time to build
2 parents 841375b + 74effd7 commit 01e0601

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
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"]

cli.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
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

4550
def 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)")
125130
def cli(verbose, no_config):

config/config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# Load environment variables from .env file
88
load_dotenv()
99

10-
# Global configuration
11-
_config = {}
10+
# Global variable to hold the configuration
11+
_config = ConfigManager()
1212

1313
def init_config():
1414
"""Initialize the configuration for Elimu Research Assistant."""
@@ -56,7 +56,7 @@ def init_config():
5656
def 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:

0 commit comments

Comments
 (0)