ara-cli 0.1.9.55__py3-none-any.whl → 0.1.9.57__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.
@@ -196,7 +196,7 @@ class Artefact(BaseModel, ABC):
196
196
  file_path = self._file_path
197
197
  dir_path = os.path.dirname(file_path)
198
198
  artefact_type = self._artefact_type()
199
- file_path = f"{dir_path}/{self.title}.{artefact_type}"
199
+ file_path = f"{dir_path}/{self.title}.{artefact_type.value}"
200
200
  self._file_path = file_path
201
201
  return self
202
202
 
@@ -50,6 +50,9 @@ class ArtefactRenamer:
50
50
  old_base_path = fs.path.dirname(old_file_path)
51
51
  old_dir_path = f"{old_base_path}/{old_name}.data"
52
52
 
53
+ old_file_path_display = old_file_path.replace('./', 'ara/')
54
+ old_dir_path_display = old_dir_path.replace('./', 'ara/')
55
+
53
56
  old_dir_exists = fs.path.exists(old_dir_path)
54
57
 
55
58
  if not fs.path.exists(old_file_path):
@@ -70,20 +73,19 @@ class ArtefactRenamer:
70
73
  if fs.path.exists(new_dir_path):
71
74
  raise FileExistsError(f"The new directory name {new_dir_path} already exists.")
72
75
 
76
+ new_file_path_display = new_file_path.replace('./', 'ara/')
77
+ new_dir_path_display = new_dir_path.replace('./', 'ara/')
78
+
73
79
  serialized_artefact = matching_artefact.serialize()
74
80
  with open(matching_artefact.file_path, 'w') as file:
75
81
  file.write(serialized_artefact)
76
82
  fs.remove(old_file_path)
77
83
 
78
- absolute_old_file_path = fs.path.abspath(old_file_path)
79
- absolute_new_file_path = fs.path.abspath(new_file_path)
80
- print(f"Renamed file: {absolute_old_file_path} to {absolute_new_file_path}")
84
+ print(f"Renamed file: {old_file_path_display} to {new_file_path_display}")
81
85
 
82
86
  if old_dir_exists:
83
- absolute_old_dir_path = fs.path.abspath(old_dir_path)
84
- absolute_new_dir_path = fs.path.abspath(new_dir_path)
85
87
  fs.rename(old_dir_path, new_dir_path)
86
- print(f"Renamed directory: {absolute_old_dir_path} to {absolute_new_dir_path}")
88
+ print(f"Renamed directory: {old_dir_path_display} to {new_dir_path_display}")
87
89
 
88
90
  for children in children_by_classifier.values():
89
91
  for child in children:
ara_cli/version.py CHANGED
@@ -1,2 +1,2 @@
1
1
  # version.py
2
- __version__ = "0.1.9.55" # fith parameter like .0 for local install test purposes only. official numbers should be 4 digit numbers
2
+ __version__ = "0.1.9.57" # 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.1
2
2
  Name: ara-cli
3
- Version: 0.1.9.55
3
+ Version: 0.1.9.57
4
4
  Requires-Dist: litellm
5
5
  Requires-Dist: llama-index
6
6
  Requires-Dist: llama-index-llms-openai
@@ -10,7 +10,7 @@ ara_cli/artefact_fuzzy_search.py,sha256=XAvoiRafd1u21uKbX5-bow7hdq7uiLLy1KtxHNAF
10
10
  ara_cli/artefact_link_updater.py,sha256=itMS_Z64jE8bBly9WA01z8PqkBeNW6ntTO7ryMeCTRg,3703
11
11
  ara_cli/artefact_lister.py,sha256=jhk4n4eqp7hDIq07q43QzS7-36BM3OfZ4EABxCeOGcw,4764
12
12
  ara_cli/artefact_reader.py,sha256=qNaMPWShmWtDU5LLdh9efFB27djI4NAoq6zEFwdTd38,6983
13
- ara_cli/artefact_renamer.py,sha256=-qiX3rVLG27RP46dZDvrRzyHL5Tjmocit3qu4YpCpCE,5313
13
+ ara_cli/artefact_renamer.py,sha256=aJriqHdkeXAvHx1PuKOhpqgg9EBr7PMv6NK67CCasbU,5319
14
14
  ara_cli/artefact_scan.py,sha256=DgFGv4hnbCjYdIgPA2PbAuGDWg1q2fCjtIqxGs57b9w,1762
15
15
  ara_cli/chat.py,sha256=7xTtPEDk052_wmIzoti7GavEJ1vpRxe5c084WQ1C7dg,28617
16
16
  ara_cli/classifier.py,sha256=zWskj7rBYdqYBGjksBm46iTgVU5IIf2PZsJr4qeiwVU,1878
