auto-coder 0.1.239__tar.gz → 0.1.242__tar.gz
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.239 → auto_coder-0.1.242}/PKG-INFO +2 -2
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/auto_coder.egg-info/PKG-INFO +2 -2
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/auto_coder.egg-info/requires.txt +1 -1
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/auto_coder.py +17 -2
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/auto_coder_lang.py +8 -3
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_modification_ranker.py +1 -3
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/printer.py +1 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/index/for_command.py +3 -2
- auto_coder-0.1.242/src/autocoder/version.py +1 -0
- auto_coder-0.1.239/src/autocoder/version.py +0 -1
- {auto_coder-0.1.239 → auto_coder-0.1.242}/LICENSE +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/README.md +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/setup.cfg +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/setup.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/auto_coder.egg-info/SOURCES.txt +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/auto_coder.egg-info/dependency_links.txt +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/auto_coder.egg-info/entry_points.txt +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/auto_coder.egg-info/top_level.txt +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/agent/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/agent/auto_demand_organizer.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/agent/auto_filegroup.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/agent/auto_guess_query.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/agent/auto_tool.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/agent/coder.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/agent/designer.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/agent/planner.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/agent/project_reader.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/auto_coder_rag.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/auto_coder_rag_client_mcp.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/auto_coder_rag_mcp.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/auto_coder_server.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/benchmark.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/chat/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/chat_auto_coder.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/chat_auto_coder_lang.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/command_args.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/JupyterClient.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/ShellClient.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/anything2images.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/anything2img.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/audio.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/buildin_tokenizer.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/chunk_validation.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/cleaner.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_execute.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_generate.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_generate_diff.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_generate_editblock.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_generate_strict_diff.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_merge.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_merge_diff.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_merge_editblock.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_merge_strict_diff.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/command_completer.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/command_generator.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/command_templates.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/const.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/files.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/git_utils.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/image_to_page.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/interpreter.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/llm_rerank.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/mcp_hub.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/mcp_server.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/mcp_servers/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/mcp_servers/mcp_server_perplexity.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/mcp_tools.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/memory_manager.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/recall_validation.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/screenshots.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/search.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/search_replace.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/sys_prompt.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/text.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/types.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/utils_code_auto_generate.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/data/tokenizer.json +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/db/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/db/store.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/dispacher/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/dispacher/actions/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/dispacher/actions/action.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/dispacher/actions/copilot.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/dispacher/actions/plugins/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/dispacher/actions/plugins/action_regex_project.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/dispacher/actions/plugins/action_translate.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/index/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/index/entry.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/index/filter/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/index/filter/normal_filter.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/index/filter/quick_filter.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/index/index.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/index/symbols_utils.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/index/types.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/lang.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/models.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/pyproject/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/api_server.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/cache/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/cache/base_cache.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/cache/byzer_storage_cache.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/cache/file_monitor_cache.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/cache/simple_cache.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/doc_filter.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/document_retriever.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/llm_wrapper.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/loaders/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/loaders/docx_loader.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/loaders/excel_loader.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/loaders/pdf_loader.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/loaders/ppt_loader.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/long_context_rag.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/rag_config.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/rag_entry.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/raw_rag.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/relevant_utils.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/simple_directory_reader.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/simple_rag.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/stream_event/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/stream_event/event_writer.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/stream_event/types.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/token_checker.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/token_counter.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/token_limiter.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/types.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/utils.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/rag/variable_holder.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/regexproject/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/suffixproject/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/tsproject/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/_markitdown.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/auto_coder_utils/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/auto_coder_utils/chat_stream_out.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/chat_auto_coder_utils/__init__.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/conversation_store.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/llm_client_interceptors.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/llms.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/log_capture.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/multi_turn.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/operate_config_api.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/print_table.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/queue_communicate.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/request_event_queue.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/request_queue.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/rest.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/tests.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/types.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/tests/test_action_regex_project.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/tests/test_chat_auto_coder.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/tests/test_code_auto_merge_editblock.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/tests/test_command_completer.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/tests/test_planner.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/tests/test_queue_communicate.py +0 -0
- {auto_coder-0.1.239 → auto_coder-0.1.242}/tests/test_symbols_utils.py +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.242
|
|
4
4
|
Summary: AutoCoder: AutoCoder
|
|
5
5
|
Author: allwefantasy
|
|
6
6
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
@@ -26,7 +26,7 @@ Requires-Dist: tabulate
|
|
|
26
26
|
Requires-Dist: jupyter_client
|
|
27
27
|
Requires-Dist: prompt-toolkit
|
|
28
28
|
Requires-Dist: tokenizers
|
|
29
|
-
Requires-Dist: byzerllm[saas]>=0.1.
|
|
29
|
+
Requires-Dist: byzerllm[saas]>=0.1.158
|
|
30
30
|
Requires-Dist: patch
|
|
31
31
|
Requires-Dist: diff_match_patch
|
|
32
32
|
Requires-Dist: GitPython
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: auto-coder
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.242
|
|
4
4
|
Summary: AutoCoder: AutoCoder
|
|
5
5
|
Author: allwefantasy
|
|
6
6
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
@@ -26,7 +26,7 @@ Requires-Dist: tabulate
|
|
|
26
26
|
Requires-Dist: jupyter_client
|
|
27
27
|
Requires-Dist: prompt-toolkit
|
|
28
28
|
Requires-Dist: tokenizers
|
|
29
|
-
Requires-Dist: byzerllm[saas]>=0.1.
|
|
29
|
+
Requires-Dist: byzerllm[saas]>=0.1.158
|
|
30
30
|
Requires-Dist: patch
|
|
31
31
|
Requires-Dist: diff_match_patch
|
|
32
32
|
Requires-Dist: GitPython
|
|
@@ -14,7 +14,7 @@ from autocoder.utils.queue_communicate import (
|
|
|
14
14
|
|
|
15
15
|
import yaml
|
|
16
16
|
import os
|
|
17
|
-
import
|
|
17
|
+
import time
|
|
18
18
|
from byzerllm.utils.client import EventCallbackResult, EventName
|
|
19
19
|
from prompt_toolkit import prompt
|
|
20
20
|
from prompt_toolkit.formatted_text import FormattedText
|
|
@@ -1310,6 +1310,9 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
1310
1310
|
printer = Printer()
|
|
1311
1311
|
printer.print_in_terminal("memory_save_success")
|
|
1312
1312
|
return {}
|
|
1313
|
+
|
|
1314
|
+
# 计算耗时
|
|
1315
|
+
start_time = time.time()
|
|
1313
1316
|
|
|
1314
1317
|
if "rag" in args.action:
|
|
1315
1318
|
args.enable_rag_search = True
|
|
@@ -1335,12 +1338,23 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
1335
1338
|
conversations=loaded_conversations,
|
|
1336
1339
|
llm_config={}
|
|
1337
1340
|
)
|
|
1341
|
+
|
|
1342
|
+
|
|
1338
1343
|
|
|
1339
1344
|
assistant_response, last_meta = stream_out(
|
|
1340
1345
|
v,
|
|
1341
1346
|
request_id=args.request_id,
|
|
1342
1347
|
console=console
|
|
1343
1348
|
)
|
|
1349
|
+
|
|
1350
|
+
# 打印耗时和token统计
|
|
1351
|
+
if last_meta:
|
|
1352
|
+
elapsed_time = time.time() - start_time
|
|
1353
|
+
printer = Printer()
|
|
1354
|
+
printer.print_in_terminal("stream_out_stats",
|
|
1355
|
+
elapsed_time=elapsed_time,
|
|
1356
|
+
input_tokens=last_meta.input_tokens_count,
|
|
1357
|
+
output_tokens=last_meta.generated_tokens_count)
|
|
1344
1358
|
|
|
1345
1359
|
chat_history["ask_conversation"].append(
|
|
1346
1360
|
{"role": "assistant", "content": assistant_response}
|
|
@@ -1361,7 +1375,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
1361
1375
|
save_to_memory_file(ask_conversation=chat_history["ask_conversation"],
|
|
1362
1376
|
query=args.query,
|
|
1363
1377
|
response=assistant_response)
|
|
1364
|
-
|
|
1378
|
+
printer = Printer()
|
|
1379
|
+
printer.print_in_terminal("memory_save_success")
|
|
1365
1380
|
return
|
|
1366
1381
|
|
|
1367
1382
|
else:
|
|
@@ -60,7 +60,10 @@ MESSAGES = {
|
|
|
60
60
|
"ranking_all_failed": "All ranking requests failed",
|
|
61
61
|
"ranking_complete": "Ranking completed in {{ elapsed }}s, total voters: {{ total_tasks }}, best candidate index: {{ best_candidate }}, scores: {{ scores }}, input_tokens: {{ input_tokens }}, output_tokens: {{ output_tokens }}",
|
|
62
62
|
"ranking_process_failed": "Ranking process failed: {{ error }}",
|
|
63
|
-
"ranking_failed": "Ranking failed in {{ elapsed }}s, using original order"
|
|
63
|
+
"ranking_failed": "Ranking failed in {{ elapsed }}s, using original order",
|
|
64
|
+
"begin_index_source_code": "🚀 Begin to index source code in {{ source_dir }}",
|
|
65
|
+
"stream_out_stats": "Elapsed time {{ elapsed_time }} seconds, input tokens: {{ input_tokens }}, output tokens: {{ output_tokens }}",
|
|
66
|
+
"upsert_file": "✅ Updated file: {{ file_path }}",
|
|
64
67
|
},
|
|
65
68
|
"zh": {
|
|
66
69
|
"memory_save_success": "✅ 已保存到您的记忆中",
|
|
@@ -108,6 +111,7 @@ MESSAGES = {
|
|
|
108
111
|
"normal_filter_start": "开始查找上下文(normal_filter)...",
|
|
109
112
|
"pylint_check_failed": "⚠️ Pylint 检查失败: {{ error_message }}",
|
|
110
113
|
"pylint_error": "❌ 运行 Pylint 时出错: {{ error_message }}",
|
|
114
|
+
"begin_index_source_code": "🚀 开始为 {{ source_dir }} 中的源代码建立索引",
|
|
111
115
|
"unmerged_blocks_warning": "⚠️ 发现 {{ num_blocks }} 个未合并的代码块,更改将不会被应用。请手动检查后重试。",
|
|
112
116
|
"pylint_file_check_failed": "⚠️ {{ file_path }} 的 Pylint 检查失败。更改未应用。错误: {{ error_message }}",
|
|
113
117
|
"merge_success": "✅ 成功合并了 {{ num_files }} 个文件中的更改 {{ num_changes }}/{{ total_blocks }} 个代码块。",
|
|
@@ -128,8 +132,9 @@ MESSAGES = {
|
|
|
128
132
|
"ranking_all_failed": "所有排序请求都失败",
|
|
129
133
|
"ranking_complete": "排序完成,耗时 {{ elapsed }} 秒,总投票数: {{ total_tasks }},最佳候选索引: {{ best_candidate }},得分: {{ scores }},输入token数: {{ input_tokens }},输出token数: {{ output_tokens }}",
|
|
130
134
|
"ranking_process_failed": "排序过程失败: {{ error }}",
|
|
131
|
-
"ranking_failed": "排序失败,耗时 {{ elapsed }} 秒,使用原始顺序"
|
|
132
|
-
|
|
135
|
+
"ranking_failed": "排序失败,耗时 {{ elapsed }} 秒,使用原始顺序",
|
|
136
|
+
"stream_out_stats": "耗时 {{ elapsed_time }} 秒,输入token数: {{ input_tokens }}, 输出token数: {{ output_tokens }}"
|
|
137
|
+
},
|
|
133
138
|
}
|
|
134
139
|
|
|
135
140
|
|
|
@@ -99,9 +99,7 @@ class CodeModificationRanker:
|
|
|
99
99
|
results.append(v.rank_result)
|
|
100
100
|
except Exception as e:
|
|
101
101
|
self.printer.print_in_terminal(
|
|
102
|
-
"ranking_failed_request", style="yellow", error=str(e))
|
|
103
|
-
if self.args.debug:
|
|
104
|
-
print(traceback.format_exc())
|
|
102
|
+
"ranking_failed_request", style="yellow", error=str(e))
|
|
105
103
|
continue
|
|
106
104
|
|
|
107
105
|
if not results:
|
|
@@ -5,6 +5,7 @@ from typing import Optional,Dict,Any
|
|
|
5
5
|
from byzerllm.utils import format_str_jinja2
|
|
6
6
|
from autocoder.common.auto_coder_lang import get_message
|
|
7
7
|
from autocoder.chat_auto_coder_lang import get_message as get_chat_message
|
|
8
|
+
|
|
8
9
|
class Printer:
|
|
9
10
|
def __init__(self,console:Optional[Console]=None):
|
|
10
11
|
if console is None:
|
|
@@ -5,7 +5,7 @@ from autocoder.tsproject import TSProject
|
|
|
5
5
|
from autocoder.pyproject import PyProject
|
|
6
6
|
import tabulate
|
|
7
7
|
import textwrap
|
|
8
|
-
from
|
|
8
|
+
from autocoder.common.printer import Printer
|
|
9
9
|
import os
|
|
10
10
|
from autocoder.utils.request_queue import (
|
|
11
11
|
request_queue,
|
|
@@ -35,7 +35,8 @@ def wrap_text_in_table(data, max_width=60):
|
|
|
35
35
|
def index_command(args, llm):
|
|
36
36
|
source_dir = os.path.abspath(args.source_dir)
|
|
37
37
|
args.source_dir = source_dir
|
|
38
|
-
|
|
38
|
+
printer = Printer()
|
|
39
|
+
printer.print_in_terminal("begin_index_source_code", style="bold green", source_dir=source_dir)
|
|
39
40
|
if args.project_type == "ts":
|
|
40
41
|
pp = TSProject(args=args, llm=llm)
|
|
41
42
|
elif args.project_type == "py":
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.242"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.239"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_generate_editblock.py
RENAMED
|
File without changes
|
{auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_generate_strict_diff.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/code_auto_merge_strict_diff.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/common/mcp_servers/mcp_server_perplexity.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/dispacher/actions/plugins/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/auto_coder_utils/chat_stream_out.py
RENAMED
|
File without changes
|
{auto_coder-0.1.239 → auto_coder-0.1.242}/src/autocoder/utils/chat_auto_coder_utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|