bioguider 0.2.31__tar.gz → 0.2.32__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.
Potentially problematic release.
This version of bioguider might be problematic. Click here for more details.
- {bioguider-0.2.31 → bioguider-0.2.32}/PKG-INFO +1 -1
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/agent_utils.py +4 -1
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_readme_task.py +4 -1
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/managers/evaluation_manager.py +0 -2
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/code_structure_builder.py +7 -1
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/r_file_handler.py +6 -4
- {bioguider-0.2.31 → bioguider-0.2.32}/pyproject.toml +1 -1
- {bioguider-0.2.31 → bioguider-0.2.32}/LICENSE +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/README.md +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/__init__.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/__init__.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/agent_task.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/agent_tools.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/collection_execute_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/collection_observe_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/collection_plan_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/collection_task.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/collection_task_utils.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/common_agent.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/common_agent_2step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/common_conversation.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/common_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/consistency_collection_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/consistency_evaluation_task.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/consistency_evaluation_task_utils.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/consistency_observe_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/consistency_query_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/dockergeneration_execute_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/dockergeneration_observe_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/dockergeneration_plan_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/dockergeneration_task.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/dockergeneration_task_utils.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_installation_task.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_submission_requirements_task.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_task.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_tutorial_task.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_tutorial_task_prompts.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_userguide_prompts.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_userguide_task.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/identification_execute_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/identification_observe_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/identification_plan_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/identification_task.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/identification_task_utils.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/peo_common_step.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/prompt_utils.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/python_ast_repl_tool.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/rag_collection_task.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/conversation.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/database/code_structure_db.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/database/summarized_file_db.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/__init__.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/change_planner.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/document_renderer.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/llm_cleaner.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/llm_content_generator.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/llm_injector.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/models.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/output_manager.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/repo_reader.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/report_loader.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/style_analyzer.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/suggestion_extractor.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/test_metrics.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/managers/generation_manager.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/managers/generation_test_manager.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/rag/__init__.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/rag/config.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/rag/data_pipeline.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/rag/embedder.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/rag/rag.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/settings.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/constants.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/default.gitignore +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/file_utils.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/gitignore_checker.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/notebook_utils.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/pyphen_utils.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/python_file_handler.py +0 -0
- {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/utils.py +0 -0
|
@@ -27,6 +27,7 @@ from bioguider.utils.utils import clean_action_input
|
|
|
27
27
|
from ..utils.gitignore_checker import GitignoreChecker
|
|
28
28
|
from ..database.summarized_file_db import SummarizedFilesDb
|
|
29
29
|
from bioguider.agents.common_conversation import CommonConversation
|
|
30
|
+
from bioguider.rag.config import configs
|
|
30
31
|
|
|
31
32
|
logger = logging.getLogger(__name__)
|
|
32
33
|
|
|
@@ -153,7 +154,9 @@ def read_directory(
|
|
|
153
154
|
return None
|
|
154
155
|
gitignore_checker = GitignoreChecker(
|
|
155
156
|
directory=dir_path,
|
|
156
|
-
gitignore_path=gitignore_path
|
|
157
|
+
gitignore_path=gitignore_path,
|
|
158
|
+
exclude_dir_patterns=configs["file_filters"]["excluded_dirs"],
|
|
159
|
+
exclude_file_patterns=configs["file_filters"]["excluded_files"],
|
|
157
160
|
)
|
|
158
161
|
files = gitignore_checker.check_files_and_folders(level=level)
|
|
159
162
|
return files
|
|
@@ -28,6 +28,7 @@ from bioguider.utils.constants import (
|
|
|
28
28
|
EvaluationREADMEResult,
|
|
29
29
|
)
|
|
30
30
|
from bioguider.utils.utils import increase_token_usage
|
|
31
|
+
from bioguider.rag.config import configs
|
|
31
32
|
|
|
32
33
|
logger = logging.getLogger(__name__)
|
|
33
34
|
|
|
@@ -638,7 +639,9 @@ class EvaluationREADMETask(EvaluationTask):
|
|
|
638
639
|
repo_path = self.repo_path
|
|
639
640
|
gitignore_path = Path(repo_path, ".gitignore")
|
|
640
641
|
gitignore_checker = GitignoreChecker(
|
|
641
|
-
directory=repo_path, gitignore_path=gitignore_path
|
|
642
|
+
directory=repo_path, gitignore_path=gitignore_path,
|
|
643
|
+
exclude_dir_patterns=configs["file_filters"]["excluded_dirs"],
|
|
644
|
+
exclude_file_patterns=configs["file_filters"]["excluded_files"],
|
|
642
645
|
)
|
|
643
646
|
found_readme_files = gitignore_checker.check_files_and_folders(
|
|
644
647
|
check_file_cb=lambda root_dir, relative_path: Path(relative_path).name.lower() in possible_readme_files,
|
|
@@ -3,10 +3,8 @@ from pathlib import Path
|
|
|
3
3
|
|
|
4
4
|
from bioguider.agents.evaluation_tutorial_task import EvaluationTutorialTask
|
|
5
5
|
from bioguider.agents.evaluation_userguide_task import EvaluationUserGuideTask
|
|
6
|
-
from bioguider.agents.prompt_utils import CollectionGoalItemEnum
|
|
7
6
|
from bioguider.database.code_structure_db import CodeStructureDb
|
|
8
7
|
from bioguider.utils.constants import ProjectMetadata
|
|
9
|
-
from bioguider.utils.gitignore_checker import GitignoreChecker
|
|
10
8
|
|
|
11
9
|
from ..agents.identification_task import IdentificationTask
|
|
12
10
|
from ..rag.rag import RAG
|
|
@@ -6,6 +6,7 @@ from bioguider.utils.r_file_handler import RFileHandler
|
|
|
6
6
|
from .gitignore_checker import GitignoreChecker
|
|
7
7
|
from .python_file_handler import PythonFileHandler
|
|
8
8
|
from ..database.code_structure_db import CodeStructureDb
|
|
9
|
+
from ..rag.config import configs
|
|
9
10
|
|
|
10
11
|
logger = logging.getLogger(__name__)
|
|
11
12
|
|
|
@@ -17,7 +18,12 @@ class CodeStructureBuilder:
|
|
|
17
18
|
code_structure_db: CodeStructureDb,
|
|
18
19
|
):
|
|
19
20
|
self.repo_path = str(repo_path)
|
|
20
|
-
self.gitignore_checker = GitignoreChecker(
|
|
21
|
+
self.gitignore_checker = GitignoreChecker(
|
|
22
|
+
directory=repo_path,
|
|
23
|
+
gitignore_path=str(gitignore_path),
|
|
24
|
+
exclude_dir_patterns=configs["file_filters"]["excluded_dirs"],
|
|
25
|
+
exclude_file_patterns=configs["file_filters"]["excluded_files"],
|
|
26
|
+
)
|
|
21
27
|
self.file_handler = PythonFileHandler(repo_path)
|
|
22
28
|
self.code_structure_db = code_structure_db
|
|
23
29
|
|
|
@@ -348,10 +348,12 @@ class RFileHandler:
|
|
|
348
348
|
s = line.lstrip()
|
|
349
349
|
if s.startswith("#'"):
|
|
350
350
|
buf.append(s[2:].lstrip())
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
351
|
+
elif s.strip() == "":
|
|
352
|
+
pass
|
|
353
|
+
else:
|
|
354
|
+
# stop at first non-roxygen line (don’t cross blank + NULL padding blocks)
|
|
355
|
+
break
|
|
356
|
+
line_idx -= 1
|
|
355
357
|
if not buf:
|
|
356
358
|
return None
|
|
357
359
|
buf.reverse()
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_submission_requirements_task.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
|
|
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
|
|
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
|