ara-cli 0.1.9.91__py3-none-any.whl → 0.1.9.92__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 ara-cli might be problematic. Click here for more details.
- ara_cli/ara_config.py +27 -3
- ara_cli/chat.py +12 -3
- ara_cli/version.py +1 -1
- {ara_cli-0.1.9.91.dist-info → ara_cli-0.1.9.92.dist-info}/METADATA +1 -1
- {ara_cli-0.1.9.91.dist-info → ara_cli-0.1.9.92.dist-info}/RECORD +8 -8
- {ara_cli-0.1.9.91.dist-info → ara_cli-0.1.9.92.dist-info}/WHEEL +0 -0
- {ara_cli-0.1.9.91.dist-info → ara_cli-0.1.9.92.dist-info}/entry_points.txt +0 -0
- {ara_cli-0.1.9.91.dist-info → ara_cli-0.1.9.92.dist-info}/top_level.txt +0 -0
ara_cli/ara_config.py
CHANGED
|
@@ -97,12 +97,12 @@ class ARAconfig(BaseModel):
|
|
|
97
97
|
max_tokens=4000
|
|
98
98
|
)
|
|
99
99
|
})
|
|
100
|
-
default_llm: Optional[str] =
|
|
101
|
-
extraction_llm: Optional[str] =
|
|
100
|
+
default_llm: Optional[str] = None
|
|
101
|
+
extraction_llm: Optional[str] = None
|
|
102
102
|
|
|
103
103
|
@model_validator(mode='after')
|
|
104
104
|
def check_critical_fields(self) -> 'ARAconfig':
|
|
105
|
-
"""Check for empty critical fields and
|
|
105
|
+
"""Check for empty critical fields and validate default_llm and extraction_llm."""
|
|
106
106
|
critical_fields = {
|
|
107
107
|
'ext_code_dirs': [{"source_dir": "./src"}, {"source_dir": "./tests"}],
|
|
108
108
|
'local_ara_templates_dir': "./ara/.araconfig/templates/",
|
|
@@ -116,6 +116,30 @@ class ARAconfig(BaseModel):
|
|
|
116
116
|
print(f"Warning: Value for '{field}' is missing or empty. Using default.")
|
|
117
117
|
setattr(self, field, default_value)
|
|
118
118
|
|
|
119
|
+
if not self.llm_config:
|
|
120
|
+
print("Warning: 'llm_config' is empty. 'default_llm' and 'extraction_llm' cannot be set.")
|
|
121
|
+
self.default_llm = None
|
|
122
|
+
self.extraction_llm = None
|
|
123
|
+
return self
|
|
124
|
+
|
|
125
|
+
first_available_llm = next(iter(self.llm_config))
|
|
126
|
+
|
|
127
|
+
if not self.default_llm:
|
|
128
|
+
print(f"Warning: 'default_llm' is not set. Defaulting to the first available model: '{first_available_llm}'.")
|
|
129
|
+
self.default_llm = first_available_llm
|
|
130
|
+
elif self.default_llm not in self.llm_config:
|
|
131
|
+
print(f"Warning: The configured 'default_llm' ('{self.default_llm}') does not exist in 'llm_config'.")
|
|
132
|
+
print(f"-> Reverting to the first available model: '{first_available_llm}'.")
|
|
133
|
+
self.default_llm = first_available_llm
|
|
134
|
+
|
|
135
|
+
if not self.extraction_llm:
|
|
136
|
+
print(f"Warning: 'extraction_llm' is not set. Setting it to the same as 'default_llm': '{self.default_llm}'.")
|
|
137
|
+
self.extraction_llm = self.default_llm
|
|
138
|
+
elif self.extraction_llm not in self.llm_config:
|
|
139
|
+
print(f"Warning: The configured 'extraction_llm' ('{self.extraction_llm}') does not exist in 'llm_config'.")
|
|
140
|
+
print(f"-> Reverting to the 'default_llm' value: '{self.default_llm}'.")
|
|
141
|
+
self.extraction_llm = self.default_llm
|
|
142
|
+
|
|
119
143
|
return self
|
|
120
144
|
|
|
121
145
|
# Function to ensure the necessary directories exist
|
ara_cli/chat.py
CHANGED
|
@@ -671,14 +671,23 @@ Start chatting (type 'HELP'/'h' for available commands, 'QUIT'/'q' to exit chat
|
|
|
671
671
|
|
|
672
672
|
@cmd2.with_category(CATEGORY_LLM_CONTROL)
|
|
673
673
|
def do_CURRENT_MODEL(self, _):
|
|
674
|
-
"""Displays the current default
|
|
674
|
+
"""Displays the current default (reasoning) language model."""
|
|
675
675
|
from ara_cli.ara_config import ConfigManager
|
|
676
676
|
|
|
677
677
|
ConfigManager.reset()
|
|
678
678
|
config = self._retrieve_ara_config()
|
|
679
679
|
|
|
680
|
-
print(
|
|
681
|
-
|
|
680
|
+
print(config.default_llm)
|
|
681
|
+
|
|
682
|
+
@cmd2.with_category(CATEGORY_LLM_CONTROL)
|
|
683
|
+
def do_CURRENT_EXTRACTION_MODEL(self, _):
|
|
684
|
+
"""Displays the current extraction language model."""
|
|
685
|
+
from ara_cli.ara_config import ConfigManager
|
|
686
|
+
|
|
687
|
+
ConfigManager.reset()
|
|
688
|
+
config = self._retrieve_ara_config()
|
|
689
|
+
|
|
690
|
+
print(config.extraction_llm)
|
|
682
691
|
|
|
683
692
|
def _complete_llms(self, text, line, begidx, endidx):
|
|
684
693
|
llm_config = self._retrieve_llm_config()
|
ara_cli/version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# version.py
|
|
2
|
-
__version__ = "0.1.9.
|
|
2
|
+
__version__ = "0.1.9.92" # fith parameter like .0 for local install test purposes only. official numbers should be 4 digit numbers
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ara_cli
|
|
3
|
-
Version: 0.1.9.
|
|
3
|
+
Version: 0.1.9.92
|
|
4
4
|
Summary: Powerful, open source command-line tool for managing, structuring and automating software development artifacts in line with Business-Driven Development (BDD) and AI-assisted processes
|
|
5
5
|
Description-Content-Type: text/markdown
|
|
6
6
|
Requires-Dist: litellm
|
|
@@ -2,7 +2,7 @@ ara_cli/__init__.py,sha256=0zl7IegxTid26EBGLav_fXZ4CCIV3H5TfAoFQiOHjvg,148
|
|
|
2
2
|
ara_cli/__main__.py,sha256=J5DCDLRZ6UcpYwM1-NkjaLo4PTetcSj2dB4HrrftkUw,2064
|
|
3
3
|
ara_cli/ara_command_action.py,sha256=_LHE2V5hbJxN7ccYiptuPktRfbTnXmQEt_D_FxDBlBY,22456
|
|
4
4
|
ara_cli/ara_command_parser.py,sha256=I-e9W-QwTIMKMzlHycSlCWCyBFQfiFYvGre1XsDbrFI,20573
|
|
5
|
-
ara_cli/ara_config.py,sha256=
|
|
5
|
+
ara_cli/ara_config.py,sha256=5uBo_flNgZSk7B9lmyfvzWyxfIQzb13LbieCpJfdZJI,8765
|
|
6
6
|
ara_cli/artefact_autofix.py,sha256=WVTiIR-jo4YKmmz4eS3qTFvl45W1YKwAk1XSuz9QX10,20015
|
|
7
7
|
ara_cli/artefact_creator.py,sha256=0Ory6cB-Ahkw-BDNb8QHnTbp_OHGABdkb9bhwcEdcIc,6063
|
|
8
8
|
ara_cli/artefact_deleter.py,sha256=Co4wwCH3yW8H9NrOq7_2p5571EeHr0TsfE-H8KqoOfY,1900
|
|
@@ -12,7 +12,7 @@ ara_cli/artefact_lister.py,sha256=jhk4n4eqp7hDIq07q43QzS7-36BM3OfZ4EABxCeOGcw,47
|
|
|
12
12
|
ara_cli/artefact_reader.py,sha256=Pho0_Eqm7kD9CNbVMhKb6mkNM0I3iJiCJXbXmVp1DJU,7827
|
|
13
13
|
ara_cli/artefact_renamer.py,sha256=Hnz_3zD9xxnBa1FHyUE6mIktLk_9ttP2rFRvQIkmz-o,4061
|
|
14
14
|
ara_cli/artefact_scan.py,sha256=msPCm-vPWOAZ_e_z5GylXxq1MtNlmJ4zvKrsdOFCWF4,4813
|
|
15
|
-
ara_cli/chat.py,sha256=
|
|
15
|
+
ara_cli/chat.py,sha256=m_nMOCKDhjC4SPEDiG3Wu_0hLphe0ey0A4YuZV0LQxQ,38167
|
|
16
16
|
ara_cli/classifier.py,sha256=zWskj7rBYdqYBGjksBm46iTgVU5IIf2PZsJr4qeiwVU,1878
|
|
17
17
|
ara_cli/codefusionretriever.py,sha256=fCHgXdIBRzkVAnapX-KI2NQ44XbrrF4tEQmn5J6clUI,1980
|
|
18
18
|
ara_cli/codehierachieretriever.py,sha256=Xd3EgEWWhkSf1TmTWtf8X5_YvyE_4B66nRrqarwSiTU,1182
|
|
@@ -31,7 +31,7 @@ ara_cli/run_file_lister.py,sha256=XbrrDTJXp1LFGx9Lv91SNsEHZPP-PyEMBF_P4btjbDA,23
|
|
|
31
31
|
ara_cli/tag_extractor.py,sha256=TGdaQOVnjy25R0zDsAifB67C5oom0Fwo24s0_fr5A_I,3151
|
|
32
32
|
ara_cli/template_manager.py,sha256=YwrN6AYPpl6ZrW8BVQpVXx8yTRf-oNpJUIKeg4NAggs,6606
|
|
33
33
|
ara_cli/update_config_prompt.py,sha256=Oy9vNTw6UhDohyTEfSKkqE5ifEMPlmWNYkKHgUrK_pY,4607
|
|
34
|
-
ara_cli/version.py,sha256=
|
|
34
|
+
ara_cli/version.py,sha256=NFSXE1c5XdqCXt75PBLQ12kGF9XoLW2MiAQbfCkmfto,146
|
|
35
35
|
ara_cli/artefact_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
36
|
ara_cli/artefact_models/artefact_load.py,sha256=IXzWxP-Q_j_oDGMno0m-OuXCQ7Vd5c_NctshGr4ROBw,621
|
|
37
37
|
ara_cli/artefact_models/artefact_mapping.py,sha256=8aD0spBjkJ8toMAmFawc6UTUxB6-tEEViZXv2I-r88Q,1874
|
|
@@ -153,8 +153,8 @@ tests/test_prompt_handler.py,sha256=Ysxq2e6JFfNpj3bTRFNNThzpDNkAGDphwVf2Ysz2EK0,
|
|
|
153
153
|
tests/test_tag_extractor.py,sha256=nSiAYlTKZ7TLAOtcJpwK5zTWHhFYU0tI5xKnivLc1dU,2712
|
|
154
154
|
tests/test_template_manager.py,sha256=q-LMHRG4rHkD6ON6YW4cpZxUx9hul6Or8wVVRC2kb-8,4099
|
|
155
155
|
tests/test_update_config_prompt.py,sha256=xsqj1WTn4BsG5Q2t-sNPfu7EoMURFcS-hfb5VSXUnJc,6765
|
|
156
|
-
ara_cli-0.1.9.
|
|
157
|
-
ara_cli-0.1.9.
|
|
158
|
-
ara_cli-0.1.9.
|
|
159
|
-
ara_cli-0.1.9.
|
|
160
|
-
ara_cli-0.1.9.
|
|
156
|
+
ara_cli-0.1.9.92.dist-info/METADATA,sha256=9X9Ol5Xh8ApM3-XaY1O_FbfNNCjqdLErIR-y5zxQklw,6739
|
|
157
|
+
ara_cli-0.1.9.92.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
158
|
+
ara_cli-0.1.9.92.dist-info/entry_points.txt,sha256=v4h7MzysTgSIDYfEo3oj4Kz_8lzsRa3hq-KJHEcLVX8,45
|
|
159
|
+
ara_cli-0.1.9.92.dist-info/top_level.txt,sha256=WM4cLHT5DYUaWzLtRj-gu3yVNFpGQ6lLRI3FMmC-38I,14
|
|
160
|
+
ara_cli-0.1.9.92.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|