auto-coder 0.1.299__py3-none-any.whl → 0.1.301__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.299.dist-info → auto_coder-0.1.301.dist-info}/METADATA +1 -1
- {auto_coder-0.1.299.dist-info → auto_coder-0.1.301.dist-info}/RECORD +26 -24
- autocoder/agent/auto_learn_from_commit.py +125 -59
- autocoder/agent/auto_review_commit.py +106 -16
- autocoder/auto_coder.py +65 -66
- autocoder/auto_coder_runner.py +23 -40
- autocoder/command_parser.py +280 -0
- autocoder/commands/auto_command.py +130 -40
- autocoder/commands/tools.py +170 -10
- autocoder/common/__init__.py +9 -1
- autocoder/common/action_yml_file_manager.py +432 -0
- autocoder/common/auto_coder_lang.py +8 -2
- autocoder/common/auto_configure.py +6 -0
- autocoder/common/code_auto_merge.py +14 -0
- autocoder/common/code_auto_merge_diff.py +14 -0
- autocoder/common/code_auto_merge_editblock.py +14 -0
- autocoder/common/code_auto_merge_strict_diff.py +13 -0
- autocoder/common/command_completer.py +8 -1
- autocoder/common/memory_manager.py +5 -1
- autocoder/index/entry.py +17 -0
- autocoder/utils/__init__.py +13 -9
- autocoder/version.py +1 -1
- {auto_coder-0.1.299.dist-info → auto_coder-0.1.301.dist-info}/LICENSE +0 -0
- {auto_coder-0.1.299.dist-info → auto_coder-0.1.301.dist-info}/WHEEL +0 -0
- {auto_coder-0.1.299.dist-info → auto_coder-0.1.301.dist-info}/entry_points.txt +0 -0
- {auto_coder-0.1.299.dist-info → auto_coder-0.1.301.dist-info}/top_level.txt +0 -0
autocoder/utils/__init__.py
CHANGED
|
@@ -3,17 +3,21 @@ from typing import Optional
|
|
|
3
3
|
import subprocess
|
|
4
4
|
import shutil
|
|
5
5
|
from loguru import logger
|
|
6
|
+
from autocoder.common.action_yml_file_manager import ActionYmlFileManager
|
|
6
7
|
|
|
7
8
|
def get_last_yaml_file(actions_dir:str)->Optional[str]:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
"""
|
|
10
|
+
获取最新的 YAML 文件
|
|
11
|
+
|
|
12
|
+
Args:
|
|
13
|
+
actions_dir: actions 目录路径
|
|
14
|
+
|
|
15
|
+
Returns:
|
|
16
|
+
Optional[str]: 最新的 YAML 文件名,如果没有则返回 None
|
|
17
|
+
"""
|
|
18
|
+
# 兼容已有代码,创建临时 ActionYmlFileManager
|
|
19
|
+
action_manager = ActionYmlFileManager(os.path.dirname(actions_dir))
|
|
20
|
+
return action_manager.get_latest_action_file()
|
|
17
21
|
|
|
18
22
|
def open_yaml_file_in_editor(new_file:str):
|
|
19
23
|
try:
|
autocoder/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.301"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|