auto-coder 0.1.287__py3-none-any.whl → 0.1.289__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.287.dist-info → auto_coder-0.1.289.dist-info}/METADATA +1 -1
- {auto_coder-0.1.287.dist-info → auto_coder-0.1.289.dist-info}/RECORD +26 -17
- autocoder/chat_auto_coder.py +265 -82
- autocoder/chat_auto_coder_lang.py +25 -21
- autocoder/commands/auto_web.py +1062 -0
- autocoder/common/__init__.py +1 -2
- autocoder/common/anything2img.py +113 -43
- autocoder/common/auto_coder_lang.py +40 -1
- autocoder/common/computer_use.py +931 -0
- autocoder/common/mcp_hub.py +99 -77
- autocoder/common/mcp_server.py +162 -61
- autocoder/index/filter/quick_filter.py +373 -3
- autocoder/plugins/__init__.py +1123 -0
- autocoder/plugins/dynamic_completion_example.py +148 -0
- autocoder/plugins/git_helper_plugin.py +252 -0
- autocoder/plugins/sample_plugin.py +160 -0
- autocoder/plugins/token_helper_plugin.py +343 -0
- autocoder/plugins/utils.py +9 -0
- autocoder/rag/long_context_rag.py +22 -9
- autocoder/rag/relevant_utils.py +1 -1
- autocoder/rag/searchable.py +58 -0
- autocoder/version.py +1 -1
- {auto_coder-0.1.287.dist-info → auto_coder-0.1.289.dist-info}/LICENSE +0 -0
- {auto_coder-0.1.287.dist-info → auto_coder-0.1.289.dist-info}/WHEEL +0 -0
- {auto_coder-0.1.287.dist-info → auto_coder-0.1.289.dist-info}/entry_points.txt +0 -0
- {auto_coder-0.1.287.dist-info → auto_coder-0.1.289.dist-info}/top_level.txt +0 -0
|
@@ -4,16 +4,16 @@ from byzerllm.utils import format_str_jinja2
|
|
|
4
4
|
MESSAGES = {
|
|
5
5
|
"en": {
|
|
6
6
|
"auto_command_analyzing": "Analyzing Command Request",
|
|
7
|
-
"mcp_remove_error": "Error removing MCP server: {error}",
|
|
8
|
-
"mcp_remove_success": "Successfully removed MCP server: {result}",
|
|
9
|
-
"mcp_list_running_error": "Error listing running MCP servers: {error}",
|
|
7
|
+
"mcp_remove_error": "Error removing MCP server: {{error}}",
|
|
8
|
+
"mcp_remove_success": "Successfully removed MCP server: {{result}}",
|
|
9
|
+
"mcp_list_running_error": "Error listing running MCP servers: {{error}}",
|
|
10
10
|
"mcp_list_running_title": "Running MCP servers:",
|
|
11
|
-
"mcp_list_builtin_error": "Error listing builtin MCP servers: {error}",
|
|
11
|
+
"mcp_list_builtin_error": "Error listing builtin MCP servers: {{error}}",
|
|
12
12
|
"mcp_list_builtin_title": "Available builtin MCP servers:",
|
|
13
|
-
"mcp_refresh_error": "Error refreshing MCP servers: {error}",
|
|
13
|
+
"mcp_refresh_error": "Error refreshing MCP servers: {{error}}",
|
|
14
14
|
"mcp_refresh_success": "Successfully refreshed MCP servers",
|
|
15
|
-
"mcp_install_error": "Error installing MCP server: {error}",
|
|
16
|
-
"mcp_install_success": "Successfully installed MCP server: {result}",
|
|
15
|
+
"mcp_install_error": "Error installing MCP server: {{error}}",
|
|
16
|
+
"mcp_install_success": "Successfully installed MCP server: {{result}}",
|
|
17
17
|
"mcp_query_empty": "Please enter your query.",
|
|
18
18
|
"mcp_error_title": "Error",
|
|
19
19
|
"mcp_response_title": "MCP Response",
|
|
@@ -24,7 +24,7 @@ MESSAGES = {
|
|
|
24
24
|
"init_fail": "Failed to initialize the project.",
|
|
25
25
|
"init_manual": "Please try manually: auto-coder init --source_dir .",
|
|
26
26
|
"exit_no_init": "Exiting without initialization.",
|
|
27
|
-
"created_dir": "Created directory: {}",
|
|
27
|
+
"created_dir": "Created directory: {{path}}",
|
|
28
28
|
"init_complete": "Project initialization completed.",
|
|
29
29
|
"checking_ray": "Checking Ray status...",
|
|
30
30
|
"ray_not_running": "Ray is not running. Starting Ray...",
|
|
@@ -131,28 +131,30 @@ MESSAGES = {
|
|
|
131
131
|
"files_removed": "Files Removed",
|
|
132
132
|
"models_api_key_empty": "Warning : {{name}} API key is empty. Please set a valid API key.",
|
|
133
133
|
"commit_generating": "{{ model_name }} Generating commit message...",
|
|
134
|
-
"auto_command_reasoning_title": "Reply",
|
|
134
|
+
"auto_command_reasoning_title": "Reply",
|
|
135
135
|
"commit_message": "{{ model_name }} Generated commit message: {{ message }}",
|
|
136
136
|
"commit_failed": "{{ model_name }} Failed to generate commit message: {{ error }}",
|
|
137
137
|
"confirm_execute": "Do you want to execute this script?",
|
|
138
138
|
"official_doc": "Official Documentation: https://uelng8wukz.feishu.cn/wiki/NhPNwSRcWimKFIkQINIckloBncI",
|
|
139
|
+
"plugins_desc": "Manage plugins",
|
|
140
|
+
"plugins_usage": "Usage: /plugins <command>\nAvailable subcommands:\n /plugins /list - List all available plugins\n /plugins /load <name> - Load a plugin\n /plugins /unload <name> - Unload a plugin\n /plugins/dirs - List plugin directories\n /plugins/dirs /add <path> - Add a plugin directory\n /plugins/dirs /remove <path> - Remove a plugin directory\n /plugins/dirs /clear - Clear all plugin directories",
|
|
139
141
|
},
|
|
140
142
|
"zh": {
|
|
141
143
|
"auto_command_analyzing": "正在分析命令请求",
|
|
142
144
|
"commit_generating": "{{ model_name }} 正在生成提交信息...",
|
|
143
|
-
"auto_command_reasoning_title": "回复",
|
|
145
|
+
"auto_command_reasoning_title": "回复",
|
|
144
146
|
"commit_message": "{{ model_name }} 生成的提交信息: {{ message }}",
|
|
145
147
|
"commit_failed": "{{ model_name }} 生成提交信息失败: {{ error }}",
|
|
146
|
-
"mcp_remove_error": "移除 MCP 服务器时出错:{error}",
|
|
147
|
-
"mcp_remove_success": "成功移除 MCP 服务器:{result}",
|
|
148
|
-
"mcp_list_running_error": "列出运行中的 MCP 服务器时出错:{error}",
|
|
148
|
+
"mcp_remove_error": "移除 MCP 服务器时出错:{{error}}",
|
|
149
|
+
"mcp_remove_success": "成功移除 MCP 服务器:{{result}}",
|
|
150
|
+
"mcp_list_running_error": "列出运行中的 MCP 服务器时出错:{{error}}",
|
|
149
151
|
"mcp_list_running_title": "正在运行的 MCP 服务器:",
|
|
150
|
-
"mcp_list_builtin_error": "列出内置 MCP 服务器时出错:{error}",
|
|
152
|
+
"mcp_list_builtin_error": "列出内置 MCP 服务器时出错:{{error}}",
|
|
151
153
|
"mcp_list_builtin_title": "可用的内置 MCP 服务器:",
|
|
152
|
-
"mcp_refresh_error": "刷新 MCP 服务器时出错:{error}",
|
|
154
|
+
"mcp_refresh_error": "刷新 MCP 服务器时出错:{{error}}",
|
|
153
155
|
"mcp_refresh_success": "成功刷新 MCP 服务器",
|
|
154
|
-
"mcp_install_error": "安装 MCP 服务器时出错:{error}",
|
|
155
|
-
"mcp_install_success": "成功安装 MCP 服务器:{result}",
|
|
156
|
+
"mcp_install_error": "安装 MCP 服务器时出错:{{error}}",
|
|
157
|
+
"mcp_install_success": "成功安装 MCP 服务器:{{result}}",
|
|
156
158
|
"mcp_query_empty": "请输入您的查询。",
|
|
157
159
|
"mcp_error_title": "错误",
|
|
158
160
|
"mcp_response_title": "MCP 响应",
|
|
@@ -163,7 +165,7 @@ MESSAGES = {
|
|
|
163
165
|
"init_fail": "项目初始化失败。",
|
|
164
166
|
"init_manual": "请尝试手动初始化:auto-coder init --source_dir .",
|
|
165
167
|
"exit_no_init": "退出而不初始化。",
|
|
166
|
-
"created_dir": "创建目录:{}",
|
|
168
|
+
"created_dir": "创建目录:{{path}}",
|
|
167
169
|
"init_complete": "项目初始化完成。",
|
|
168
170
|
"checking_ray": "正在检查Ray状态...",
|
|
169
171
|
"ray_not_running": "Ray未运行。正在启动Ray...",
|
|
@@ -271,7 +273,9 @@ MESSAGES = {
|
|
|
271
273
|
"models_api_key_empty": "警告: {{name}} API key 为空。请设置一个有效的 API key。",
|
|
272
274
|
"confirm_execute": "是否执行此脚本?",
|
|
273
275
|
"official_doc": "官方文档: https://uelng8wukz.feishu.cn/wiki/NhPNwSRcWimKFIkQINIckloBncI",
|
|
274
|
-
|
|
276
|
+
"plugins_desc": "管理插件",
|
|
277
|
+
"plugins_usage": "用法: /plugins <命令>\n可用的子命令:\n /plugins /list - 列出所有可用插件\n /plugins /load <名称> - 加载一个插件\n /plugins /unload <名称> - 卸载一个插件\n /plugins/dirs - 列出插件目录\n /plugins/dirs /add <路径> - 添加一个插件目录\n /plugins/dirs /remove <路径> - 移除一个插件目录\n /plugins/dirs /clear - 清除所有插件目录",
|
|
278
|
+
},
|
|
275
279
|
}
|
|
276
280
|
|
|
277
281
|
|
|
@@ -279,12 +283,12 @@ def get_system_language():
|
|
|
279
283
|
try:
|
|
280
284
|
return locale.getdefaultlocale()[0][:2]
|
|
281
285
|
except:
|
|
282
|
-
return
|
|
286
|
+
return "en"
|
|
283
287
|
|
|
284
288
|
|
|
285
289
|
def get_message(key):
|
|
286
290
|
lang = get_system_language()
|
|
287
|
-
return MESSAGES.get(lang, MESSAGES[
|
|
291
|
+
return MESSAGES.get(lang, MESSAGES["en"]).get(key, MESSAGES["en"][key])
|
|
288
292
|
|
|
289
293
|
|
|
290
294
|
def get_message_with_format(msg_key: str, **kwargs):
|