auto-coder 0.1.318__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.
- {auto_coder-0.1.318.dist-info → auto_coder-0.1.320.dist-info}/METADATA +2 -2
- {auto_coder-0.1.318.dist-info → auto_coder-0.1.320.dist-info}/RECORD +9 -9
- autocoder/auto_coder.py +14 -0
- autocoder/common/action_yml_file_manager.py +14 -4
- autocoder/version.py +1 -1
- {auto_coder-0.1.318.dist-info → auto_coder-0.1.320.dist-info}/LICENSE +0 -0
- {auto_coder-0.1.318.dist-info → auto_coder-0.1.320.dist-info}/WHEEL +0 -0
- {auto_coder-0.1.318.dist-info → auto_coder-0.1.320.dist-info}/entry_points.txt +0 -0
- {auto_coder-0.1.318.dist-info → auto_coder-0.1.320.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: auto-coder
|
|
3
|
-
Version: 0.1.
|
|
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.
|
|
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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
autocoder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
autocoder/auto_coder.py,sha256=
|
|
2
|
+
autocoder/auto_coder.py,sha256=9nZRtLXsBsvbJixh_JE8tQCHKMEGq09mMvoeh_rWjfk,66778
|
|
3
3
|
autocoder/auto_coder_lang.py,sha256=Rtupq6N3_HT7JRhDKdgCBcwRaiAnyCOR_Gsp4jUomrI,3229
|
|
4
4
|
autocoder/auto_coder_rag.py,sha256=vOqwBHdK_KwMNUUc8ji_tlZ5DoALAG1rDjWAic3rM-4,34561
|
|
5
5
|
autocoder/auto_coder_rag_client_mcp.py,sha256=QRxUbjc6A8UmDMQ8lXgZkjgqtq3lgKYeatJbDY6rSo0,6270
|
|
@@ -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=
|
|
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
|
|
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.
|
|
230
|
-
auto_coder-0.1.
|
|
231
|
-
auto_coder-0.1.
|
|
232
|
-
auto_coder-0.1.
|
|
233
|
-
auto_coder-0.1.
|
|
234
|
-
auto_coder-0.1.
|
|
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,,
|
autocoder/auto_coder.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from autocoder.events.event_types import EventMetadata
|
|
1
2
|
import byzerllm
|
|
2
3
|
import yaml
|
|
3
4
|
import os
|
|
@@ -1393,6 +1394,19 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
1393
1394
|
input_cost=round(input_cost, 4),
|
|
1394
1395
|
output_cost=round(output_cost, 4),
|
|
1395
1396
|
speed=round(speed, 2))
|
|
1397
|
+
get_event_manager(args.event_file).write_result(
|
|
1398
|
+
EventContentCreator.create_result(content=EventContentCreator.ResultTokenStatContent(
|
|
1399
|
+
model_name=model_name,
|
|
1400
|
+
elapsed_time=elapsed_time,
|
|
1401
|
+
input_tokens=last_meta.input_tokens_count,
|
|
1402
|
+
output_tokens=last_meta.generated_tokens_count,
|
|
1403
|
+
input_cost=round(input_cost, 4),
|
|
1404
|
+
output_cost=round(output_cost, 4),
|
|
1405
|
+
speed=round(speed, 2)
|
|
1406
|
+
)).to_dict(), metadata=EventMetadata(
|
|
1407
|
+
action_file=args.file
|
|
1408
|
+
).to_dict())
|
|
1409
|
+
|
|
1396
1410
|
|
|
1397
1411
|
chat_history["ask_conversation"].append(
|
|
1398
1412
|
{"role": "assistant", "content": assistant_response}
|
|
@@ -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
|
-
|
|
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.
|
|
1
|
+
__version__ = "0.1.320"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|