|
1 | 1 | import typer |
2 | 2 | from agent.run_agent_no_rich import run_agent as run_agent_no_rich |
3 | 3 | from agent.run_agent import run_agent |
4 | | -from agent.run_agent_joblit import run_agent as run_agent_joblit |
5 | 4 | from commit0.harness.constants import RUN_AIDER_LOG_DIR |
6 | 5 | import subprocess |
7 | 6 | from agent.agent_utils import write_agent_config |
@@ -244,41 +243,3 @@ def run_test_no_rich( |
244 | 243 | log_dir, |
245 | 244 | max_parallel_repos, |
246 | 245 | ) |
247 | | - |
248 | | - |
249 | | -@agent_app.command() |
250 | | -def run_test_joblit( |
251 | | - branch: str = typer.Argument( |
252 | | - ..., |
253 | | - help="Branch name of current run", |
254 | | - ), |
255 | | - override_previous_changes: bool = typer.Option( |
256 | | - False, |
257 | | - help="If override the previous agent changes on `branch` or run the agent continuously on the new changes", |
258 | | - ), |
259 | | - backend: str = typer.Option( |
260 | | - "modal", |
261 | | - help="Test backend to run the agent on, ignore this option if you are not adding `test` option to agent", |
262 | | - ), |
263 | | - agent_config_file: str = typer.Option( |
264 | | - ".agent.yaml", |
265 | | - help="Path to the agent config file", |
266 | | - ), |
267 | | - log_dir: str = typer.Option( |
268 | | - str(RUN_AIDER_LOG_DIR.resolve()), |
269 | | - help="Log directory to store the logs", |
270 | | - ), |
271 | | - max_parallel_repos: int = typer.Option( |
272 | | - 1, |
273 | | - help="Maximum number of repositories for agent to run in parallel", |
274 | | - ), |
275 | | -) -> None: |
276 | | - """Run the agent on the repository.""" |
277 | | - run_agent_joblit( |
278 | | - branch, |
279 | | - override_previous_changes, |
280 | | - backend, |
281 | | - agent_config_file, |
282 | | - log_dir, |
283 | | - max_parallel_repos, |
284 | | - ) |
0 commit comments