auto-coder 0.1.319__py3-none-any.whl → 0.1.320__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 auto-coder might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto-coder
3
- Version: 0.1.319
3
+ Version: 0.1.320
4
4
  Summary: AutoCoder: AutoCoder
5
5
  Author: allwefantasy
6
6
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
@@ -28,7 +28,7 @@ Requires-Dist: prompt-toolkit
28
28
  Requires-Dist: tokenizers
29
29
  Requires-Dist: aiofiles
30
30
  Requires-Dist: readerwriterlock
31
- Requires-Dist: byzerllm[saas] >=0.1.179
31
+ Requires-Dist: byzerllm[saas] >=0.1.180
32
32
  Requires-Dist: patch
33
33
  Requires-Dist: diff-match-patch
34
34
  Requires-Dist: GitPython
@@ -14,7 +14,7 @@ autocoder/command_parser.py,sha256=fx1g9E6GaM273lGTcJqaFQ-hoksS_Ik2glBMnVltPCE,1
14
14
  autocoder/lang.py,sha256=U6AjVV8Rs1uLyjFCZ8sT6WWuNUxMBqkXXIOs4S120uk,14511
15
15
  autocoder/models.py,sha256=AyoZ-Pzy0oyYUmWCxOIRiOImsqboSfRET7LO9-UOuxI,11172
16
16
  autocoder/run_context.py,sha256=IUfSO6_gp2Wt1blFWAmOpN0b0nDrTTk4LmtCYUBIoro,1643
17
- autocoder/version.py,sha256=XdeDY-Hjuv17MEDfIoOH2sR0JsaUVRiEyvDOMScW4Sg,23
17
+ autocoder/version.py,sha256=EoDeN3ig5ZVwNxmRTPz8sPe72QOBbNeYkwwSFCHdnjQ,23
18
18
  autocoder/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  autocoder/agent/auto_demand_organizer.py,sha256=URAq0gSEiHeV_W4zwhOI_83kHz0Ryfj1gcfh5jwCv_w,6501
20
20
  autocoder/agent/auto_filegroup.py,sha256=pBsAkBcpFTff-9L5OwI8xhf2xPKpl-aZwz-skF2B6dc,6296
@@ -34,7 +34,7 @@ autocoder/commands/tools.py,sha256=SlMhPICWjDsloi05CfDMawCtJmbffOCjUNj_-ve-w40,3
34
34
  autocoder/common/JupyterClient.py,sha256=O-wi6pXeAEYhAY24kDa0BINrLYvKS6rKyWe98pDClS0,2816
35
35
  autocoder/common/ShellClient.py,sha256=fM1q8t_XMSbLBl2zkCNC2J9xuyKN3eXzGm6hHhqL2WY,2286
36
36
  autocoder/common/__init__.py,sha256=uYI9fXA6ypxWopBeN82MjKiOvT9b-xx0U5wI3AztGQc,14170
37
- autocoder/common/action_yml_file_manager.py,sha256=-bbTB8nyxgzf_GNa_TCL21TV87b_9ENmDmybZWVrwSA,17371
37
+ autocoder/common/action_yml_file_manager.py,sha256=DdF5P1R_B_chCnnqoA2IgogakWLZk_nItiJZUfX0_Wo,17857
38
38
  autocoder/common/anything2images.py,sha256=0ILBbWzY02M-CiWB-vzuomb_J1hVdxRcenAfIrAXq9M,25283
39
39
  autocoder/common/anything2img.py,sha256=iZQmg8srXlD7N5uGl5b_ONKJMBjYoW8kPmokkG6ISF0,10118
40
40
  autocoder/common/audio.py,sha256=Kn9nWKQddWnUrAz0a_ZUgjcu4VUU_IcZBigT7n3N3qc,7439
@@ -226,9 +226,9 @@ autocoder/utils/types.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
226
226
  autocoder/utils/auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
227
227
  autocoder/utils/auto_coder_utils/chat_stream_out.py,sha256=xuBeWD0YOckqRo8JB1WkVIMOYH6c24m7JfV4svBfPDo,15113
228
228
  autocoder/utils/chat_auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
229
- auto_coder-0.1.319.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
230
- auto_coder-0.1.319.dist-info/METADATA,sha256=g5JNESA7xb3XyyMMhnNm3pHX2QEWQmQ3WcmnxCf70qs,2747
231
- auto_coder-0.1.319.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
232
- auto_coder-0.1.319.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
233
- auto_coder-0.1.319.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
234
- auto_coder-0.1.319.dist-info/RECORD,,
229
+ auto_coder-0.1.320.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
230
+ auto_coder-0.1.320.dist-info/METADATA,sha256=cdjK2vDvD6CM-cNmJjqqgJrSdfd1c0-t4w585xuXyP4,2747
231
+ auto_coder-0.1.320.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
232
+ auto_coder-0.1.320.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
233
+ auto_coder-0.1.320.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
234
+ auto_coder-0.1.320.dist-info/RECORD,,
@@ -48,15 +48,15 @@ class ActionYmlFileManager:
48
48
  return False
49
49
  return True
50
50
 
51
- def get_action_files(self, filter_prefix: Optional[str] = None) -> List[str]:
51
+ def get_action_files(self, filter_prefix: Optional[str] = None, limit: Optional[int] = None) -> List[str]:
52
52
  """
53
- 获取所有符合条件的 YAML 文件名
53
+ 获取所有符合条件的 YAML 文件名,并按数字部分降序排序
54
54
 
55
55
  Args:
56
56
  filter_prefix: 可选的文件名前缀过滤
57
57
 
58
58
  Returns:
59
- List[str]: 符合条件的文件名列表
59
+ List[str]: 符合条件的文件名列表,按数字部分降序排序
60
60
  """
61
61
  if not os.path.exists(self.actions_dir):
62
62
  return []
@@ -69,7 +69,17 @@ class ActionYmlFileManager:
69
69
  if filter_prefix:
70
70
  action_files = [f for f in action_files if f.startswith(filter_prefix)]
71
71
 
72
- return action_files
72
+ # 按数字部分降序排序
73
+ def get_numeric_part(filename: str) -> int:
74
+ try:
75
+ return int(filename.split('_')[0])
76
+ except (ValueError, IndexError):
77
+ return 0
78
+
79
+ if limit:
80
+ return sorted(action_files, key=get_numeric_part, reverse=True)[0:limit]
81
+ else:
82
+ return sorted(action_files, key=get_numeric_part, reverse=True)
73
83
 
74
84
  def get_sequence_number(self, file_name: str) -> int:
75
85
  """
autocoder/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.319"
1
+ __version__ = "0.1.320"