The agent that turns websites into APIs!
ux: show only scripts path, remove redundant info
kalil0321312c49b25a3b
diff --git a/src/reverse_api/cli.py b/src/reverse_api/cli.pyindex 95f324a..b10c55d 100644--- a/src/reverse_api/cli.py+++ b/src/reverse_api/cli.py@@ -2097,11 +2097,8 @@ def run_script(ctx, identifier, script_args, file_name, list_scripts):# Discover scripts (prefer stored path from run metadata, fall back to output_dir)scripts = discover_scripts(run_id, output_dir, run_metadata=run)- # Show run info after resolution- prompt_preview = (run.get("prompt") or "")[:80]- console.print(f"run {run_id} | {prompt_preview}", style="dim")if scripts:- console.print(f" {scripts[0].parent}", style="dim")+ console.print(f"{scripts[0].parent}", style="dim")if not scripts:console.print(f"[red]No Python scripts found for run {run_id}[/red]")diff --git a/tests/test_run_command.py b/tests/test_run_command.pyindex 28457eb..7cd194e 100644--- a/tests/test_run_command.py+++ b/tests/test_run_command.py@@ -618,8 +618,7 @@ class TestRunCommandOutputMessages:with patch("subprocess.run", return_value=MagicMock(returncode=0, stdout="", stderr="")):result = cli_runner.invoke(main, ["run", "def789ghi012"])- assert "run def789ghi012" in result.output- assert "hubspot" in result.output+ assert "scripts/def789ghi012" in result.outputdef test_shows_run_id_in_output(self, cli_runner, mock_cli_env):from reverse_api.cli import main