auto-coder 0.1.233__tar.gz → 0.1.237__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.233 → auto_coder-0.1.237}/PKG-INFO +2 -3
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/auto_coder.egg-info/PKG-INFO +2 -3
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/auto_coder.egg-info/SOURCES.txt +3 -1
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/auto_coder.egg-info/requires.txt +1 -2
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/auto_coder.py +68 -35
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/chat_auto_coder.py +107 -84
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/chat_auto_coder_lang.py +69 -17
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/__init__.py +3 -0
- auto_coder-0.1.237/src/autocoder/common/auto_coder_lang.py +141 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/code_auto_merge.py +12 -9
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/code_auto_merge_diff.py +5 -4
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/code_auto_merge_editblock.py +35 -33
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/code_auto_merge_strict_diff.py +5 -4
- auto_coder-0.1.237/src/autocoder/common/code_modification_ranker.py +150 -0
- auto_coder-0.1.237/src/autocoder/common/printer.py +49 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/dispacher/actions/action.py +68 -19
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/dispacher/actions/plugins/action_regex_project.py +5 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/index/entry.py +57 -14
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/index/filter/quick_filter.py +7 -6
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/index/index.py +54 -16
- auto_coder-0.1.237/src/autocoder/utils/types.py +0 -0
- auto_coder-0.1.237/src/autocoder/version.py +1 -0
- auto_coder-0.1.233/src/autocoder/auto_coder_lang.py +0 -60
- auto_coder-0.1.233/src/autocoder/common/code_modification_ranker.py +0 -120
- auto_coder-0.1.233/src/autocoder/version.py +0 -1
- {auto_coder-0.1.233 → auto_coder-0.1.237}/LICENSE +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/README.md +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/setup.cfg +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/setup.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/auto_coder.egg-info/dependency_links.txt +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/auto_coder.egg-info/entry_points.txt +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/auto_coder.egg-info/top_level.txt +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/agent/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/agent/auto_demand_organizer.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/agent/auto_filegroup.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/agent/auto_guess_query.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/agent/auto_tool.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/agent/coder.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/agent/designer.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/agent/planner.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/agent/project_reader.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/auto_coder_rag.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/auto_coder_rag_client_mcp.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/auto_coder_rag_mcp.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/auto_coder_server.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/benchmark.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/chat/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/command_args.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/JupyterClient.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/ShellClient.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/anything2images.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/anything2img.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/audio.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/buildin_tokenizer.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/chunk_validation.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/cleaner.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/code_auto_execute.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/code_auto_generate.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/code_auto_generate_diff.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/code_auto_generate_editblock.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/code_auto_generate_strict_diff.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/command_completer.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/command_generator.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/command_templates.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/const.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/files.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/git_utils.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/image_to_page.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/interpreter.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/llm_rerank.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/mcp_hub.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/mcp_server.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/mcp_servers/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/mcp_servers/mcp_server_perplexity.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/mcp_tools.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/memory_manager.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/recall_validation.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/screenshots.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/search.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/search_replace.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/sys_prompt.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/text.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/types.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/common/utils_code_auto_generate.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/data/tokenizer.json +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/db/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/db/store.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/dispacher/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/dispacher/actions/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/dispacher/actions/copilot.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/dispacher/actions/plugins/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/dispacher/actions/plugins/action_translate.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/index/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/index/filter/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/index/filter/normal_filter.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/index/for_command.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/index/symbols_utils.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/index/types.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/lang.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/models.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/pyproject/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/api_server.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/cache/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/cache/base_cache.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/cache/byzer_storage_cache.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/cache/file_monitor_cache.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/cache/simple_cache.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/doc_filter.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/document_retriever.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/llm_wrapper.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/loaders/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/loaders/docx_loader.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/loaders/excel_loader.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/loaders/pdf_loader.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/loaders/ppt_loader.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/long_context_rag.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/rag_config.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/rag_entry.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/raw_rag.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/relevant_utils.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/simple_directory_reader.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/simple_rag.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/stream_event/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/stream_event/event_writer.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/stream_event/types.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/token_checker.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/token_counter.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/token_limiter.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/types.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/utils.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/rag/variable_holder.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/regexproject/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/suffixproject/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/tsproject/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/_markitdown.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/auto_coder_utils/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/auto_coder_utils/chat_stream_out.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/chat_auto_coder_utils/__init__.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/conversation_store.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/llm_client_interceptors.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/llms.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/log_capture.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/multi_turn.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/operate_config_api.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/print_table.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/queue_communicate.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/request_event_queue.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/request_queue.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/rest.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/src/autocoder/utils/tests.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/tests/test_action_regex_project.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/tests/test_chat_auto_coder.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/tests/test_code_auto_merge_editblock.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/tests/test_command_completer.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/tests/test_planner.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/tests/test_queue_communicate.py +0 -0
- {auto_coder-0.1.233 → auto_coder-0.1.237}/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.237
|
|
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.153
|
|
30
30
|
Requires-Dist: patch
|
|
31
31
|
Requires-Dist: diff_match_patch
|
|
32
32
|
Requires-Dist: GitPython
|
|
@@ -39,7 +39,6 @@ Requires-Dist: real_agent
|
|
|
39
39
|
Requires-Dist: python-docx
|
|
40
40
|
Requires-Dist: docx2txt
|
|
41
41
|
Requires-Dist: pdf2image
|
|
42
|
-
Requires-Dist: Spire.Doc
|
|
43
42
|
Requires-Dist: docx2pdf
|
|
44
43
|
Requires-Dist: pyperclip
|
|
45
44
|
Requires-Dist: colorama
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: auto-coder
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.237
|
|
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.153
|
|
30
30
|
Requires-Dist: patch
|
|
31
31
|
Requires-Dist: diff_match_patch
|
|
32
32
|
Requires-Dist: GitPython
|
|
@@ -39,7 +39,6 @@ Requires-Dist: real_agent
|
|
|
39
39
|
Requires-Dist: python-docx
|
|
40
40
|
Requires-Dist: docx2txt
|
|
41
41
|
Requires-Dist: pdf2image
|
|
42
|
-
Requires-Dist: Spire.Doc
|
|
43
42
|
Requires-Dist: docx2pdf
|
|
44
43
|
Requires-Dist: pyperclip
|
|
45
44
|
Requires-Dist: colorama
|
|
@@ -9,7 +9,6 @@ src/auto_coder.egg-info/requires.txt
|
|
|
9
9
|
src/auto_coder.egg-info/top_level.txt
|
|
10
10
|
src/autocoder/__init__.py
|
|
11
11
|
src/autocoder/auto_coder.py
|
|
12
|
-
src/autocoder/auto_coder_lang.py
|
|
13
12
|
src/autocoder/auto_coder_rag.py
|
|
14
13
|
src/autocoder/auto_coder_rag_client_mcp.py
|
|
15
14
|
src/autocoder/auto_coder_rag_mcp.py
|
|
@@ -37,6 +36,7 @@ src/autocoder/common/__init__.py
|
|
|
37
36
|
src/autocoder/common/anything2images.py
|
|
38
37
|
src/autocoder/common/anything2img.py
|
|
39
38
|
src/autocoder/common/audio.py
|
|
39
|
+
src/autocoder/common/auto_coder_lang.py
|
|
40
40
|
src/autocoder/common/buildin_tokenizer.py
|
|
41
41
|
src/autocoder/common/chunk_validation.py
|
|
42
42
|
src/autocoder/common/cleaner.py
|
|
@@ -63,6 +63,7 @@ src/autocoder/common/mcp_hub.py
|
|
|
63
63
|
src/autocoder/common/mcp_server.py
|
|
64
64
|
src/autocoder/common/mcp_tools.py
|
|
65
65
|
src/autocoder/common/memory_manager.py
|
|
66
|
+
src/autocoder/common/printer.py
|
|
66
67
|
src/autocoder/common/recall_validation.py
|
|
67
68
|
src/autocoder/common/screenshots.py
|
|
68
69
|
src/autocoder/common/search.py
|
|
@@ -141,6 +142,7 @@ src/autocoder/utils/request_event_queue.py
|
|
|
141
142
|
src/autocoder/utils/request_queue.py
|
|
142
143
|
src/autocoder/utils/rest.py
|
|
143
144
|
src/autocoder/utils/tests.py
|
|
145
|
+
src/autocoder/utils/types.py
|
|
144
146
|
src/autocoder/utils/auto_coder_utils/__init__.py
|
|
145
147
|
src/autocoder/utils/auto_coder_utils/chat_stream_out.py
|
|
146
148
|
src/autocoder/utils/chat_auto_coder_utils/__init__.py
|
|
@@ -16,7 +16,7 @@ tabulate
|
|
|
16
16
|
jupyter_client
|
|
17
17
|
prompt-toolkit
|
|
18
18
|
tokenizers
|
|
19
|
-
byzerllm[saas]>=0.1.
|
|
19
|
+
byzerllm[saas]>=0.1.153
|
|
20
20
|
patch
|
|
21
21
|
diff_match_patch
|
|
22
22
|
GitPython
|
|
@@ -29,7 +29,6 @@ real_agent
|
|
|
29
29
|
python-docx
|
|
30
30
|
docx2txt
|
|
31
31
|
pdf2image
|
|
32
|
-
Spire.Doc
|
|
33
32
|
docx2pdf
|
|
34
33
|
pyperclip
|
|
35
34
|
colorama
|
|
@@ -39,12 +39,12 @@ from rich.console import Console
|
|
|
39
39
|
from rich.panel import Panel
|
|
40
40
|
from rich.markdown import Markdown
|
|
41
41
|
from rich.live import Live
|
|
42
|
-
from autocoder.auto_coder_lang import get_message
|
|
42
|
+
from autocoder.common.auto_coder_lang import get_message
|
|
43
43
|
from autocoder.common.memory_manager import save_to_memory_file
|
|
44
44
|
from autocoder import models as models_module
|
|
45
45
|
from autocoder.common.utils_code_auto_generate import stream_chat_with_continue
|
|
46
46
|
from autocoder.utils.auto_coder_utils.chat_stream_out import stream_out
|
|
47
|
-
|
|
47
|
+
from autocoder.common.printer import Printer
|
|
48
48
|
console = Console()
|
|
49
49
|
|
|
50
50
|
|
|
@@ -69,8 +69,7 @@ def load_include_files(config, base_path, max_depth=10, current_depth=0):
|
|
|
69
69
|
include_files = [include_files]
|
|
70
70
|
|
|
71
71
|
for include_file in include_files:
|
|
72
|
-
abs_include_path = resolve_include_path(base_path, include_file)
|
|
73
|
-
logger.info(f"Loading include file: {abs_include_path}")
|
|
72
|
+
abs_include_path = resolve_include_path(base_path, include_file)
|
|
74
73
|
with open(abs_include_path, "r") as f:
|
|
75
74
|
include_config = yaml.safe_load(f)
|
|
76
75
|
if not include_config:
|
|
@@ -131,15 +130,15 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
131
130
|
if not os.path.isabs(args.source_dir):
|
|
132
131
|
args.source_dir = os.path.abspath(args.source_dir)
|
|
133
132
|
|
|
134
|
-
if not args.silence:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
133
|
+
# if not args.silence:
|
|
134
|
+
# print("Command Line Arguments:")
|
|
135
|
+
# print("-" * 50)
|
|
136
|
+
# for arg, value in vars(args).items():
|
|
137
|
+
# if arg == "context" and value:
|
|
138
|
+
# print(f"{arg:20}: {value[:30]}...")
|
|
139
|
+
# else:
|
|
140
|
+
# print(f"{arg:20}: {value}")
|
|
141
|
+
# print("-" * 50)
|
|
143
142
|
|
|
144
143
|
# init store
|
|
145
144
|
store = Store(os.path.join(args.source_dir, ".auto-coder", "metadata.db"))
|
|
@@ -244,10 +243,7 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
244
243
|
new_file = os.path.join(
|
|
245
244
|
actions_dir, f"{new_seq}_{raw_args.name}.yml")
|
|
246
245
|
with open(new_file, "w") as f:
|
|
247
|
-
f.write(content)
|
|
248
|
-
|
|
249
|
-
print(f"Successfully created new action file: {new_file}")
|
|
250
|
-
|
|
246
|
+
f.write(content)
|
|
251
247
|
# open_yaml_file_in_editor(new_file)
|
|
252
248
|
return
|
|
253
249
|
|
|
@@ -281,6 +277,22 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
281
277
|
byzerllm.connect_cluster(address=args.ray_address)
|
|
282
278
|
|
|
283
279
|
llm = byzerllm.ByzerLLM(verbose=args.print_request)
|
|
280
|
+
|
|
281
|
+
code_model = byzerllm.ByzerLLM()
|
|
282
|
+
code_model.setup_default_model_name("deepseek_chat")
|
|
283
|
+
llm.setup_sub_client("code_model", code_model)
|
|
284
|
+
|
|
285
|
+
index_filter_model = byzerllm.ByzerLLM()
|
|
286
|
+
index_filter_model.setup_default_model_name("deepseek_r1_chat")
|
|
287
|
+
llm.setup_sub_client("index_filter_model", index_filter_model)
|
|
288
|
+
|
|
289
|
+
generate_rerank_model = byzerllm.ByzerLLM()
|
|
290
|
+
generate_rerank_model.setup_default_model_name("deepseek_r1_chat")
|
|
291
|
+
llm.setup_sub_client("generate_rerank_model", generate_rerank_model)
|
|
292
|
+
|
|
293
|
+
chat_model = byzerllm.ByzerLLM()
|
|
294
|
+
chat_model.setup_default_model_name("deepseek_r1_chat")
|
|
295
|
+
llm.setup_sub_client("chat_model", chat_model)
|
|
284
296
|
|
|
285
297
|
if args.product_mode == "lite":
|
|
286
298
|
llm = byzerllm.SimpleByzerLLM(default_model_name="deepseek_chat")
|
|
@@ -344,9 +356,23 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
344
356
|
}
|
|
345
357
|
)
|
|
346
358
|
|
|
359
|
+
index_filter_llm = byzerllm.SimpleByzerLLM(default_model_name="deepseek_r1_chat")
|
|
360
|
+
index_filter_llm.deploy(
|
|
361
|
+
model_path="",
|
|
362
|
+
pretrained_model_type="saas/openai",
|
|
363
|
+
udf_name="deepseek_r1_chat",
|
|
364
|
+
infer_params={
|
|
365
|
+
"saas.base_url": "https://api.deepseek.com/v1",
|
|
366
|
+
"saas.api_key": api_key,
|
|
367
|
+
"saas.model": "deepseek-reasoner",
|
|
368
|
+
"saas.is_reasoning": True
|
|
369
|
+
}
|
|
370
|
+
)
|
|
371
|
+
|
|
347
372
|
llm.setup_sub_client("code_model", code_llm)
|
|
348
373
|
llm.setup_sub_client("chat_model", chat_llm)
|
|
349
374
|
llm.setup_sub_client("generate_rerank_model", generate_rerank_llm)
|
|
375
|
+
llm.setup_sub_client("index_filter_model", index_filter_llm)
|
|
350
376
|
|
|
351
377
|
if args.product_mode == "lite":
|
|
352
378
|
# Set up default models based on configuration
|
|
@@ -444,7 +470,7 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
444
470
|
"saas.is_reasoning": model_info["is_reasoning"]
|
|
445
471
|
}
|
|
446
472
|
)
|
|
447
|
-
llm.setup_sub_client("inference_model", inference_model)
|
|
473
|
+
llm.setup_sub_client("inference_model", inference_model)
|
|
448
474
|
|
|
449
475
|
if args.index_filter_model:
|
|
450
476
|
model_info = models_module.get_model_by_name(args.index_filter_model)
|
|
@@ -1114,20 +1140,25 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
1114
1140
|
chat_llm = llm
|
|
1115
1141
|
|
|
1116
1142
|
source_count = 0
|
|
1117
|
-
pre_conversations = []
|
|
1118
|
-
if args.context
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1143
|
+
pre_conversations = []
|
|
1144
|
+
context_content = args.context if args.context else ""
|
|
1145
|
+
if args.context:
|
|
1146
|
+
try:
|
|
1147
|
+
context = json.loads(args.context)
|
|
1148
|
+
if "file_content" in context:
|
|
1149
|
+
context_content = context["file_content"]
|
|
1150
|
+
except:
|
|
1151
|
+
pass
|
|
1152
|
+
|
|
1153
|
+
pre_conversations.append(
|
|
1154
|
+
{
|
|
1155
|
+
"role": "user",
|
|
1156
|
+
"content": f"请阅读下面的代码和文档:\n\n <files>\n{context_content}\n</files>",
|
|
1157
|
+
},
|
|
1158
|
+
)
|
|
1159
|
+
pre_conversations.append(
|
|
1160
|
+
{"role": "assistant", "content": "read"})
|
|
1161
|
+
source_count += 1
|
|
1131
1162
|
|
|
1132
1163
|
from autocoder.index.index import IndexManager
|
|
1133
1164
|
from autocoder.index.entry import build_index_and_filter_files
|
|
@@ -1142,10 +1173,11 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
1142
1173
|
else:
|
|
1143
1174
|
pp = SuffixProject(args=args, llm=llm, file_filter=None)
|
|
1144
1175
|
pp.run()
|
|
1145
|
-
sources = pp.sources
|
|
1176
|
+
sources = pp.sources
|
|
1146
1177
|
|
|
1147
1178
|
s = build_index_and_filter_files(
|
|
1148
|
-
llm=llm, args=args, sources=sources)
|
|
1179
|
+
llm=llm, args=args, sources=sources)
|
|
1180
|
+
|
|
1149
1181
|
if s:
|
|
1150
1182
|
pre_conversations.append(
|
|
1151
1183
|
{
|
|
@@ -1275,7 +1307,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
1275
1307
|
save_to_memory_file(ask_conversation=chat_history["ask_conversation"],
|
|
1276
1308
|
query=args.query,
|
|
1277
1309
|
response=result)
|
|
1278
|
-
|
|
1310
|
+
printer = Printer()
|
|
1311
|
+
printer.print_in_terminal("memory_save_success")
|
|
1279
1312
|
return {}
|
|
1280
1313
|
|
|
1281
1314
|
if "rag" in args.action:
|