auto-coder 0.1.202__py3-none-any.whl → 0.1.203__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto-coder
3
- Version: 0.1.202
3
+ Version: 0.1.203
4
4
  Summary: AutoCoder: AutoCoder
5
5
  Author: allwefantasy
6
6
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
@@ -1,18 +1,18 @@
1
1
  autocoder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- autocoder/auto_coder.py,sha256=AX6CBb8rk4KeHTi-VPiWQRN8YHAcYAq5lekuQvlPM38,39037
2
+ autocoder/auto_coder.py,sha256=IP4aSmuZh3HaIzLIThTKHF0PB38eTPUU1GDdfuJBam4,38971
3
3
  autocoder/auto_coder_lang.py,sha256=Rtupq6N3_HT7JRhDKdgCBcwRaiAnyCOR_Gsp4jUomrI,3229
4
4
  autocoder/auto_coder_rag.py,sha256=vRc3O0qSyRjiuBKD6Bfh3oMVchnO3VHoAeOz5j_jjlY,16578
5
5
  autocoder/auto_coder_server.py,sha256=XU9b4SBH7zjPPXaTWWHV4_zJm-XYa6njuLQaplYJH_c,20290
6
- autocoder/chat_auto_coder.py,sha256=kgcD4HKKmvDd2CI048TqZwdx2hrQRbZKYPO10qyrbA8,82105
7
- autocoder/chat_auto_coder_lang.py,sha256=QYtu5gWEQmWKVovR_qUZ8plySZarNFX_Onk-1vN9IiA,8524
8
- autocoder/command_args.py,sha256=MBsVjZpADu5u7CjY_1F8fGUW-9dVGyNDpzWyrDIMxz8,29890
6
+ autocoder/chat_auto_coder.py,sha256=GXyCrX7GTYHYTCg2-62LYuO9Vt7Y5DdgfpCoTCQbYfE,86488
7
+ autocoder/chat_auto_coder_lang.py,sha256=zU9VRY-l80fZnLJ0Op8A3wq27UhQHh9WcpSYU4SmnqU,8708
8
+ autocoder/command_args.py,sha256=nmVD3xgLKKNt3fLJ4wVNUdJBtBOkfAdZ2ZmaRMlS7qg,29891
9
9
  autocoder/lang.py,sha256=Ajng6m7towmx-cvQfEHPFp43iEfddPvr8ju5GH4H8qA,13819
10
- autocoder/version.py,sha256=KbKAfOQ1mRxioaKsb1VhjDtdk7RG8UIteq2BswiztKI,24
10
+ autocoder/version.py,sha256=3OV3Lhv1wJ1vRHo-RMN91J8ZHzZJk0sWELqyW7oS9YM,24
11
11
  autocoder/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  autocoder/agent/auto_tool.py,sha256=DBzip-P_T6ZtT2eHexPcusmKYD0h7ufzp7TLwXAY10E,11554
13
13
  autocoder/agent/coder.py,sha256=x6bdJwDuETGg9ebQnYlUWCxCtQcDGg73LtI6McpWslQ,72034
14
14
  autocoder/agent/designer.py,sha256=EpRbzO58Xym3GrnppIT1Z8ZFAlnNfgzHbIzZ3PX-Yv8,27037
15
- autocoder/agent/planner.py,sha256=vwCY0SiPoKFQZCZnTVlOIBnVzkgIu1uk-xMC0d6_TNw,9048
15
+ autocoder/agent/planner.py,sha256=wvvuX9o6yhWlGm9t7fIT0wiChV5NkXBrYElxKiAjldU,9127
16
16
  autocoder/agent/project_reader.py,sha256=tWLaPoLw1gI6kO_NzivQj28KbobU2ceOLuppHMbfGl8,18234
17
17
  autocoder/chat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  autocoder/common/JupyterClient.py,sha256=O-wi6pXeAEYhAY24kDa0BINrLYvKS6rKyWe98pDClS0,2816
@@ -34,7 +34,7 @@ autocoder/common/command_completer.py,sha256=pmPpdfGhpNV3v4u3KadL1BEG5H0QRO6eGv9
34
34
  autocoder/common/command_generator.py,sha256=v4LmU7sO-P7jEZIXCWHUC6P-vT7AvBi_x_PTwCqBAE8,1323
35
35
  autocoder/common/command_templates.py,sha256=3G-pCNbL6iHbnkG6v1JZpbIK3Mc9d373_RYGmCcDPMY,8548
