devmind-cli 0.1.0__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/PKG-INFO +1 -1
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind/ingestion/file_reader.py +6 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind/memory.py +4 -4
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind_cli.egg-info/PKG-INFO +1 -1
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/pyproject.toml +1 -1
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/README.md +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind/__init__.py +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind/cli.py +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind/ingestion/comment_extractor.py +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind/ingestion/git_parser.py +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind/integrations/claude_code.py +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind/web/app.py +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind_cli.egg-info/SOURCES.txt +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind_cli.egg-info/dependency_links.txt +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind_cli.egg-info/entry_points.txt +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind_cli.egg-info/requires.txt +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/devmind_cli.egg-info/top_level.txt +0 -0
- {devmind_cli-0.1.0 → devmind_cli-0.1.2}/setup.cfg +0 -0
|
@@ -80,6 +80,12 @@ def scan_codebase_files(root_dir: str) -> list[dict]:
|
|
|
80
80
|
with open(file_path, "r", encoding="utf-8", errors="ignore") as f:
|
|
81
81
|
content = f.read()
|
|
82
82
|
|
|
83
|
+
# Skip empty or trivial files (e.g. empty __init__.py files)
|
|
84
|
+
# to prevent LLM structured output validation failures in Cognee
|
|
85
|
+
stripped_content = content.strip()
|
|
86
|
+
if not stripped_content or len(stripped_content) < 15:
|
|
87
|
+
continue
|
|
88
|
+
|
|
83
89
|
codebase_files.append({
|
|
84
90
|
"relative_path": str(relative_path),
|
|
85
91
|
"absolute_path": str(file_path),
|
|
@@ -2,14 +2,14 @@ import os
|
|
|
2
2
|
import logging
|
|
3
3
|
import random
|
|
4
4
|
import asyncio
|
|
5
|
-
from dotenv import load_dotenv
|
|
5
|
+
from dotenv import load_dotenv, find_dotenv
|
|
6
6
|
|
|
7
7
|
# Set up logging
|
|
8
8
|
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")
|
|
9
9
|
logger = logging.getLogger("devmind.memory")
|
|
10
10
|
|
|
11
11
|
# Load dotenv and set project-scoped directories BEFORE importing cognee
|
|
12
|
-
load_dotenv()
|
|
12
|
+
load_dotenv(find_dotenv(usecwd=True))
|
|
13
13
|
|
|
14
14
|
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
15
15
|
system_path = os.path.join(project_root, ".cognee_system")
|
|
@@ -37,7 +37,7 @@ def load_api_keys():
|
|
|
37
37
|
Supports a comma-separated list via GROQ_API_KEYS, falling back to GROQ_API_KEY.
|
|
38
38
|
"""
|
|
39
39
|
global _GROQ_API_KEYS
|
|
40
|
-
load_dotenv()
|
|
40
|
+
load_dotenv(find_dotenv(usecwd=True))
|
|
41
41
|
|
|
42
42
|
# Read GROQ_API_KEYS comma-separated list
|
|
43
43
|
keys_str = os.getenv("GROQ_API_KEYS", "")
|
|
@@ -79,7 +79,7 @@ def initialize_cognee():
|
|
|
79
79
|
"""
|
|
80
80
|
Loads configuration from .env and verifies LLM & Embedding provider setup.
|
|
81
81
|
"""
|
|
82
|
-
load_dotenv()
|
|
82
|
+
load_dotenv(find_dotenv(usecwd=True))
|
|
83
83
|
load_api_keys()
|
|
84
84
|
|
|
85
85
|
# Disable backend access control and authentication for local CLI use
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|