hte-cli 0.2.13__py3-none-any.whl → 0.2.15__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
@@ -354,6 +354,15 @@ def session_join(ctx, session_id: str, force_setup: bool):
354
354
  console.print("[dim]Skipping setup (use --force-setup to re-run)[/dim]")
355
355
  console.print()
356
356
 
357
+ # Check if session was cancelled during setup
358
+ try:
359
+ updated_session = api.join_session(session_id)
360
+ if updated_session.get("status") == "cancelled":
361
+ console.print("[yellow]Session was cancelled. Exiting.[/yellow]")
362
+ sys.exit(0)
363
+ except APIError:
364
+ pass # Continue if we can't check - server might be temporarily unavailable
365
+
357
366
  # Step 4: Show instructions
358
367
  if session_info.get("instructions"):
359
368
  console.print(Panel(session_info["instructions"], title="Task Instructions"))
@@ -362,18 +371,19 @@ def session_join(ctx, session_id: str, force_setup: bool):
362
371
  # Step 3: Run the task using TaskRunner
363
372
  step_num = "3" if (not is_reconnect or force_setup) and images else "2" if (not is_reconnect or force_setup) else "1"
364
373
  console.print(f"[bold]Step {step_num}:[/bold] Starting task environment...")
374
+ console.print("[dim]Launching Docker containers...[/dim]")
375
+ console.print()
365
376
 
366
377
  events.docker_started()
367
378
 
368
379
  runner = TaskRunner()
369
380
  eval_log_bytes = None
370
381
  try:
371
- with console.status("[dim]Launching Docker containers (this may take a minute)...[/dim]"):
372
- result = runner.run_from_assignment(
373
- assignment=assignment,
374
- compose_yaml=compose_yaml,
375
- files_zip=files_zip,
376
- )
382
+ result = runner.run_from_assignment(
383
+ assignment=assignment,
384
+ compose_yaml=compose_yaml,
385
+ files_zip=files_zip,
386
+ )
377
387
  # Read eval log before cleanup
378
388
  if result.eval_log_path and result.eval_log_path.exists():
379
389
  eval_log_bytes = result.eval_log_path.read_bytes()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hte-cli
3
- Version: 0.2.13
3
+ Version: 0.2.15
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=F3SMQ1hFIKzaSNQdB--v7cD-Ob9stfc1oNyegi-_hwg,41247
4
+ hte_cli/cli.py,sha256=0gBRmeRwsD-EWII4B87czk6eX7M3Lp0ekAZxFUhw9xY,41591
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.13.dist-info/METADATA,sha256=VAlXZd0JZ8y5bIM4qf7sVF_nmxZQ0dQD1e5WLSZrntU,3768
13
- hte_cli-0.2.13.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
- hte_cli-0.2.13.dist-info/entry_points.txt,sha256=XbyEEi1H14DFAt0Kdl22e_IRVEGzimSzYSh5HlhKlFA,41
15
- hte_cli-0.2.13.dist-info/RECORD,,
12
+ hte_cli-0.2.15.dist-info/METADATA,sha256=g74Og1rzIEt2DopWk3l1LlJlWPHgHwpe2e5jNz2EIyI,3768
13
+ hte_cli-0.2.15.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
+ hte_cli-0.2.15.dist-info/entry_points.txt,sha256=XbyEEi1H14DFAt0Kdl22e_IRVEGzimSzYSh5HlhKlFA,41
15
+ hte_cli-0.2.15.dist-info/RECORD,,