diff --git a/CLI-USAGE.md b/CLI-USAGE.md index 9526fddc..8980e6de 100755 --- a/CLI-USAGE.md +++ b/CLI-USAGE.md @@ -181,23 +181,3 @@ Displays the details of the 'TestWriteFile' benchmark test. ``` Displays the results of the benchmark tests on 'my_agent'. - -### 5. Frontend Command - -```sh -./run frontend -``` - -**Output**: - -``` -Agent is running. -Launching frontend -... (more details about the launch process) -``` - -Launches the frontend, with debugging and service details mentioned. - ---- - -Remember to start an agent before launching the frontend and that the `agents stop` command terminates any process on port 8000. \ No newline at end of file diff --git a/cli.py b/cli.py index 845a7b5c..107e8c1f 100644 --- a/cli.py +++ b/cli.py @@ -569,32 +569,6 @@ def benchmark_tests_details(test_name): print(f"IOError: file could not be read: {data_file}") continue - -@cli.command() -def frontend(): - """Starts the frontend""" - import os - import socket - import subprocess - - try: - output = subprocess.check_output(["lsof", "-t", "-i", ":8000"]) - if output: - click.echo("Agent is running.") - else: - click.echo("Error: Agent is not running. Please start an agent first.") - except subprocess.CalledProcessError as e: - click.echo("Error: Unexpected error occurred.") - return - frontend_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "frontend") - run_file = os.path.join(frontend_dir, "run") - if os.path.exists(frontend_dir) and os.path.isfile(run_file): - subprocess.Popen(["./run"], cwd=frontend_dir) - click.echo("Launching frontend") - else: - click.echo("Error: Frontend directory or run file does not exist.") - - @cli.group() def arena(): """Commands to enter the arena"""