auto-coder 0.1.350__py3-none-any.whl → 0.1.352__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.350.dist-info → auto_coder-0.1.352.dist-info}/METADATA +2 -1
- {auto_coder-0.1.350.dist-info → auto_coder-0.1.352.dist-info}/RECORD +13 -13
- autocoder/agent/agentic_filter.py +6 -1
- autocoder/commands/tools.py +16 -3
- autocoder/common/printer.py +2 -0
- autocoder/index/entry.py +2 -0
- autocoder/index/index.py +8 -0
- autocoder/models.py +14 -1
- autocoder/version.py +1 -1
- {auto_coder-0.1.350.dist-info → auto_coder-0.1.352.dist-info}/LICENSE +0 -0
- {auto_coder-0.1.350.dist-info → auto_coder-0.1.352.dist-info}/WHEEL +0 -0
- {auto_coder-0.1.350.dist-info → auto_coder-0.1.352.dist-info}/entry_points.txt +0 -0
- {auto_coder-0.1.350.dist-info → auto_coder-0.1.352.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.352
|
|
4
4
|
Summary: AutoCoder: AutoCoder
|
|
5
5
|
Author: allwefantasy
|
|
6
6
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -61,6 +61,7 @@ Requires-Dist: pydub
|
|
|
61
61
|
Requires-Dist: youtube-transcript-api
|
|
62
62
|
Requires-Dist: SpeechRecognition
|
|
63
63
|
Requires-Dist: pathvalidate
|
|
64
|
+
Requires-Dist: pexpect
|
|
64
65
|
Requires-Dist: setuptools
|
|
65
66
|
Requires-Dist: mcp ; python_version >= "3.10"
|
|
66
67
|
|
|
@@ -12,13 +12,13 @@ autocoder/chat_auto_coder_lang.py,sha256=LecXAvbNFVURwXFF1QOs-n04vto37QwUvoeDMeF
|
|
|
12
12
|
autocoder/command_args.py,sha256=HxflngkYtTrV17Vfgk6lyUyiG68jP2ftSc7FYr9AXwY,30585
|
|
13
13
|
autocoder/command_parser.py,sha256=fx1g9E6GaM273lGTcJqaFQ-hoksS_Ik2glBMnVltPCE,10013
|
|
14
14
|
autocoder/lang.py,sha256=PFtATuOhHRnfpqHQkXr6p4C893JvpsgwTMif3l-GEi0,14321
|
|
15
|
-
autocoder/models.py,sha256=
|
|
15
|
+
autocoder/models.py,sha256=W-IboD3wv6-P4U4I2o2vXOasD3pUAL8DTGhwJqL2AvI,13428
|
|
16
16
|
autocoder/run_context.py,sha256=IUfSO6_gp2Wt1blFWAmOpN0b0nDrTTk4LmtCYUBIoro,1643
|
|
17
|
-
autocoder/version.py,sha256=
|
|
17
|
+
autocoder/version.py,sha256=Fh3YsTo0l3qG9GksFll-ePdOjVFGl8rV-HKkh8lca08,23
|
|
18
18
|
autocoder/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
autocoder/agent/agentic_edit.py,sha256=XsfePZ-t6M-uBSdG1VLZXk1goqXk2HPeJ_A8IYyBuWQ,58896
|
|
20
20
|
autocoder/agent/agentic_edit_types.py,sha256=oFcDd_cxJ2yH9Ed1uTpD3BipudgoIEWDMPb5pAkq4gI,3288
|
|
21
|
-
autocoder/agent/agentic_filter.py,sha256=
|
|
21
|
+
autocoder/agent/agentic_filter.py,sha256=CTcfIc4SFebJxRX7nZRlyO5MY8bBZtF8xlFf6H425Ak,39798
|
|
22
22
|
autocoder/agent/auto_demand_organizer.py,sha256=URAq0gSEiHeV_W4zwhOI_83kHz0Ryfj1gcfh5jwCv_w,6501
|
|
23
23
|
autocoder/agent/auto_filegroup.py,sha256=pBsAkBcpFTff-9L5OwI8xhf2xPKpl-aZwz-skF2B6dc,6296
|
|
24
24
|
autocoder/agent/auto_guess_query.py,sha256=rDSdhpPHcOGE5MuDXvIrhCXAPR4ARS1LqpyoLsx2Jhw,11374
|
|
@@ -46,7 +46,7 @@ autocoder/chat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
46
46
|
autocoder/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
47
|
autocoder/commands/auto_command.py,sha256=Ogg-mj7lnGBnBzebnYjszvZ8-cxgdl3qJSW9niidhiY,64678
|
|
48
48
|
autocoder/commands/auto_web.py,sha256=Cc0eb6JN3SvFy3GD_lpSLvIqj7F1eFDTcwg1t-zDcKg,39024
|
|
49
|
-
autocoder/commands/tools.py,sha256=
|
|
49
|
+
autocoder/commands/tools.py,sha256=Xj_yeWvp5Z_VtF6UyR3mmGQQFCoqHPimqcXRvGDHnJc,34285
|
|
50
50
|
autocoder/common/JupyterClient.py,sha256=O-wi6pXeAEYhAY24kDa0BINrLYvKS6rKyWe98pDClS0,2816
|
|
51
51
|
autocoder/common/ShellClient.py,sha256=fM1q8t_XMSbLBl2zkCNC2J9xuyKN3eXzGm6hHhqL2WY,2286
|
|
52
52
|
autocoder/common/__init__.py,sha256=U6oImbo5n_sLcFLS7ZAMZqnCc-3DYeVYD9K6r1V7mSk,14601
|
|
@@ -95,7 +95,7 @@ autocoder/common/memory_manager.py,sha256=Xx6Yv0ULxVfcFfmD36hdHFFhxCgRAs-5fTd0fL
|
|
|
95
95
|
autocoder/common/model_speed_test.py,sha256=U48xUUpOnbwUal1cdij4YAn_H2PD2pNaqrMHaYtQRfI,15200
|
|
96
96
|
autocoder/common/model_speed_tester.py,sha256=U48xUUpOnbwUal1cdij4YAn_H2PD2pNaqrMHaYtQRfI,15200
|
|
97
97
|
autocoder/common/openai_content.py,sha256=M_V_UyHrqNVWjgrYvxfAupZw2I0Nr3iilYv6SxSvfLA,8091
|
|
98
|
-
autocoder/common/printer.py,sha256=
|
|
98
|
+
autocoder/common/printer.py,sha256=T4XTAcQp5w1ZWYx5NAUXlIGd-9500Vl0JaG1JJXMdkg,2030
|
|
99
99
|
autocoder/common/recall_validation.py,sha256=Avt9Q9dX3kG6Pf2zsdlOHmsjd-OeSj7U1PFBDp_Cve0,1700
|
|
100
100
|
autocoder/common/result_manager.py,sha256=nBcFRj5reBC7vp13M91f4B8iPW8B8OehayHlUdeAt1g,3776
|
|
101
101
|
autocoder/common/run_cmd.py,sha256=2VrJpeqooasUoc-WKVrvFfesmRR55kOpPmmYgpQrKVc,8283
|
|
@@ -184,9 +184,9 @@ autocoder/ignorefiles/__init__.py,sha256=P0hq7Avu1IeXBYEkPBZLsJhFzhzyktUWTqaRIXi
|
|
|
184
184
|
autocoder/ignorefiles/ignore_file_utils.py,sha256=atJ_LEhRn-3NamBFl0Y9hJPG0cEt3nL9lVGHBweEOW0,1782
|
|
185
185
|
autocoder/ignorefiles/test_ignore_file_utils.py,sha256=961_5ilCgzyo09Luj457A4694OzZDggmQEoiAkldMcU,3104
|
|
186
186
|
autocoder/index/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
187
|
-
autocoder/index/entry.py,sha256=
|
|
187
|
+
autocoder/index/entry.py,sha256=Eb0SmwrgshQte3_IGL4GAB4_HXC2jbatrgrd2uPxQng,15306
|
|
188
188
|
autocoder/index/for_command.py,sha256=BFvljE4t6VaMBGboZAuhUCzVK0EitCy_n5D_7FEnihw,3204
|
|
189
|
-
autocoder/index/index.py,sha256
|
|
189
|
+
autocoder/index/index.py,sha256=1Xl9ubU4sWKFFtGWIPnygblRZanqOhsCRYQBqg1_mBg,32748
|
|
190
190
|
autocoder/index/symbols_utils.py,sha256=_EP7E_qWXxluAxq3FGZLlLfdrfwx3FmxCdulI8VGuac,2244
|
|
191
191
|
autocoder/index/types.py,sha256=a2s_KV5FJlq7jqA2ELSo9E1sjuLwDB-JJYMhSpzBAhU,596
|
|
192
192
|
autocoder/index/filter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -289,9 +289,9 @@ autocoder/utils/types.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
289
289
|
autocoder/utils/auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
290
290
|
autocoder/utils/auto_coder_utils/chat_stream_out.py,sha256=KW0mlmcHlStXi8-_6fXZ2-ifeJ5mgP0OV7DQFzCtIsw,14008
|
|
291
291
|
autocoder/utils/chat_auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
292
|
-
auto_coder-0.1.
|
|
293
|
-
auto_coder-0.1.
|
|
294
|
-
auto_coder-0.1.
|
|
295
|
-
auto_coder-0.1.
|
|
296
|
-
auto_coder-0.1.
|
|
297
|
-
auto_coder-0.1.
|
|
292
|
+
auto_coder-0.1.352.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
293
|
+
auto_coder-0.1.352.dist-info/METADATA,sha256=BnIcPQS0Q6YOueGvTg9Y-NujNFcXan24iFF0IzxxpDw,2751
|
|
294
|
+
auto_coder-0.1.352.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
295
|
+
auto_coder-0.1.352.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
|
|
296
|
+
auto_coder-0.1.352.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
|
|
297
|
+
auto_coder-0.1.352.dist-info/RECORD,,
|
|
@@ -933,4 +933,9 @@ class AgenticFilter:
|
|
|
933
933
|
v = self.printer.get_message_from_key_with_format(
|
|
934
934
|
"auto_command_failed", style="red", command=command, error=error_msg
|
|
935
935
|
)
|
|
936
|
-
|
|
936
|
+
self.result_manager = ResultManager()
|
|
937
|
+
result = f"command {command} with parameters {parameters} execution failed with error {error_msg}"
|
|
938
|
+
self.result_manager.add_result(content=result, meta={
|
|
939
|
+
"action": command,
|
|
940
|
+
"input": parameters
|
|
941
|
+
})
|
autocoder/commands/tools.py
CHANGED
|
@@ -48,6 +48,8 @@ from autocoder.common.mcp_server_types import (
|
|
|
48
48
|
McpListRunningRequest, McpRefreshRequest
|
|
49
49
|
)
|
|
50
50
|
|
|
51
|
+
from autocoder.ignorefiles.ignore_file_utils import should_ignore
|
|
52
|
+
|
|
51
53
|
|
|
52
54
|
@byzerllm.prompt()
|
|
53
55
|
def detect_rm_command(command: str) -> Bool:
|
|
@@ -394,7 +396,13 @@ class AutoCommandTools:
|
|
|
394
396
|
# 解析文件路径列表(如果提供了)
|
|
395
397
|
file_path_list = []
|
|
396
398
|
if file_paths:
|
|
397
|
-
|
|
399
|
+
# 处理可能是列表或字符串的file_paths
|
|
400
|
+
if isinstance(file_paths, list):
|
|
401
|
+
file_path_list = file_paths
|
|
402
|
+
elif isinstance(file_paths, str):
|
|
403
|
+
file_path_list = [path.strip() for path in file_paths.split(",")]
|
|
404
|
+
else:
|
|
405
|
+
file_path_list = [str(file_paths)]
|
|
398
406
|
|
|
399
407
|
for k in index_data.values():
|
|
400
408
|
value = {}
|
|
@@ -739,10 +747,15 @@ class AutoCommandTools:
|
|
|
739
747
|
搜索不区分大小写。
|
|
740
748
|
"""
|
|
741
749
|
matched_files = []
|
|
742
|
-
for root,
|
|
750
|
+
for root, dirs, files in os.walk(self.args.source_dir):
|
|
751
|
+
# 过滤忽略的目录,避免递归进入
|
|
752
|
+
dirs[:] = [d for d in dirs if not should_ignore(os.path.join(root, d))]
|
|
743
753
|
for file in files:
|
|
754
|
+
file_path = os.path.join(root, file)
|
|
755
|
+
if should_ignore(file_path):
|
|
756
|
+
continue
|
|
744
757
|
if keyword.lower() in file.lower():
|
|
745
|
-
matched_files.append(
|
|
758
|
+
matched_files.append(file_path)
|
|
746
759
|
|
|
747
760
|
v = ",".join(matched_files)
|
|
748
761
|
|
autocoder/common/printer.py
CHANGED
autocoder/index/entry.py
CHANGED
|
@@ -120,6 +120,8 @@ def build_index_and_filter_files(
|
|
|
120
120
|
response = tuner.analyze(
|
|
121
121
|
AgenticFilterRequest(user_input=args.query))
|
|
122
122
|
if response:
|
|
123
|
+
print("收集文件。。。。。。")
|
|
124
|
+
print(response)
|
|
123
125
|
for file in response.files:
|
|
124
126
|
final_files[file.path] = TargetFile(
|
|
125
127
|
file_path=file.path, reason="Agentic Filter")
|
autocoder/index/index.py
CHANGED
|
@@ -460,6 +460,14 @@ class IndexManager:
|
|
|
460
460
|
return exclude_patterns
|
|
461
461
|
|
|
462
462
|
def filter_exclude_files(self, file_path, exclude_patterns):
|
|
463
|
+
# 增加 ignore_file_utils 的过滤
|
|
464
|
+
try:
|
|
465
|
+
from src.autocoder.ignorefiles import ignore_file_utils
|
|
466
|
+
if ignore_file_utils.should_ignore(file_path):
|
|
467
|
+
return True
|
|
468
|
+
except Exception:
|
|
469
|
+
pass
|
|
470
|
+
|
|
463
471
|
for pattern in exclude_patterns:
|
|
464
472
|
if pattern.search(file_path):
|
|
465
473
|
return True
|
autocoder/models.py
CHANGED
|
@@ -71,7 +71,20 @@ default_models_list = [
|
|
|
71
71
|
"output_price": 0.0,
|
|
72
72
|
"average_speed": 0.0,
|
|
73
73
|
"max_output_tokens": 8096*2
|
|
74
|
-
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "openrouter/optimus-alpha",
|
|
77
|
+
"description": "",
|
|
78
|
+
"model_name": "openrouter/optimus-alpha",
|
|
79
|
+
"model_type": "saas/openai",
|
|
80
|
+
"base_url": "https://openrouter.ai/api/v1",
|
|
81
|
+
"api_key_path": "",
|
|
82
|
+
"is_reasoning": False,
|
|
83
|
+
"input_price": 0.0,
|
|
84
|
+
"output_price": 0.0,
|
|
85
|
+
"average_speed": 0.0,
|
|
86
|
+
"max_output_tokens": 8096*2
|
|
87
|
+
},
|
|
75
88
|
{
|
|
76
89
|
"name": "openrouter/google/gemini-2.5-pro-preview-03-25",
|
|
77
90
|
"description": "",
|
autocoder/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.352"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|