@@ -31,10 +31,10 @@ ara_cli/run_file_lister.py,sha256=XbrrDTJXp1LFGx9Lv91SNsEHZPP-PyEMBF_P4btjbDA,23
31
31
  ara_cli/tag_extractor.py,sha256=R5T103Y60NppYifKV7b8KoI5kE1M66fULz6f_Fdc9VU,1081
32
32
  ara_cli/template_manager.py,sha256=YXPj2jGNDb-diIHFEK_vGJ-ZucodnXSGAPofKTnOofI,6633
33
33
  ara_cli/update_config_prompt.py,sha256=PZgNIN3dTw6p80GyX8Sp5apkAhSoykwnkEbHo3IOkUo,4571
34
- ara_cli/version.py,sha256=fpEeZG6leiYWwwIqoODYikT2BvJzu3gvyWYJL-5Y4ns,146
34
+ ara_cli/version.py,sha256=NgYOrYvT6ewQjO9blMaF-5PiscTJqlK0ahlRP7Xw_tI,146
35
35
  ara_cli/artefact_models/artefact_load.py,sha256=dNcwZDW2Dk0bts9YnPZ0ESmWD2NbsLIvl4Z-qQeGmTQ,401
36
36
  ara_cli/artefact_models/artefact_mapping.py,sha256=8aD0spBjkJ8toMAmFawc6UTUxB6-tEEViZXv2I-r88Q,1874
37
- ara_cli/artefact_models/artefact_model.py,sha256=UQaLeuFzVOJViuMbFOgMY8zW7ihgxZZMV86Li7Tpjds,14847
37
+ ara_cli/artefact_models/artefact_model.py,sha256=vV-Hhtl6DwVt7qcFTnxxr_WqyTZnKtkFU-nryVnTbUg,14853
38
38
  ara_cli/artefact_models/artefact_templates.py,sha256=Vd7SwoRVKNGKZmxBKS6f9FE1ThUOCqZLScu0ClPfIu8,8321
39
39
  ara_cli/artefact_models/businessgoal_artefact_model.py,sha256=u9-Rr7VDYoNP6Vy2iKE64yAxDPOnrJJFozO6Ji9s8pI,4570
40
40
  ara_cli/artefact_models/capability_artefact_model.py,sha256=SZqHx4O2mj4urn77Stnj4_Jxtlq3-LgBBU9SMkByppI,3079
@@ -148,8 +148,8 @@ ara_cli/tests/test_list_filter.py,sha256=gSRKirTtFuhRS3QlFHqWl89WvCvAdVEnFsCWTYm
148
148
  ara_cli/tests/test_tag_extractor.py,sha256=n2xNApbDciqKO3QuaveEWSPXU1PCUa_EhxlZMrukONw,2074
149
149
  ara_cli/tests/test_template_manager.py,sha256=bRxka6cxHsCAOvXjfG8MrVO8qSZXhxW01tnph80UtNk,3143
150
150
  ara_cli/tests/test_update_config_prompt.py,sha256=vSsLvc18HZdVjVM93qXWVbJt752xTLL6VGjSVCrPufk,6729
151
- ara_cli-0.1.9.55.dist-info/METADATA,sha256=RQFtQigeQqZk3i9OU5-vr_DtS4hvklx9oehKqddBWQA,367
152
- ara_cli-0.1.9.55.dist-info/WHEEL,sha256=5sUXSg9e4bi7lTLOHcm6QEYwO5TIF1TNbTSVFVjcJcc,92
153
- ara_cli-0.1.9.55.dist-info/entry_points.txt,sha256=v4h7MzysTgSIDYfEo3oj4Kz_8lzsRa3hq-KJHEcLVX8,45
154
- ara_cli-0.1.9.55.dist-info/top_level.txt,sha256=zzee_PwFmKqfBi9XgIunP6xy2S4TIt593CLLxenNaAE,8
155
- ara_cli-0.1.9.55.dist-info/RECORD,,
151
+ ara_cli-0.1.9.57.dist-info/METADATA,sha256=PWvHyn9Eh2F65XzuO9mkqp8xgp_-SHCpxk6vrjK3VZQ,367
152
+ ara_cli-0.1.9.57.dist-info/WHEEL,sha256=5sUXSg9e4bi7lTLOHcm6QEYwO5TIF1TNbTSVFVjcJcc,92
153
+ ara_cli-0.1.9.57.dist-info/entry_points.txt,sha256=v4h7MzysTgSIDYfEo3oj4Kz_8lzsRa3hq-KJHEcLVX8,45
154
+ ara_cli-0.1.9.57.dist-info/top_level.txt,sha256=zzee_PwFmKqfBi9XgIunP6xy2S4TIt593CLLxenNaAE,8
155
+ ara_cli-0.1.9.57.dist-info/RECORD,,