expluro 0.1.2__tar.gz → 0.1.3__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: expluro
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Expluro CLI — graph layer on top of your AI agent
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: claude-agent-sdk>=0.0.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: expluro
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Expluro CLI — graph layer on top of your AI agent
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: claude-agent-sdk>=0.0.1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "expluro"
7
- version = "0.1.2"
7
+ version = "0.1.3"
8
8
  description = "Expluro CLI — graph layer on top of your AI agent"
9
9
  requires-python = ">=3.10"
10
10
  dependencies = [
@@ -64,22 +64,34 @@ def login(email: str, password: str, base_url: str = DEFAULT_BASE_URL) -> dict[s
64
64
 
65
65
 
66
66
  def login_command() -> None:
67
- import click
67
+ from rich.console import Console
68
+ from rich.prompt import Prompt
69
+ from rich.status import Status
70
+ from rich.padding import Padding
68
71
 
69
- click.echo("Log in to Expluro")
70
- email = click.prompt("Email")
71
- password = click.prompt("Password", hide_input=True)
72
+ console = Console()
73
+
74
+ console.print()
75
+ console.print(" [bold #6366f1]◆[/bold #6366f1] [bold white]expluro[/bold white]", highlight=False)
76
+ console.print(Padding("[dim]Version control for your AI thinking.[/dim]", (0, 0, 1, 5)))
77
+
78
+ email = Prompt.ask(" [dim]Email[/dim]", console=console)
79
+ password = Prompt.ask(" [dim]Password[/dim]", console=console, password=True)
80
+ console.print()
72
81
 
73
82
  from .backend import BackendError
74
83
 
75
- try:
76
- tokens = login(email, password)
77
- except BackendError as exc:
78
- click.echo(f"Login failed: {exc.detail}", err=True)
79
- raise SystemExit(1)
84
+ with Status("[dim]Authenticating…[/dim]", console=console, spinner="dots"):
85
+ try:
86
+ tokens = login(email, password)
87
+ except BackendError as exc:
88
+ console.print(f" [bold red]✗[/bold red] {exc.detail}")
89
+ console.print()
90
+ raise SystemExit(1)
80
91
 
81
92
  save_tokens(tokens["access"], tokens["refresh"])
82
- click.echo("Logged in successfully.")
93
+ console.print(f" [bold green]✓[/bold green] Logged in as [bold]{email}[/bold]")
94
+ console.print(Padding("[dim]Run [bold]expluro[/bold] in any project directory to start a session.[/dim]", (0, 0, 1, 5)))
83
95
 
84
96
 
85
97
  def _load_config() -> dict:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes