llamactl 0.3.18__py3-none-any.whl → 0.3.19__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.
@@ -44,6 +44,11 @@ from ..config.schema import Auth, DeviceOIDC
44
44
  from ..options import global_options, interactive_option
45
45
 
46
46
 
47
+ # Specific auth/login flow exceptions
48
+ class NoProjectsFoundError(Exception):
49
+ """Raised when the authenticated user has no accessible projects."""
50
+
51
+
47
52
  # Create sub-applications for organizing commands
48
53
  @app.group(
49
54
  help="Login to llama cloud control plane to manage deployments",
@@ -120,6 +125,15 @@ def device_login() -> None:
120
125
  f"[green]Created login profile '{created.name}' and set as current[/green]"
121
126
  )
122
127
 
128
+ except NoProjectsFoundError:
129
+ # Friendly guidance for first-time users with no projects
130
+ rprint(f"[{WARNING}]⚠️ No Existing Projects - Welcome to LlamaCloud![/]")
131
+ rprint(f"[{WARNING}]Looks like this may be your first time logging in.[/]")
132
+ rprint(
133
+ f"[{WARNING}]Before you can get started, log in to https://cloud.llamaindex.ai to complete your account setup.[/]"
134
+ )
135
+ return
136
+
123
137
  except Exception as e:
124
138
  rprint(f"[red]Error: {e}[/red]")
125
139
  raise click.Abort()
@@ -418,11 +432,14 @@ def _create_device_profile() -> Auth:
418
432
 
419
433
  # Obtain or prompt for project ID and create profile
420
434
  projects = _list_projects(auth_svc, oidc_device.device_access_token)
435
+ if not projects:
436
+ # No projects available for this user yet
437
+ raise NoProjectsFoundError()
438
+
421
439
  selected_project_id = _select_or_enter_project(projects, True)
422
440
  if not selected_project_id:
423
- raise click.ClickException(
424
- "Project is required. Does this user have access to any projects?"
425
- )
441
+ # User cancelled selection despite having projects
442
+ raise click.ClickException("No project selected")
426
443
  created = auth_svc.create_or_update_profile_from_oidc(
427
444
  selected_project_id, oidc_device
428
445
  )
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: llamactl
3
- Version: 0.3.18
3
+ Version: 0.3.19
4
4
  Summary: A command-line interface for managing LlamaDeploy projects and deployments
5
5
  Author: Adrian Lyjak
6
6
  Author-email: Adrian Lyjak <adrianlyjak@gmail.com>
7
7
  License: MIT
8
- Requires-Dist: llama-deploy-core[client]>=0.3.18,<0.4.0
9
- Requires-Dist: llama-deploy-appserver>=0.3.18,<0.4.0
8
+ Requires-Dist: llama-deploy-core[client]>=0.3.19,<0.4.0
9
+ Requires-Dist: llama-deploy-appserver>=0.3.19,<0.4.0
10
10
  Requires-Dist: vibe-llama-core>=0.1.0
11
11
  Requires-Dist: rich>=13.0.0
12
12
  Requires-Dist: questionary>=2.0.0
@@ -3,7 +3,7 @@ llama_deploy/cli/app.py,sha256=9170e4f506c482522bd745eb1cdb700a198cfcfd7204c168c
3
3
  llama_deploy/cli/auth/client.py,sha256=3ebd2526f65f8d576e17d304df1b8a163d07586b88b5628cb36c9fa487a23ef6,11841
4
4
  llama_deploy/cli/client.py,sha256=f4053b5183224cff55c1393e78887d1af2597219135379a851b742c676adc154,1727
5
5
  llama_deploy/cli/commands/aliased_group.py,sha256=101fe7733802dfb448198331818123184523b54cb80a27f166d4ff7010a76e49,1097
6
- llama_deploy/cli/commands/auth.py,sha256=78540360b3fbee9586456352ddb4ba48f766720c4f7b5da1268bfc61eccf65b1,24063
6
+ llama_deploy/cli/commands/auth.py,sha256=48c4cc786e8c4e0fb8c0caaba690cef359cddac9b7fbb0b88505111323c07667,24754
7
7
  llama_deploy/cli/commands/deployment.py,sha256=abea89e94ed978821a998453792d127605831ba23108df776873852ddd19f97e,14526
8
8
  llama_deploy/cli/commands/env.py,sha256=36cb1b0abb9e3d1c5546d3e8a3c4c7839c4d6c2abf75763e39efb08376b3eae9,6808
9
9
  llama_deploy/cli/commands/init.py,sha256=348ec90fb54a6774062b109afe8cc9ac7f3c59144f941fd5697001ea52d5b946,14981
@@ -39,7 +39,7 @@ llama_deploy/cli/textual/styles.tcss,sha256=2536f52ea1a654ae1f8990a25d45c845cb31
39
39
  llama_deploy/cli/utils/env_inject.py,sha256=01911758bcc3cf22aad0db0d1ade56aece48d6ad6bdb7186ea213337c67f5a89,688
40
40
  llama_deploy/cli/utils/redact.py,sha256=1e768d76b4a6708230c34f7ce8a5a82ab52795bb3d6ab0387071ab4e8d7e7934,863
41
41
  llama_deploy/cli/utils/version.py,sha256=bf01a6dda948b868cc08c93701ed44cd36b487402404af8451d4c0996a2edb31,364
42
- llamactl-0.3.18.dist-info/WHEEL,sha256=66530aef82d5020ef5af27ae0123c71abb9261377c5bc519376c671346b12918,79
43
- llamactl-0.3.18.dist-info/entry_points.txt,sha256=b67e1eb64305058751a651a80f2d2268b5f7046732268421e796f64d4697f83c,52
44
- llamactl-0.3.18.dist-info/METADATA,sha256=de5e491896b1a630026d6915a9c9ba776522d12618f441542eadd3a9d53336d7,3217
45
- llamactl-0.3.18.dist-info/RECORD,,
42
+ llamactl-0.3.19.dist-info/WHEEL,sha256=66530aef82d5020ef5af27ae0123c71abb9261377c5bc519376c671346b12918,79
43
+ llamactl-0.3.19.dist-info/entry_points.txt,sha256=b67e1eb64305058751a651a80f2d2268b5f7046732268421e796f64d4697f83c,52
44
+ llamactl-0.3.19.dist-info/METADATA,sha256=21a1074e9ef4081337b502bbc53fcd68da625680ae427dc10c8e65543414f5c0,3217
45
+ llamactl-0.3.19.dist-info/RECORD,,