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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devmind-cli
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: DevMind - Semantic Codebase Memory and Agentic Search for Developers
5
5
  Author: Anishp-cell
6
6
  Project-URL: Homepage, https://github.com/Anishp-cell/devmind-CLI
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devmind-cli
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: DevMind - Semantic Codebase Memory and Agentic Search for Developers
5
5
  Author: Anishp-cell
6
6
  Project-URL: Homepage, https://github.com/Anishp-cell/devmind-CLI
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "devmind-cli"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "DevMind - Semantic Codebase Memory and Agentic Search for Developers"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes
File without changes