36
36
  autocoder/common/const.py,sha256=eTjhjh4Aj4CUzviJ81jaf3Y5cwqsLATySn2wJxaS6RQ,2911
37
- autocoder/common/git_utils.py,sha256=UdsbUC8SpQdWt2VZ-6px6GQBWRvSJotD4IuDM4J7NBk,6598
37
+ autocoder/common/git_utils.py,sha256=btK45sxvfm4tX3fBRNUPRZoGQuZuOEQrWSAwLy1yoLw,23095
38
38
  autocoder/common/image_to_page.py,sha256=O0cNO_vHHUP-fP4GXiVojShmNqkPnZXeIyiY1MRLpKg,13936
39
39
  autocoder/common/interpreter.py,sha256=62-dIakOunYB4yjmX8SHC0Gdy2h8NtxdgbpdqRZJ5vk,2833
40
40
  autocoder/common/llm_rerank.py,sha256=FbvtCzaR661Mt2wn0qsuiEL1Y3puD6jeIJS4zg_e7Bs,3260
@@ -93,7 +93,7 @@ autocoder/regex_project/__init__.py,sha256=EBZeCL5ORyD_9_5u_UuG4s7XtpXOu0y1sWDmx
93
93
  autocoder/regexproject/__init__.py,sha256=lHTpHfYkguCMtczXoH4bMr-IMNZQtXIjmtSvjtfX0Ro,9674
94
94
  autocoder/suffixproject/__init__.py,sha256=bEPW9AyGSQ8kNzrgKEXyRikrUCUEuJ6b6vCLzO8Ja6g,11017
95
95
  autocoder/tsproject/__init__.py,sha256=avSnMA3uSdZmv5MxTilDPFLRFmtfzFr1NPhHaRMFhX4,11625
96
- autocoder/utils/__init__.py,sha256=O3n6cpsgkIbbMuwmBHSQ1dls_IBD7_7YKFFaeKNo_tc,1193
96
+ autocoder/utils/__init__.py,sha256=KtcGElFNBgZPF7dEL8zF9JpXkCAjoyDrzaREJBhJrcs,994
97
97
  autocoder/utils/_markitdown.py,sha256=RU88qn4eZfYIy0GDrPxlI8oYXIypbi63VRJjdlnE0VU,47431
98
98
  autocoder/utils/coder.py,sha256=rK8e0svQBe0NOP26dIGToUXgha_hUDgxlWoC_p_r7oc,5698
99
99
  autocoder/utils/conversation_store.py,sha256=sz-hhY7sttPAUOAQU6Pze-5zJc3j0_Emj22dM_0l5ro,1161
@@ -106,9 +106,9 @@ autocoder/utils/request_event_queue.py,sha256=r3lo5qGsB1dIjzVQ05dnr0z_9Z3zOkBdP1
106
106
  autocoder/utils/request_queue.py,sha256=nwp6PMtgTCiuwJI24p8OLNZjUiprC-TsefQrhMI-yPE,3889
107
107
  autocoder/utils/rest.py,sha256=HawagAap3wMIDROGhY1730zSZrJR_EycODAA5qOj83c,8807
108
108
  autocoder/utils/tests.py,sha256=BqphrwyycGAvs-5mhH8pKtMZdObwhFtJ5MC_ZAOiLq8,1340
109
- auto_coder-0.1.202.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
110
- auto_coder-0.1.202.dist-info/METADATA,sha256=JU3TFfBNRhy5U-nqB2vFy2gLKLQs-E89lUX3B0MrNj8,2575
111
- auto_coder-0.1.202.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
112
- auto_coder-0.1.202.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
113
- auto_coder-0.1.202.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
114
- auto_coder-0.1.202.dist-info/RECORD,,
109
+ auto_coder-0.1.203.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
110
+ auto_coder-0.1.203.dist-info/METADATA,sha256=kNWoZ8d9NWsWDno4098rqmqKqtBTYaxvKeOhJEj1_DE,2575
111
+ auto_coder-0.1.203.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
112
+ auto_coder-0.1.203.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
113
+ auto_coder-0.1.203.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
114
+ auto_coder-0.1.203.dist-info/RECORD,,
@@ -102,18 +102,20 @@ def get_tools(args: AutoCoderArgs, llm: byzerllm.ByzerLLM):
102
102
  return
103
103
 
104
104
  action_files = [
105
- f
106
- for f in os.listdir(actions_dir)
107
- if f[:3].isdigit() and f.endswith(".yml")
105
+ f for f in os.listdir(actions_dir) if f[:3].isdigit() and "_" in f and f.endswith(".yml")
108
106
  ]
