auto-coder 0.1.75__tar.gz → 0.1.76__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.
- {auto-coder-0.1.75 → auto-coder-0.1.76}/PKG-INFO +1 -1
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/auto_coder.egg-info/PKG-INFO +1 -1
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/auto_coder.py +41 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/command_args.py +4 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/lang.py +1 -0
- auto-coder-0.1.76/src/autocoder/version.py +1 -0
- auto-coder-0.1.75/src/autocoder/version.py +0 -1
- {auto-coder-0.1.75 → auto-coder-0.1.76}/README.md +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/setup.cfg +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/setup.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/auto_coder.egg-info/SOURCES.txt +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/auto_coder.egg-info/dependency_links.txt +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/auto_coder.egg-info/entry_points.txt +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/auto_coder.egg-info/requires.txt +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/auto_coder.egg-info/top_level.txt +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/agent/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/agent/coder.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/JupyterClient.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/ShellClient.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/anything2images.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/audio.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/cleaner.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/code_auto_execute.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/code_auto_generate.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/code_auto_generate_diff.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/code_auto_generate_editblock.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/code_auto_generate_strict_diff.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/code_auto_merge.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/code_auto_merge_diff.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/code_auto_merge_editblock.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/code_auto_merge_strict_diff.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/command_templates.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/const.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/git_utils.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/image_to_page.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/llm_rerank.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/screenshots.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/search.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/search_replace.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/types.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/db/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/db/store.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/dispacher/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/dispacher/actions/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/dispacher/actions/action.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/dispacher/actions/copilot.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/dispacher/actions/plugins/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/dispacher/actions/plugins/action_regex_project.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/dispacher/actions/plugins/action_translate.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/index/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/index/for_command.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/index/index.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/pyproject/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/rag/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/rag/api_server.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/rag/llm_wrapper.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/rag/simple_rag.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/rag/types.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/regexproject/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/suffixproject/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/tsproject/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/utils/__init__.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/utils/llm_client_interceptors.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/utils/multi_turn.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/utils/print_table.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/utils/rest.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/tests/test_code_auto_merge.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/tests/test_image_to_page.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/tests/test_init_command.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/tests/test_llm_rerank.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/tests/test_shell_client.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/tests/test_simple_rag.py +0 -0
- {auto-coder-0.1.75 → auto-coder-0.1.76}/tests/test_tsproject.py +0 -0
|
@@ -20,6 +20,8 @@ from byzerllm.apps.byzer_storage.env import get_latest_byzer_retrieval_lib
|
|
|
20
20
|
from autocoder.command_args import parse_args
|
|
21
21
|
from autocoder.rag.api_server import serve,ServerArgs
|
|
22
22
|
from loguru import logger
|
|
23
|
+
import shutil
|
|
24
|
+
import subprocess
|
|
23
25
|
|
|
24
26
|
def resolve_include_path(base_path, include_path):
|
|
25
27
|
if include_path.startswith('.') or include_path.startswith('..'):
|
|
@@ -117,6 +119,45 @@ def main():
|
|
|
117
119
|
gen_screenshots(args.urls, args.output)
|
|
118
120
|
print(f"Successfully captured screenshot of {args.urls} and saved to {args.output}")
|
|
119
121
|
return
|
|
122
|
+
|
|
123
|
+
if raw_args.command == "next":
|
|
124
|
+
actions_dir = os.path.join(os.getcwd(), "actions")
|
|
125
|
+
if not os.path.exists(actions_dir):
|
|
126
|
+
print("Current directory does not have an actions directory")
|
|
127
|
+
return
|
|
128
|
+
|
|
129
|
+
action_files = [f for f in os.listdir(actions_dir) if f[:3].isdigit() and f.endswith(".yml") and f[:3] != "101"]
|
|
130
|
+
if not action_files:
|
|
131
|
+
max_seq = 0
|
|
132
|
+
else:
|
|
133
|
+
seqs = [int(f[:3]) for f in action_files]
|
|
134
|
+
max_seq = max(seqs)
|
|
135
|
+
|
|
136
|
+
new_seq = str(max_seq + 1).zfill(3)
|
|
137
|
+
prev_files = [f for f in action_files if int(f[:3]) < int(new_seq)]
|
|
138
|
+
|
|
139
|
+
if not prev_files:
|
|
140
|
+
new_file = os.path.join(actions_dir, f"{new_seq}_{raw_args.name}.yml")
|
|
141
|
+
with open(new_file, "w") as f:
|
|
142
|
+
pass
|
|
143
|
+
else:
|
|
144
|
+
prev_file = sorted(prev_files)[-1] # 取序号最大的文件
|
|
145
|
+
with open(os.path.join(actions_dir, prev_file), "r") as f:
|
|
146
|
+
content = f.read()
|
|
147
|
+
new_file = os.path.join(actions_dir, f"{new_seq}_{raw_args.name}.yml")
|
|
148
|
+
with open(new_file, "w") as f:
|
|
149
|
+
f.write(content)
|
|
150
|
+
|
|
151
|
+
print(f"Successfully created new action file: {new_file}")
|
|
152
|
+
|
|
153
|
+
if os.environ.get("TERMINAL_EMULATOR") == "JetBrains-JediTerm":
|
|
154
|
+
subprocess.run(["idea", new_file])
|
|
155
|
+
else:
|
|
156
|
+
if shutil.which("code"):
|
|
157
|
+
subprocess.run(["code", "-r", new_file])
|
|
158
|
+
elif shutil.which("idea"):
|
|
159
|
+
subprocess.run(["idea", new_file])
|
|
160
|
+
return
|
|
120
161
|
|
|
121
162
|
if args.model:
|
|
122
163
|
|
|
@@ -160,6 +160,10 @@ def parse_args() -> AutoCoderArgs:
|
|
|
160
160
|
screenshot_parser.add_argument("--output", required=True, help=desc["screenshot_output"])
|
|
161
161
|
screenshot_parser.add_argument("--source_dir", default=".", help="")
|
|
162
162
|
|
|
163
|
+
next_parser = subparsers.add_parser("next", help="Create a new action file based on the previous one")
|
|
164
|
+
next_parser.add_argument("name", help="Name for the new action file")
|
|
165
|
+
next_parser.add_argument("--source_dir", default=".", help="")
|
|
166
|
+
|
|
163
167
|
doc2html_parser = subparsers.add_parser("doc2html", help="Convert word/pdf document to html")
|
|
164
168
|
doc2html_parser.add_argument("--file", default="", help=desc["file"])
|
|
165
169
|
doc2html_parser.add_argument("--model", default="", help=desc["model"])
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.76"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.75"
|
|
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.75 → auto-coder-0.1.76}/src/autocoder/common/code_auto_generate_editblock.py
RENAMED
|
File without changes
|
{auto-coder-0.1.75 → auto-coder-0.1.76}/src/autocoder/common/code_auto_generate_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
|
|
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.75 → auto-coder-0.1.76}/src/autocoder/dispacher/actions/plugins/action_translate.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
|