Skip to content

The agent that turns websites into APIs!

ux: dim output with prompt preview

kalil0321c61415757c32
diff --git a/src/reverse_api/cli.py b/src/reverse_api/cli.py
index e03335c..a5aa7f7 100644
--- a/src/reverse_api/cli.py
+++ b/src/reverse_api/cli.py
@@ -2162,7 +2162,9 @@ def run_script(ctx, identifier, script_args, file_name, list_scripts):
python_path = str(venv_python)
# Execute (with retry on missing imports)
- console.print(f"Running [cyan]{script.name}[/cyan] from run [dim]{run_id}[/dim]\n [dim]{script}[/dim]")
+ prompt_preview = (run.get("prompt") or "")[:80]
+ console.print(f"run {run_id} | {prompt_preview}", style="dim")
+ console.print(f" {script}", style="dim")
result = subprocess.run(
[python_path, str(script), *script_args],
capture_output=True, text=True,