107
+
108
+ def get_old_seq(name):
109
+ return name.split("_")[0]
110
+
109
111
  if not action_files:
110
112
  max_seq = 0
111
113
  else:
112
- seqs = [int(f[:3]) for f in action_files]
114
+ seqs = [int(get_old_seq(f)) for f in action_files]
113
115
  max_seq = max(seqs)
114
116
 
115
- new_seq = str(max_seq + 1).zfill(3)
116
- prev_files = [f for f in action_files if int(f[:3]) < int(new_seq)]
117
+ new_seq = str(max_seq + 1).zfill(12)
118
+ prev_files = [f for f in action_files if int(get_old_seq(f)) < int(new_seq)]
117
119
 
118
120
  if not prev_files:
119
121
  new_file = os.path.join(actions_dir, f"{new_seq}_{yaml_file_name}.yml")
autocoder/auto_coder.py CHANGED
@@ -194,16 +194,20 @@ def main(input_args: Optional[List[str]] = None):
194
194
  return
195
195
 
196
196
  action_files = [
197
- f for f in os.listdir(actions_dir) if f[:3].isdigit() and f.endswith(".yml")
197
+ f for f in os.listdir(actions_dir) if f[:3].isdigit() and "_" in f and f.endswith(".yml")
198
198
  ]
199
+
200
+ def get_old_seq(name):
201
+ return name.split("_")[0]
202
+
199
203
  if not action_files:
200
204
  max_seq = 0
201
205
  else:
202
- seqs = [int(f[:3]) for f in action_files]
206
+ seqs = [int(get_old_seq(f)) for f in action_files]
203
207
  max_seq = max(seqs)
204
208
 
205
- new_seq = str(max_seq + 1).zfill(3)
206
- prev_files = [f for f in action_files if int(f[:3]) < int(new_seq)]
209
+ new_seq = str(max_seq + 1).zfill(12)
210
+ prev_files = [f for f in action_files if int(get_old_seq(f)) < int(new_seq)]
207
211
 
208
212
  if raw_args.from_yaml:
209
213
  # If --from_yaml is specified, copy content from the matching YAML file
@@ -489,7 +493,7 @@ def main(input_args: Optional[List[str]] = None):
489
493
  from autocoder.index.for_command import index_query_command
490
494
 
491
495
  index_query_command(args, llm)
492
- return
496
+ return
493
497
 
494
498
  if raw_args.command == "agent":
495
499
  if raw_args.agent_command == "planner":
@@ -763,7 +767,7 @@ def main(input_args: Optional[List[str]] = None):
763
767
 
764
768
  loaded_conversations = pre_conversations + \
765
769
  chat_history["ask_conversation"]
766
-
770
+
767
771
  if args.human_as_model:
768
772
  console = Console()
769
773
 
@@ -821,8 +825,8 @@ def main(input_args: Optional[List[str]] = None):
821
825
  border_style="blue",
822
826
  expand=False,
823
827
  )
824
- )
825
- if args.request_id:
828
+ )
829
+ if args.request_id:
826
830
  request_queue.add_request(
827
831
  args.request_id,
828
832
  RequestValue(
@@ -836,7 +840,7 @@ def main(input_args: Optional[List[str]] = None):
836
840
  ),
837
841
  )
838
842
  return {}
839
-
843
+
840
844
  lines = []
841
845
  while True:
842
846
  line = prompt(FormattedText(
@@ -875,12 +879,12 @@ def main(input_args: Optional[List[str]] = None):
875
879
 
876
880
  return {}
877
881
 
878
- if args.enable_rag_search or args.enable_rag_context:
882
+ if args.enable_rag_search or args.enable_rag_context:
879
883
  rag = RAGFactory.get_rag(llm=chat_llm, args=args, path="")
880
884
  response = rag.stream_chat_oai(
881
885
  conversations=loaded_conversations)[0]
882
886
  v = ([item, None] for item in response)
883
- else:
887
+ else:
884
888
  v = chat_llm.stream_chat_oai(
885
889
  conversations=loaded_conversations, delta_mode=True
886
890
  )
@@ -896,7 +900,7 @@ def main(input_args: Optional[List[str]] = None):
896
900
  for res in v:
897
901
  markdown_content += res[0]
898
902
  assistant_response += res[0]
899
- if args.request_id:
903
+ if args.request_id:
900
904
  request_queue.add_request(
901
905
  args.request_id,
902
906
  RequestValue(