auto-coder 0.1.304__py3-none-any.whl → 0.1.306__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.304.dist-info → auto_coder-0.1.306.dist-info}/METADATA +1 -1
- {auto_coder-0.1.304.dist-info → auto_coder-0.1.306.dist-info}/RECORD +45 -40
- autocoder/agent/auto_learn_from_commit.py +3 -1
- autocoder/agent/auto_review_commit.py +3 -1
- autocoder/auto_coder.py +3 -2
- autocoder/auto_coder_runner.py +116 -3
- autocoder/chat_auto_coder.py +9 -1
- autocoder/chat_auto_coder_lang.py +552 -278
- autocoder/commands/auto_command.py +1 -4
- autocoder/commands/auto_web.py +1 -9
- autocoder/common/__init__.py +4 -0
- autocoder/common/auto_coder_lang.py +737 -392
- autocoder/common/code_auto_generate.py +104 -16
- autocoder/common/code_auto_generate_diff.py +101 -10
- autocoder/common/code_auto_generate_editblock.py +103 -9
- autocoder/common/code_auto_generate_strict_diff.py +99 -9
- autocoder/common/code_auto_merge.py +8 -0
- autocoder/common/code_auto_merge_diff.py +8 -0
- autocoder/common/code_auto_merge_editblock.py +7 -0
- autocoder/common/code_auto_merge_strict_diff.py +5 -0
- autocoder/common/code_modification_ranker.py +4 -2
- autocoder/common/command_completer.py +12 -0
- autocoder/common/command_generator.py +5 -4
- autocoder/common/git_utils.py +13 -7
- autocoder/common/global_cancel.py +68 -7
- autocoder/common/stream_out_type.py +5 -1
- autocoder/common/utils_code_auto_generate.py +29 -3
- autocoder/dispacher/__init__.py +18 -19
- autocoder/dispacher/actions/action.py +6 -162
- autocoder/dispacher/actions/plugins/action_regex_project.py +2 -6
- autocoder/index/filter/quick_filter.py +6 -3
- autocoder/index/index.py +2 -4
- autocoder/memory/__init__.py +7 -0
- autocoder/memory/active_context_manager.py +649 -0
- autocoder/memory/active_package.py +469 -0
- autocoder/memory/async_processor.py +161 -0
- autocoder/memory/directory_mapper.py +67 -0
- autocoder/utils/auto_coder_utils/chat_stream_out.py +61 -11
- autocoder/utils/project_structure.py +35 -1
- autocoder/utils/thread_utils.py +78 -169
- autocoder/version.py +1 -1
- {auto_coder-0.1.304.dist-info → auto_coder-0.1.306.dist-info}/LICENSE +0 -0
- {auto_coder-0.1.304.dist-info → auto_coder-0.1.306.dist-info}/WHEEL +0 -0
- {auto_coder-0.1.304.dist-info → auto_coder-0.1.306.dist-info}/entry_points.txt +0 -0
- {auto_coder-0.1.304.dist-info → auto_coder-0.1.306.dist-info}/top_level.txt +0 -0
|
@@ -500,10 +500,7 @@ class CommandAutoTuner:
|
|
|
500
500
|
result_manager = ResultManager()
|
|
501
501
|
|
|
502
502
|
while True:
|
|
503
|
-
|
|
504
|
-
printer = Printer(console)
|
|
505
|
-
printer.print_in_terminal("generation_cancelled")
|
|
506
|
-
break
|
|
503
|
+
global_cancel.check_and_raise()
|
|
507
504
|
# 执行命令
|
|
508
505
|
command = response.suggestions[0].command
|
|
509
506
|
parameters = response.suggestions[0].parameters
|
autocoder/commands/auto_web.py
CHANGED
|
@@ -794,15 +794,7 @@ class AutoWebTuner:
|
|
|
794
794
|
logger.info(f"开始执行迭代 {iterations}/{max_iterations}")
|
|
795
795
|
|
|
796
796
|
# 检查是否需要取消操作
|
|
797
|
-
|
|
798
|
-
logger.info("检测到取消请求,停止操作")
|
|
799
|
-
self.printer.print_in_terminal(
|
|
800
|
-
"operation_cancelled", style="yellow")
|
|
801
|
-
return AutoWebResponse(
|
|
802
|
-
explanation="操作已取消",
|
|
803
|
-
overall_status="cancelled",
|
|
804
|
-
actions=[]
|
|
805
|
-
)
|
|
797
|
+
global_cancel.check_and_raise()
|
|
806
798
|
|
|
807
799
|
# 如果没有更多操作,认为任务完成
|
|
808
800
|
if not plan.actions:
|
autocoder/common/__init__.py
CHANGED