hte-cli 0.2.10__py3-none-any.whl → 0.2.11__py3-none-any.whl

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.
hte_cli/cli.py CHANGED
@@ -364,21 +364,46 @@ def session_join(ctx, session_id: str, force_setup: bool):
364
364
  layer_progress[layer_id]["current"] = layer_progress[layer_id]["total"]
365
365
  layer_progress[layer_id]["phase"] = "done"
366
366
 
367
+ # Track waiting layers
368
+ waiting_match = re.search(r"([a-f0-9]+):\s*Waiting", line)
369
+ if waiting_match:
370
+ layer_id = waiting_match.group(1)
371
+ if layer_id not in layer_progress:
372
+ layer_progress[layer_id] = {"current": 0, "total": 0, "phase": "waiting"}
373
+
367
374
  # Aggregate progress
368
375
  total_current = sum(lp.get("current", 0) for lp in layer_progress.values())
369
376
  total_size = sum(lp.get("total", 0) for lp in layer_progress.values())
370
- active_layers = sum(1 for lp in layer_progress.values() if lp.get("phase") in ("Downloading", "Extracting"))
377
+ downloading = sum(1 for lp in layer_progress.values() if lp.get("phase") == "Downloading")
378
+ extracting = sum(1 for lp in layer_progress.values() if lp.get("phase") == "Extracting")
371
379
  done_layers = sum(1 for lp in layer_progress.values() if lp.get("phase") == "done")
372
-
373
- if total_size > 0:
374
- pct = (total_current / total_size) * 100
375
- display = f"{format_size(total_current)}/{format_size(total_size)} ({pct:.0f}%)"
376
- if active_layers > 0:
377
- display += f" - {active_layers} active"
380
+ waiting = sum(1 for lp in layer_progress.values() if lp.get("phase") == "waiting")
381
+ total_layers = len(layer_progress)
382
+
383
+ # Only show size progress if we have meaningful data (>1MB)
384
+ if total_size > 1024 * 1024:
385
+ display = f"{format_size(total_current)}/{format_size(total_size)}"
386
+ if downloading > 0:
387
+ display += f" ({downloading} downloading"
388
+ if extracting > 0:
389
+ display += f", {extracting} extracting"
390
+ display += ")"
391
+ elif extracting > 0:
392
+ display += f" ({extracting} extracting)"
393
+ elif total_layers > 0:
394
+ # Show layer counts instead
395
+ parts = []
396
+ if downloading > 0:
397
+ parts.append(f"{downloading} downloading")
398
+ if extracting > 0:
399
+ parts.append(f"{extracting} extracting")
378
400
  if done_layers > 0:
379
- display += f", {done_layers} done"
380
- elif "Pulling" in line or "Waiting" in line:
381
- display = "preparing layers..."
401
+ parts.append(f"{done_layers} done")
402
+ if waiting > 0:
403
+ parts.append(f"{waiting} waiting")
404
+ display = ", ".join(parts) if parts else "starting..."
405
+ elif "Pulling" in line:
406
+ display = "preparing..."
382
407
  elif line.strip():
383
408
  display = line[:40]
384
409
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hte-cli
3
- Version: 0.2.10
3
+ Version: 0.2.11
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,7 +1,7 @@
1
1
  hte_cli/__init__.py,sha256=fDGXp-r8bIoLtlQnn5xJ_CpwMhonvk9bGjZQsjA2mDI,914
2
2
  hte_cli/__main__.py,sha256=63n0gNGfskidWDU0aAIF2N8lylVCLYKVIkrN9QiORoo,107
3
3
  hte_cli/api_client.py,sha256=m42kfFZS72Nu_VuDwxRsLNy4ziCcvgk7KNWBh9gwqy0,9257
4
- hte_cli/cli.py,sha256=Aw7KmH4irG6FlCEfNOWcVmVRncARVQAifrhZcqXu2hs,44529
4
+ hte_cli/cli.py,sha256=2o5spfX8QSVGvRSWZ9J3MD95hN_2wTOFrz1XPr-2m80,46054
5
5
  hte_cli/config.py,sha256=42Xv__YMSeRLs2zhGukJkIXFKtnBtYCHnONfViGyt2g,3387
6
6
  hte_cli/errors.py,sha256=1J5PpxcUKBu6XjigMMCPOq4Zc12tnv8LhAsiaVFWLQM,2762
7
7
  hte_cli/events.py,sha256=Zn-mroqaLHNzdT4DFf8st1Qclglshihdc09dBfCN070,5522
@@ -9,7 +9,7 @@ hte_cli/image_utils.py,sha256=TLwJdswUQrSD2bQcAXW03R8j8WG2pbHzd12TWcE7zy4,6418
9
9
  hte_cli/runner.py,sha256=DhC8FMjHwfLR193iP4thLDRZrNssYA9KH1WYKU2JKeg,13535
10
10
  hte_cli/scorers.py,sha256=sFoPJePRt-K191-Ga4cVmrldruJclYXTOLkU_C9nCDI,6025
11
11
  hte_cli/version_check.py,sha256=WVZyGy2XfAghQYdd2N9-0Qfg-7pgp9gt4761-PnmacI,1708
12
- hte_cli-0.2.10.dist-info/METADATA,sha256=FBr7HFYE_HjrjCOoEIn-cM2b3t-L07HXvkwAqfK0kPw,3768
13
- hte_cli-0.2.10.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
- hte_cli-0.2.10.dist-info/entry_points.txt,sha256=XbyEEi1H14DFAt0Kdl22e_IRVEGzimSzYSh5HlhKlFA,41
15
- hte_cli-0.2.10.dist-info/RECORD,,
12
+ hte_cli-0.2.11.dist-info/METADATA,sha256=lNmuVPuej71UXnUA3TcKeOeXQGaQm5xB1hv-F-Jceg0,3768
13
+ hte_cli-0.2.11.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
+ hte_cli-0.2.11.dist-info/entry_points.txt,sha256=XbyEEi1H14DFAt0Kdl22e_IRVEGzimSzYSh5HlhKlFA,41
15
+ hte_cli-0.2.11.dist-info/RECORD,,