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.
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/PKG-INFO +1 -1
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind/cli.py +14 -16
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind/memory.py +5 -4
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind_cli.egg-info/PKG-INFO +1 -1
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/pyproject.toml +1 -1
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/README.md +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind/__init__.py +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind/ingestion/comment_extractor.py +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind/ingestion/file_reader.py +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind/ingestion/git_parser.py +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind/integrations/claude_code.py +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind/web/app.py +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind_cli.egg-info/SOURCES.txt +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind_cli.egg-info/dependency_links.txt +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind_cli.egg-info/entry_points.txt +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind_cli.egg-info/requires.txt +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/devmind_cli.egg-info/top_level.txt +0 -0
- {devmind_cli-0.1.2 → devmind_cli-0.1.3}/setup.cfg +0 -0
|
@@ -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(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
"""
|
|
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
|