hte-cli 0.1.22__tar.gz → 0.1.23__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hte-cli
3
- Version: 0.1.22
3
+ Version: 0.1.23
4
4
  Summary: Human Time-to-Completion Evaluation CLI
5
5
  Project-URL: Homepage, https://github.com/sean-peters-au/lyptus-mono
6
6
  Author: Lyptus Research
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hte-cli"
3
- version = "0.1.22"
3
+ version = "0.1.23"
4
4
  description = "Human Time-to-Completion Evaluation CLI"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -499,30 +499,23 @@ def tasks_run(ctx, task_id: str | None):
499
499
  results.append((img, True, "cached"))
500
500
  continue
501
501
 
502
- # Need to pull - show live progress
503
- console.print(f" [yellow]↓[/yellow] {short_name} [dim]pulling...[/dim]", end="")
504
-
505
- # Clear the line and show progress updates
502
+ # Need to pull - use Rich Status for live updates
506
503
  image_layers[img] = {}
507
- last_summary = ""
508
504
 
509
- def show_progress(image: str, line: str):
510
- nonlocal last_summary
511
- on_image_progress(image, line)
512
- summary = get_progress_summary(image)
513
- if summary != last_summary:
514
- # Clear line and rewrite
515
- console.print(f"\r [yellow]↓[/yellow] {short_name} [dim]{summary}[/dim]" + " " * 20, end="")
516
- last_summary = summary
505
+ with console.status(f"[yellow]↓[/yellow] {short_name} [dim]connecting...[/dim]") as status:
506
+ def show_progress(image: str, line: str):
507
+ on_image_progress(image, line)
508
+ summary = get_progress_summary(image)
509
+ status.update(f"[yellow]↓[/yellow] {short_name} [dim]{summary}[/dim]")
517
510
 
518
- success = pull_image_with_progress(img, on_progress=show_progress)
511
+ success = pull_image_with_progress(img, on_progress=show_progress)
519
512
 
520
- # Final status
513
+ # Final status (printed after status context exits)
521
514
  if success:
522
- console.print(f"\r [green]✓[/green] {short_name} [dim](downloaded)[/dim]" + " " * 30)
515
+ console.print(f" [green]✓[/green] {short_name} [dim](downloaded)[/dim]")
523
516
  results.append((img, True, "pulled"))
524
517
  else:
525
- console.print(f"\r [red]✗[/red] {short_name} [dim](failed)[/dim]" + " " * 30)
518
+ console.print(f" [red]✗[/red] {short_name} [dim](failed)[/dim]")
526
519
  results.append((img, False, "failed"))
527
520
 
528
521
  failed = sum(1 for _, ok, _ in results if not ok)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes