devmind-cli 0.1.2__tar.gz → 0.1.3__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.2
3
+ Version: 0.1.3
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
@@ -87,27 +87,25 @@ async def remember_pipeline(directory: str):
87
87
  # 2. Extract and Ingest Git History
88
88
  git_logs = get_git_history(directory, max_commits=20)
89
89
  if git_logs:
90
- typer.echo(f"Ingesting git history ({len(git_logs)} commits) into Cognee...")
91
- git_success = 0
92
- for idx, commit_log in enumerate(git_logs, start=1):
93
- dataset_name = f"git_commit_{idx}"
94
- success = await remember_content(commit_log, dataset_name=dataset_name)
95
- if success:
96
- git_success += 1
97
- typer.echo(f"Successfully remembered {git_success}/{len(git_logs)} commits.")
90
+ typer.echo("Ingesting combined git history into Cognee...")
91
+ combined_git = "\n\n---\n\n".join(git_logs)
92
+ success = await remember_content(combined_git, dataset_name="git_history")
93
+ if success:
94
+ typer.echo("Successfully remembered git history.")
95
+ else:
96
+ typer.echo("[Warning] Failed to ingest git history.")
98
97
 
99
98
  # 3. Extract and Ingest Inline Comments & Docstrings
100
99
  relative_paths = [f["relative_path"] for f in files]
101
100
  comments = get_codebase_comments(directory, relative_paths)
102
101
  if comments:
103
- typer.echo(f"Ingesting inline comments ({len(comments)} files containing comments)...")
104
- comment_success = 0
105
- for idx, comment_block in enumerate(comments, start=1):
106
- dataset_name = f"code_comments_{idx}"
107
- success = await remember_content(comment_block, dataset_name=dataset_name)
108
- if success:
109
- comment_success += 1
110
- typer.echo(f"Successfully remembered {comment_success}/{len(comments)} comment segments.")
102
+ typer.echo("Ingesting combined inline comments into Cognee...")
103
+ combined_comments = "\n\n---\n\n".join(comments)
104
+ success = await remember_content(combined_comments, dataset_name="code_comments")
105
+ if success:
106
+ typer.echo("Successfully remembered code comments.")
107
+ else:
108
+ typer.echo("[Warning] Failed to ingest code comments.")
111
109
 
112
110
  @app.command()
113
111
  def remember(
@@ -44,10 +44,11 @@ def load_api_keys():
44
44
  if keys_str:
45
45
  _GROQ_API_KEYS = [k.strip() for k in keys_str.split(",") if k.strip()]
46
46
 
47
- # Fallback to single GROQ_API_KEY if not already in the list
48
- single_key = os.getenv("GROQ_API_KEY", "")
49
- if single_key and single_key not in _GROQ_API_KEYS:
50
- _GROQ_API_KEYS.append(single_key)
47
+ # Fallback to single GROQ_API_KEY only if no list keys were found
48
+ if not _GROQ_API_KEYS:
49
+ single_key = os.getenv("GROQ_API_KEY", "")
50
+ if single_key:
51
+ _GROQ_API_KEYS.append(single_key)
51
52
 
52
53
  def get_random_api_key() -> tuple[str, str, str]:
53
54
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devmind-cli
3
- Version: 0.1.2
3
+ Version: 0.1.3
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.2"
7
+ version = "0.1.3"
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