bioguider 0.2.27__py3-none-any.whl → 0.2.29__py3-none-any.whl
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/generation/output_manager.py +3 -3
- bioguider/generation/report_loader.py +16 -7
- bioguider/managers/generation_manager.py +3 -3
- {bioguider-0.2.27.dist-info → bioguider-0.2.29.dist-info}/METADATA +1 -1
- {bioguider-0.2.27.dist-info → bioguider-0.2.29.dist-info}/RECORD +7 -7
- {bioguider-0.2.27.dist-info → bioguider-0.2.29.dist-info}/LICENSE +0 -0
- {bioguider-0.2.27.dist-info → bioguider-0.2.29.dist-info}/WHEEL +0 -0
|
@@ -3,14 +3,14 @@ from __future__ import annotations
|
|
|
3
3
|
import os
|
|
4
4
|
import json
|
|
5
5
|
from datetime import datetime
|
|
6
|
-
from typing import Dict, List, Tuple
|
|
6
|
+
from typing import Dict, List, Optional, Tuple
|
|
7
7
|
|
|
8
8
|
from .models import OutputArtifact, GenerationManifest, PlannedEdit
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class OutputManager:
|
|
12
|
-
def __init__(self, base_outputs_dir: str =
|
|
13
|
-
self.base_outputs_dir = base_outputs_dir
|
|
12
|
+
def __init__(self, base_outputs_dir: Optional[str] = None):
|
|
13
|
+
self.base_outputs_dir = base_outputs_dir or "outputs"
|
|
14
14
|
|
|
15
15
|
def prepare_output_dir(self, repo_url_or_name: str) -> str:
|
|
16
16
|
repo_name = self._extract_repo_name(repo_url_or_name)
|
|
@@ -123,14 +123,17 @@ class EvaluationReportLoader:
|
|
|
123
123
|
normalized = normalize(raw)
|
|
124
124
|
|
|
125
125
|
# Special handling for stringified evaluation fields
|
|
126
|
-
inst_eval = normalized.get("
|
|
126
|
+
inst_eval = normalized.get("installation")
|
|
127
127
|
if isinstance(inst_eval, str):
|
|
128
128
|
normalized["installation_evaluation"] = {
|
|
129
|
-
"structured_evaluation": self._parse_structured_block(inst_eval, "structured_evaluation"),
|
|
129
|
+
"structured_evaluation": self._parse_structured_block(inst_eval["evaluation"], "structured_evaluation"),
|
|
130
130
|
}
|
|
131
|
+
else:
|
|
132
|
+
normalized["installation_evaluation"] = inst_eval["evaluation"]
|
|
133
|
+
normalized["installation_files"] = inst_eval["files"]
|
|
131
134
|
|
|
132
|
-
readme_eval = normalized.get("
|
|
133
|
-
if isinstance(readme_eval, dict):
|
|
135
|
+
readme_eval = normalized.get("readme")
|
|
136
|
+
if isinstance(readme_eval["evaluations"], dict):
|
|
134
137
|
fixed: Dict[str, Any] = {}
|
|
135
138
|
for fname, val in readme_eval.items():
|
|
136
139
|
if isinstance(val, str):
|
|
@@ -140,10 +143,16 @@ class EvaluationReportLoader:
|
|
|
140
143
|
else:
|
|
141
144
|
fixed[fname] = val
|
|
142
145
|
normalized["readme_evaluation"] = fixed
|
|
146
|
+
normalized["readme_files"] = readme_eval["files"]
|
|
143
147
|
|
|
144
|
-
|
|
145
|
-
if isinstance(
|
|
146
|
-
normalized["
|
|
148
|
+
userguide_eval = normalized.get("userguide")
|
|
149
|
+
if isinstance(userguide_eval["evaluation"], dict):
|
|
150
|
+
normalized["userguide_evaluation"] = userguide_eval["evaluation"]
|
|
151
|
+
normalized["userguide_files"] = userguide_eval["files"]
|
|
152
|
+
|
|
153
|
+
# userguide_eval = normalized.get("userguide")
|
|
154
|
+
# if isinstance(userguide_eval, str):
|
|
155
|
+
# normalized["userguide_evaluation"] = self._parse_structured_block(userguide_eval["evaluation"], "structured_evaluation")
|
|
147
156
|
|
|
148
157
|
report = EvaluationReport(**normalized)
|
|
149
158
|
return report, report_path
|
|
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import os
|
|
4
4
|
from pathlib import Path
|
|
5
|
-
from typing import Tuple, Dict, List
|
|
5
|
+
from typing import Optional, Tuple, Dict, List
|
|
6
6
|
|
|
7
7
|
from bioguider.generation import (
|
|
8
8
|
EvaluationReportLoader,
|
|
@@ -20,7 +20,7 @@ from bioguider.utils.file_utils import parse_repo_url
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class DocumentationGenerationManager:
|
|
23
|
-
def __init__(self, llm, step_callback):
|
|
23
|
+
def __init__(self, llm, step_callback, output_dir: Optional[str] = None):
|
|
24
24
|
self.llm = llm
|
|
25
25
|
self.step_callback = step_callback
|
|
26
26
|
self.repo_url_or_path: str | None = None
|
|
@@ -30,7 +30,7 @@ class DocumentationGenerationManager:
|
|
|
30
30
|
self.style_analyzer = StyleAnalyzer()
|
|
31
31
|
self.planner = ChangePlanner()
|
|
32
32
|
self.renderer = DocumentRenderer()
|
|
33
|
-
self.output = OutputManager()
|
|
33
|
+
self.output = OutputManager(base_outputs_dir=output_dir)
|
|
34
34
|
self.llm_gen = LLMContentGenerator(llm)
|
|
35
35
|
self.llm_cleaner = LLMCleaner(llm)
|
|
36
36
|
|
|
@@ -49,14 +49,14 @@ bioguider/generation/llm_cleaner.py,sha256=aMxc3j6IH_9mCfBjxY1bn0bAUtUkUoHjumobz
|
|
|
49
49
|
bioguider/generation/llm_content_generator.py,sha256=1pfXYRykvGgLGu9YJH-DhvaMzb7hy_EyvHQ8XojUBQ8,3684
|
|
50
50
|
bioguider/generation/llm_injector.py,sha256=bVxP6Asv2em4MBOB5yFsS14AuaeT7NLKQQMcsEqXjPY,17352
|
|
51
51
|
bioguider/generation/models.py,sha256=q9sF32Iu5VAa59UbheqPWEZn4bYeGGUVzpW24NJR_SM,2518
|
|
52
|
-
bioguider/generation/output_manager.py,sha256=
|
|
52
|
+
bioguider/generation/output_manager.py,sha256=uwLyavND4kXOHlsXB0Berab3y8u6bhaEmQOQLl7wDAM,1963
|
|
53
53
|
bioguider/generation/repo_reader.py,sha256=ivTURU61fR8er4ev7gSpOxER3FJv2d9GAx_X5JoVTvQ,1177
|
|
54
|
-
bioguider/generation/report_loader.py,sha256=
|
|
54
|
+
bioguider/generation/report_loader.py,sha256=m6_zcXsm5X6cFUB0ypVo1rjwjQzPAwwg83tc4H0X_eA,5598
|
|
55
55
|
bioguider/generation/style_analyzer.py,sha256=Vn9FAK1qJBNLolLC1tz362k4UBaPl107BlvkQc8pV2I,983
|
|
56
56
|
bioguider/generation/suggestion_extractor.py,sha256=tfkyWtdbAo-maLCF_wqwBXyh93yjulvDY17FuvTnTjk,7611
|
|
57
57
|
bioguider/generation/test_metrics.py,sha256=ACXmSZc2L_UkkmC5h2s4tG44MXW1d-hClFwPCD5_BFI,7505
|
|
58
58
|
bioguider/managers/evaluation_manager.py,sha256=EoZ8V4rmx16zk1J3N9cNjeo0aCa7i32fLEQ3b2UolEQ,5917
|
|
59
|
-
bioguider/managers/generation_manager.py,sha256=
|
|
59
|
+
bioguider/managers/generation_manager.py,sha256=94Fe-0q37t7QIP2lkdmEiTjb8-hbiz9XX9h8Gi6BkSU,9594
|
|
60
60
|
bioguider/managers/generation_test_manager.py,sha256=3mOBzQVpsLo_LpSspJcofn3CNtvgagS1DMr9Zuwkzq4,5307
|
|
61
61
|
bioguider/rag/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
62
62
|
bioguider/rag/config.py,sha256=5g4IqTzgyfZfax9Af9CTkXShgItPOt4_9TEMSekCPik,4602
|
|
@@ -74,7 +74,7 @@ bioguider/utils/pyphen_utils.py,sha256=cdZc3qphkvMDeL5NiZ8Xou13M_uVNP7ifJ-FwxO-0
|
|
|
74
74
|
bioguider/utils/python_file_handler.py,sha256=BERiE2RHxpu3gAzv26jr8ZQetkrtnMZOv9SjpQ7WIdg,2650
|
|
75
75
|
bioguider/utils/r_file_handler.py,sha256=8HpFaYKP8N1nItwr9tOx49m99pcLSt8EUtTNTJ7xNoE,19564
|
|
76
76
|
bioguider/utils/utils.py,sha256=h8OhCjzLpHkb3ndnjRBUOBHD7csbHdEVNXf75SRN8Zc,4413
|
|
77
|
-
bioguider-0.2.
|
|
78
|
-
bioguider-0.2.
|
|
79
|
-
bioguider-0.2.
|
|
80
|
-
bioguider-0.2.
|
|
77
|
+
bioguider-0.2.29.dist-info/LICENSE,sha256=qzkvZcKwwA5DuSuhXMOm2LcO6BdEr4V7jwFZVL2-jL4,1065
|
|
78
|
+
bioguider-0.2.29.dist-info/METADATA,sha256=O4IRhR2hhEuFMeWOYCSeQvyKHZUdWdGosGssGN0gohs,1962
|
|
79
|
+
bioguider-0.2.29.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
80
|
+
bioguider-0.2.29.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|