hte-cli 0.2.21__py3-none-any.whl → 0.2.22__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 +21 -1
- {hte_cli-0.2.21.dist-info → hte_cli-0.2.22.dist-info}/METADATA +1 -1
- {hte_cli-0.2.21.dist-info → hte_cli-0.2.22.dist-info}/RECORD +5 -5
- {hte_cli-0.2.21.dist-info → hte_cli-0.2.22.dist-info}/WHEEL +0 -0
- {hte_cli-0.2.21.dist-info → hte_cli-0.2.22.dist-info}/entry_points.txt +0 -0
hte_cli/cli.py
CHANGED
|
@@ -280,6 +280,14 @@ def session_join(ctx, session_id: str, force_setup: bool):
|
|
|
280
280
|
},
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
+
# Send session_started event (records CLI version for debugging)
|
|
284
|
+
events.session_started(
|
|
285
|
+
{
|
|
286
|
+
"cli_version": __version__,
|
|
287
|
+
"task_id": session_info["task_id"],
|
|
288
|
+
}
|
|
289
|
+
)
|
|
290
|
+
|
|
283
291
|
# Step 3: Run setup (skip if reconnecting without force)
|
|
284
292
|
setup_start_time = time.monotonic()
|
|
285
293
|
images = []
|
|
@@ -429,13 +437,21 @@ def session_join(ctx, session_id: str, force_setup: bool):
|
|
|
429
437
|
console.print(f"Answer: {result.answer}")
|
|
430
438
|
console.print(f"Time: {result.time_seconds:.1f}s")
|
|
431
439
|
|
|
440
|
+
# Track upload size and timing
|
|
441
|
+
upload_size_bytes = len(eval_log_bytes) if eval_log_bytes else 0
|
|
442
|
+
upload_size_kb = upload_size_bytes / 1024
|
|
443
|
+
|
|
444
|
+
events.upload_started(size_bytes=upload_size_bytes)
|
|
445
|
+
upload_start_time = time.monotonic()
|
|
446
|
+
|
|
432
447
|
# Upload to server
|
|
433
448
|
with Progress(
|
|
434
449
|
SpinnerColumn(),
|
|
435
450
|
TextColumn("[progress.description]{task.description}"),
|
|
436
451
|
console=console,
|
|
437
452
|
) as progress:
|
|
438
|
-
|
|
453
|
+
size_str = f" ({upload_size_kb:.0f} KB)" if upload_size_kb > 0 else ""
|
|
454
|
+
progress.add_task(f"Uploading result{size_str}...", total=None)
|
|
439
455
|
try:
|
|
440
456
|
upload_result = api.upload_result(
|
|
441
457
|
session_id=session_id,
|
|
@@ -450,6 +466,10 @@ def session_join(ctx, session_id: str, force_setup: bool):
|
|
|
450
466
|
console.print(f"[red]Failed to upload result: {e}[/red]")
|
|
451
467
|
sys.exit(1)
|
|
452
468
|
|
|
469
|
+
# Record upload completion
|
|
470
|
+
upload_duration = time.monotonic() - upload_start_time
|
|
471
|
+
events.upload_completed(duration_seconds=upload_duration, size_bytes=upload_size_bytes)
|
|
472
|
+
|
|
453
473
|
if upload_result.get("score") is not None:
|
|
454
474
|
console.print(f"Score: {upload_result['score']}")
|
|
455
475
|
|
|
@@ -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=
|
|
4
|
+
hte_cli/cli.py,sha256=2TSpQr1A1nkXSMhiFl0P5Gb4ofCEAHxyPjtKpIETsrA,43085
|
|
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=SWl9FF4X3e9eBbZyL0ujhmmSL5OK8J6st-Ty0jD5AWM,14550
|
|
10
10
|
hte_cli/scorers.py,sha256=NZWMlS2h2Hczm-bldH35wRhL3RYzGhQgCCp3rP9zhJo,6414
|
|
11
11
|
hte_cli/version_check.py,sha256=WVZyGy2XfAghQYdd2N9-0Qfg-7pgp9gt4761-PnmacI,1708
|
|
12
|
-
hte_cli-0.2.
|
|
13
|
-
hte_cli-0.2.
|
|
14
|
-
hte_cli-0.2.
|
|
15
|
-
hte_cli-0.2.
|
|
12
|
+
hte_cli-0.2.22.dist-info/METADATA,sha256=GPajw9n88f0x6Px3wjsodo9jECzp0Ka80pISNIIb4GY,3820
|
|
13
|
+
hte_cli-0.2.22.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
14
|
+
hte_cli-0.2.22.dist-info/entry_points.txt,sha256=XbyEEi1H14DFAt0Kdl22e_IRVEGzimSzYSh5HlhKlFA,41
|
|
15
|
+
hte_cli-0.2.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|