llama-github 0.2.3__tar.gz → 0.2.5__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.
- {llama_github-0.2.3/llama_github.egg-info → llama_github-0.2.5}/PKG-INFO +2 -2
- {llama_github-0.2.3 → llama_github-0.2.5}/README.md +1 -1
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/data_retrieval/github_entities.py +80 -57
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/llm_integration/initial_load.py +5 -1
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/utils.py +2 -2
- llama_github-0.2.5/llama_github/version.py +1 -0
- {llama_github-0.2.3 → llama_github-0.2.5/llama_github.egg-info}/PKG-INFO +2 -2
- {llama_github-0.2.3 → llama_github-0.2.5}/setup.cfg +1 -1
- llama_github-0.2.3/llama_github/version.py +0 -1
- {llama_github-0.2.3 → llama_github-0.2.5}/CHANGELOG.md +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/LICENSE +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/MANIFEST.in +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/__init__.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/config/__init__.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/config/config.json +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/config/config.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/data_retrieval/__init__.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/data_retrieval/github_api.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/features/__init__.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/features/feature_flags.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/features/insider_features.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/github_integration/__init__.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/github_integration/github_auth_manager.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/github_rag.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/llm_integration/__init__.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/llm_integration/llm_handler.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/logger.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/rag_processing/__init__.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github/rag_processing/rag_processor.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github.egg-info/SOURCES.txt +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github.egg-info/dependency_links.txt +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github.egg-info/requires.txt +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/llama_github.egg-info/top_level.txt +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/setup.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/tests/test_data_retrieval.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/tests/test_github_auth_manager.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/tests/test_initial_load.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/tests/test_llm_handler.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/tests/test_logger.py +0 -0
- {llama_github-0.2.3 → llama_github-0.2.5}/tests/test_rag_processor.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: llama-github
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Llama-github is an open-source Python library that empowers LLM Chatbots, AI Agents, and Auto-dev Agents to conduct Retrieval from actively selected GitHub public projects. It Augments through LLMs and Generates context for any coding question, in order to streamline the development of sophisticated AI-driven applications.
|
|
5
5
|
Home-page: https://github.com/JetXu-LLM/llama-github
|
|
6
6
|
Author: Jet Xu
|
|
@@ -40,7 +40,7 @@ Requires-Dist: flake8; extra == "dev"
|
|
|
40
40
|
[](https://pepy.tech/project/Llama-github)
|
|
41
41
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
42
42
|
|
|
43
|
-
Llama-github is a powerful tool that helps you retrieve the most relevant code snippets, issues, and repository information from GitHub based on your queries, transforming them into valuable knowledge context. It empowers LLM Chatbots, AI Agents, and Auto-dev Agents to solve complex coding tasks. Whether you're a developer looking for quick solutions or an engineer implementing advanced Auto Dev AI Agents, llama-github makes it easy and efficient.
|
|
43
|
+
Llama-github is a powerful tool that helps you retrieve(based on Agentic RAG) the most relevant code snippets, issues, and repository information from GitHub based on your queries, transforming them into valuable knowledge context. It empowers LLM Chatbots, AI Agents, and Auto-dev Agents to solve complex coding tasks. Whether you're a developer looking for quick solutions or an engineer implementing advanced Auto Dev AI Agents, llama-github makes it easy and efficient.
|
|
44
44
|
|
|
45
45
|
If you like this project or believe it has potential, please give it a ⭐️. Your support is our greatest motivation!
|
|
46
46
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://pepy.tech/project/Llama-github)
|
|
5
5
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
6
6
|
|
|
7
|
-
Llama-github is a powerful tool that helps you retrieve the most relevant code snippets, issues, and repository information from GitHub based on your queries, transforming them into valuable knowledge context. It empowers LLM Chatbots, AI Agents, and Auto-dev Agents to solve complex coding tasks. Whether you're a developer looking for quick solutions or an engineer implementing advanced Auto Dev AI Agents, llama-github makes it easy and efficient.
|
|
7
|
+
Llama-github is a powerful tool that helps you retrieve(based on Agentic RAG) the most relevant code snippets, issues, and repository information from GitHub based on your queries, transforming them into valuable knowledge context. It empowers LLM Chatbots, AI Agents, and Auto-dev Agents to solve complex coding tasks. Whether you're a developer looking for quick solutions or an engineer implementing advanced Auto Dev AI Agents, llama-github makes it easy and efficient.
|
|
8
8
|
|
|
9
9
|
If you like this project or believe it has potential, please give it a ⭐️. Your support is our greatest motivation!
|
|
10
10
|
|
|
@@ -161,52 +161,54 @@ class Repository:
|
|
|
161
161
|
|
|
162
162
|
# Skip files that don't need processing
|
|
163
163
|
if any(file_path.endswith(ext) for ext in [
|
|
164
|
-
#
|
|
165
|
-
'.
|
|
166
|
-
'poetry.lock', 'Cargo.lock', 'composer.lock',
|
|
167
|
-
'.pyc', '.pyo', 'requirements.txt', '.gitignore',
|
|
168
|
-
|
|
169
|
-
# Binaries and compiled files
|
|
170
|
-
'.exe', '.dll', '.so', '.dylib', '.bin', '.obj', '.o', '.a',
|
|
164
|
+
# Binary and Compiled Files
|
|
165
|
+
'.exe', '.dll', '.so', '.dylib', '.bin', '.obj', '.o', '.a',
|
|
171
166
|
'.lib', '.jar', '.war', '.ear', '.class', '.pdb', '.ilk', '.exp',
|
|
172
|
-
'.apk', '.aab', '.ipa',
|
|
173
|
-
'.wasm', # WebAssembly
|
|
167
|
+
'.apk', '.aab', '.ipa', '.wasm',
|
|
174
168
|
|
|
175
|
-
# Media
|
|
169
|
+
# Media Files
|
|
176
170
|
'.png', '.jpg', '.jpeg', '.gif', '.ico', '.bmp', '.tiff', '.webp',
|
|
177
171
|
'.svg', '.eps', '.psd', '.ai', '.sketch',
|
|
178
172
|
'.mp3', '.mp4', '.wav', '.flac', '.ogg', '.m4a',
|
|
179
173
|
'.avi', '.mov', '.mkv', '.webm', '.wmv', '.flv',
|
|
180
|
-
'.
|
|
174
|
+
'.ttf', '.otf', '.eot', '.woff', '.woff2',
|
|
175
|
+
|
|
176
|
+
# Compressed and Binary Data
|
|
181
177
|
'.zip', '.rar', '.7z', '.tar', '.gz', '.bz2', '.xz', '.tgz',
|
|
178
|
+
'.pkl', '.pickle',
|
|
179
|
+
'.npy', '.npz',
|
|
180
|
+
'.h5', '.hdf5',
|
|
182
181
|
|
|
183
|
-
#
|
|
184
|
-
'.
|
|
185
|
-
'.
|
|
182
|
+
# Lock Files and Dependencies
|
|
183
|
+
'.lock', 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml',
|
|
184
|
+
'Gemfile.lock', 'poetry.lock', 'Cargo.lock', 'composer.lock',
|
|
186
185
|
|
|
187
|
-
#
|
|
188
|
-
'.
|
|
189
|
-
'.ttf', '.otf', '.eot', '.woff', '.woff2', # Fonts
|
|
186
|
+
# Compiled Python
|
|
187
|
+
'.pyc', '.pyo',
|
|
190
188
|
|
|
191
|
-
#
|
|
192
|
-
'.
|
|
193
|
-
'.sqlite', '.db', '.mdb', '.sql',
|
|
194
|
-
'.pb', '.pbtxt', # Protocol buffers
|
|
195
|
-
'.ipynb', # Jupyter notebooks
|
|
196
|
-
'.pkl', '.pickle', # Python serialized objects
|
|
197
|
-
'.tfrecords', '.tf', # TensorFlow files
|
|
198
|
-
'.onnx', # ONNX models
|
|
199
|
-
'.h5', '.hdf5', # HDF5 files
|
|
200
|
-
'.npy', '.npz', # NumPy files
|
|
189
|
+
# System and Hidden Files
|
|
190
|
+
'.DS_Store', 'Thumbs.db',
|
|
201
191
|
|
|
202
|
-
#
|
|
192
|
+
# Generated Code Files
|
|
193
|
+
'.g.dart', '.freezed.dart',
|
|
194
|
+
'.pb.go',
|
|
195
|
+
'_pb2.py', '_pb2_grpc.py',
|
|
196
|
+
'.generated.ts', '.generated.tsx',
|
|
197
|
+
'.proto.ts', '.proto.js',
|
|
203
198
|
'.min.js', '.min.css',
|
|
204
199
|
'.bundle.js', '.bundle.css',
|
|
205
|
-
'.chunk.js', '.chunk.css'
|
|
200
|
+
'.chunk.js', '.chunk.css',
|
|
201
|
+
|
|
202
|
+
# IDE Generated
|
|
203
|
+
'.pbxproj', '.xcworkspacedata',
|
|
204
|
+
'.csproj.user', '.suo',
|
|
205
|
+
'.iml', '.ipr', '.iws',
|
|
206
|
+
|
|
207
|
+
# Map Files
|
|
208
|
+
'.map', '.js.map', '.css.map'
|
|
206
209
|
|
|
207
210
|
]) or any(pattern in file_path for pattern in [
|
|
208
|
-
#
|
|
209
|
-
'/node_modules/',
|
|
211
|
+
# Cache and Temporary Directories
|
|
210
212
|
'/__pycache__/',
|
|
211
213
|
'/.git/',
|
|
212
214
|
'/.idea/',
|
|
@@ -214,31 +216,52 @@ class Repository:
|
|
|
214
216
|
'/.vs/',
|
|
215
217
|
'/.svn/',
|
|
216
218
|
'/.hg/',
|
|
217
|
-
'/dist/',
|
|
218
|
-
'/build/',
|
|
219
|
-
'/target/',
|
|
220
|
-
'/out/',
|
|
221
|
-
'/bin/',
|
|
222
|
-
'/obj/',
|
|
223
|
-
'/Debug/',
|
|
224
|
-
'/Release/',
|
|
225
|
-
'/.next/',
|
|
226
|
-
'/.nuxt/',
|
|
227
|
-
'/vendor/',
|
|
228
|
-
'/venv/',
|
|
229
|
-
'/.env',
|
|
230
|
-
'/coverage/',
|
|
231
|
-
'/logs/',
|
|
232
|
-
'/.github/',
|
|
233
|
-
'/assets/',
|
|
234
|
-
'/public/assets/',
|
|
235
|
-
'/static/assets/',
|
|
236
|
-
'/.pytest_cache/',
|
|
237
219
|
'/.sass-cache/',
|
|
238
220
|
'/.parcel-cache/',
|
|
239
221
|
'/.cache/',
|
|
240
222
|
'/tmp/',
|
|
241
|
-
'/temp/'
|
|
223
|
+
'/temp/',
|
|
224
|
+
|
|
225
|
+
# Package Manager Directories
|
|
226
|
+
'/node_modules/',
|
|
227
|
+
'/bower_components/',
|
|
228
|
+
|
|
229
|
+
# Test Coverage and Reports
|
|
230
|
+
'/coverage/',
|
|
231
|
+
'/.nyc_output/',
|
|
232
|
+
'/.pytest_cache/',
|
|
233
|
+
'/.tox/',
|
|
234
|
+
|
|
235
|
+
# Environment and Runtime
|
|
236
|
+
'/venv/',
|
|
237
|
+
'/.env/',
|
|
238
|
+
'/.virtualenv/',
|
|
239
|
+
|
|
240
|
+
# Framework Generated
|
|
241
|
+
'/.dart_tool/',
|
|
242
|
+
'/.pub-cache/',
|
|
243
|
+
'/.angular/',
|
|
244
|
+
'/.nuxt/',
|
|
245
|
+
'/.next/',
|
|
246
|
+
'/.ipynb_checkpoints/',
|
|
247
|
+
|
|
248
|
+
# CI/CD
|
|
249
|
+
'/.github/workflows/',
|
|
250
|
+
'/.gitlab/ci/',
|
|
251
|
+
'/.circleci/',
|
|
252
|
+
|
|
253
|
+
# Logs
|
|
254
|
+
'/logs/',
|
|
255
|
+
'/log/',
|
|
256
|
+
|
|
257
|
+
# Binary Assets
|
|
258
|
+
'/assets/images/',
|
|
259
|
+
'/assets/fonts/',
|
|
260
|
+
'/assets/media/',
|
|
261
|
+
'/public/images/',
|
|
262
|
+
'/public/fonts/',
|
|
263
|
+
'/static/images/',
|
|
264
|
+
'/static/fonts/'
|
|
242
265
|
]):
|
|
243
266
|
logger.debug(f"Skipping non-processable file: {file_path}")
|
|
244
267
|
return None
|
|
@@ -646,10 +669,10 @@ class Repository:
|
|
|
646
669
|
custom_diff = ''
|
|
647
670
|
|
|
648
671
|
# Categorize code changes
|
|
649
|
-
change_categories = CodeAnalyzer.categorize_change(custom_diff)
|
|
672
|
+
# change_categories = CodeAnalyzer.categorize_change(custom_diff)
|
|
650
673
|
|
|
651
674
|
# Extract imports from head content
|
|
652
|
-
related_modules = CodeAnalyzer.extract_imports(head_content) if language == 'Python' and head_content else []
|
|
675
|
+
# related_modules = CodeAnalyzer.extract_imports(head_content) if language == 'Python' and head_content else []
|
|
653
676
|
|
|
654
677
|
# Build file change entry
|
|
655
678
|
file_change = {
|
|
@@ -659,9 +682,9 @@ class Repository:
|
|
|
659
682
|
"language": language,
|
|
660
683
|
"additions": additions,
|
|
661
684
|
"deletions": deletions,
|
|
662
|
-
"changes": changes
|
|
663
|
-
"change_categories": change_categories,
|
|
664
|
-
"related_modules": related_modules
|
|
685
|
+
"changes": changes #,
|
|
686
|
+
# "change_categories": change_categories,
|
|
687
|
+
# "related_modules": related_modules
|
|
665
688
|
}
|
|
666
689
|
|
|
667
690
|
# Check for dependency changes
|
|
@@ -69,7 +69,11 @@ class LLMManager:
|
|
|
69
69
|
elif mistral_api_key is not None and mistral_api_key != "" and self.llm is None:
|
|
70
70
|
logger.info("Initializing Mistral API...")
|
|
71
71
|
self.llm = ChatMistralAI(mistral_api_key=mistral_api_key, model="mistral-large-2411")
|
|
72
|
-
self.llm_simple = ChatMistralAI(
|
|
72
|
+
self.llm_simple = ChatMistralAI(
|
|
73
|
+
mistral_api_key=mistral_api_key,
|
|
74
|
+
model="open-mistral-nemo",
|
|
75
|
+
temperature=0.2
|
|
76
|
+
)
|
|
73
77
|
self.model_type = "OpenAI"
|
|
74
78
|
elif openai_api_key is not None and openai_api_key != "" and self.llm is None:
|
|
75
79
|
logger.info("Initializing OpenAI API...")
|
|
@@ -163,7 +163,7 @@ class CodeAnalyzer:
|
|
|
163
163
|
try:
|
|
164
164
|
tree = ast.parse(code_str)
|
|
165
165
|
return ast.dump(tree)
|
|
166
|
-
except
|
|
166
|
+
except Exception:
|
|
167
167
|
logger.error("Syntax error in the provided code")
|
|
168
168
|
return None
|
|
169
169
|
|
|
@@ -188,7 +188,7 @@ class CodeAnalyzer:
|
|
|
188
188
|
|
|
189
189
|
try:
|
|
190
190
|
tree = ast.parse(code_str)
|
|
191
|
-
except
|
|
191
|
+
except Exception as e:
|
|
192
192
|
logger.error(f"Syntax error in the provided code: {e}")
|
|
193
193
|
import_info["errors"].append(str(e))
|
|
194
194
|
return import_info
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.2.5'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: llama-github
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Llama-github is an open-source Python library that empowers LLM Chatbots, AI Agents, and Auto-dev Agents to conduct Retrieval from actively selected GitHub public projects. It Augments through LLMs and Generates context for any coding question, in order to streamline the development of sophisticated AI-driven applications.
|
|
5
5
|
Home-page: https://github.com/JetXu-LLM/llama-github
|
|
6
6
|
Author: Jet Xu
|
|
@@ -40,7 +40,7 @@ Requires-Dist: flake8; extra == "dev"
|
|
|
40
40
|
[](https://pepy.tech/project/Llama-github)
|
|
41
41
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
42
42
|
|
|
43
|
-
Llama-github is a powerful tool that helps you retrieve the most relevant code snippets, issues, and repository information from GitHub based on your queries, transforming them into valuable knowledge context. It empowers LLM Chatbots, AI Agents, and Auto-dev Agents to solve complex coding tasks. Whether you're a developer looking for quick solutions or an engineer implementing advanced Auto Dev AI Agents, llama-github makes it easy and efficient.
|
|
43
|
+
Llama-github is a powerful tool that helps you retrieve(based on Agentic RAG) the most relevant code snippets, issues, and repository information from GitHub based on your queries, transforming them into valuable knowledge context. It empowers LLM Chatbots, AI Agents, and Auto-dev Agents to solve complex coding tasks. Whether you're a developer looking for quick solutions or an engineer implementing advanced Auto Dev AI Agents, llama-github makes it easy and efficient.
|
|
44
44
|
|
|
45
45
|
If you like this project or believe it has potential, please give it a ⭐️. Your support is our greatest motivation!
|
|
46
46
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = llama-github
|
|
3
|
-
version = 0.2.
|
|
3
|
+
version = 0.2.5
|
|
4
4
|
author = Jet Xu
|
|
5
5
|
author_email = Voldemort.xu@foxmail.com
|
|
6
6
|
description = Llama-github is an open-source Python library that empowers LLM Chatbots, AI Agents, and Auto-dev Agents to conduct Retrieval from actively selected GitHub public projects. It Augments through LLMs and Generates context for any coding question, in order to streamline the development of sophisticated AI-driven applications.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.2.3'
|
|
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
|
{llama_github-0.2.3 → llama_github-0.2.5}/llama_github/github_integration/github_auth_manager.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|