lyceum-cli 1.0.20__tar.gz → 1.0.22__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.
Files changed (29) hide show
  1. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/PKG-INFO +1 -1
  2. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/external/auth/login.py +44 -25
  3. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum_cli.egg-info/PKG-INFO +1 -1
  4. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/setup.py +1 -1
  5. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/__init__.py +0 -0
  6. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/external/__init__.py +0 -0
  7. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/external/auth/__init__.py +0 -0
  8. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/external/compute/__init__.py +0 -0
  9. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/external/compute/execution/__init__.py +0 -0
  10. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/external/compute/execution/python.py +0 -0
  11. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/external/compute/inference/__init__.py +0 -0
  12. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/external/compute/inference/batch.py +0 -0
  13. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/external/compute/inference/chat.py +0 -0
  14. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/external/compute/inference/models.py +0 -0
  15. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/external/general/__init__.py +0 -0
  16. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/main.py +0 -0
  17. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/shared/__init__.py +0 -0
  18. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/shared/config.py +0 -0
  19. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/shared/display.py +0 -0
  20. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum/shared/streaming.py +0 -0
  21. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum_cli.egg-info/SOURCES.txt +0 -0
  22. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum_cli.egg-info/dependency_links.txt +0 -0
  23. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum_cli.egg-info/entry_points.txt +0 -0
  24. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum_cli.egg-info/requires.txt +0 -0
  25. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum_cli.egg-info/top_level.txt +0 -0
  26. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum_cloud_execution_api_client/__init__.py +0 -0
  27. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum_cloud_execution_api_client/api/__init__.py +0 -0
  28. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/lyceum_cloud_execution_api_client/models/__init__.py +0 -0
  29. {lyceum_cli-1.0.20 → lyceum_cli-1.0.22}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lyceum-cli
3
- Version: 1.0.20
3
+ Version: 1.0.22
4
4
  Summary: Command-line interface for Lyceum Cloud Execution API
5
5
  Home-page: https://lyceum.technology
6
6
  Author: Lyceum Team
@@ -86,13 +86,10 @@ class CallbackHandler(BaseHTTPRequestHandler):
86
86
  <p class="text-sm text-gray-500">Your Lyceum CLI has been authenticated successfully and is ready to use.</p>
87
87
  </div>
88
88
 
89
- <!-- Close Button -->
90
- <button
91
- onclick="window.close()"
92
- class="w-full py-2 px-4 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 transition-colors"
93
- >
94
- Close Tab
95
- </button>
89
+ <!-- Close Message -->
90
+ <div class="w-full py-3 px-4 bg-gray-50 text-gray-700 rounded-md border border-gray-200">
91
+ You can close this window now
92
+ </div>
96
93
 
97
94
  <!-- Lyceum Branding -->
98
95
  <div class="mt-8 pt-6 border-t border-gray-200">
@@ -160,13 +157,10 @@ class CallbackHandler(BaseHTTPRequestHandler):
160
157
  <p class="text-gray-600">Please try again or contact support if the issue persists.</p>
161
158
  </div>
162
159
 
163
- <!-- Close Button -->
164
- <button
165
- onclick="window.close()"
166
- class="w-full py-2 px-4 bg-gray-600 text-white rounded-md hover:bg-gray-700 focus:ring-2 focus:ring-gray-500 transition-colors"
167
- >
168
- Close Tab
169
- </button>
160
+ <!-- Close Message -->
161
+ <div class="w-full py-3 px-4 bg-gray-50 text-gray-700 rounded-md border border-gray-200">
162
+ You can close this window now
163
+ </div>
170
164
 
171
165
  <!-- Lyceum Branding -->
172
166
  <div class="mt-8 pt-6 border-t border-gray-200">
@@ -209,7 +203,9 @@ class CallbackHandler(BaseHTTPRequestHandler):
209
203
  </div>
210
204
  <h1 class="text-2xl font-bold text-gray-900 mb-2">Invalid Parameters</h1>
211
205
  <p class="text-gray-600 mb-8">The authentication callback received invalid parameters.</p>
212
- <button onclick="window.close()" class="w-full py-2 px-4 bg-gray-600 text-white rounded-md hover:bg-gray-700 focus:ring-2 focus:ring-gray-500 transition-colors">Close Tab</button>
206
+ <div class="w-full py-3 px-4 bg-gray-50 text-gray-700 rounded-md border border-gray-200">
207
+ You can close this window now
208
+ </div>
213
209
  </div>
214
210
  </div>
215
211
  </body>
@@ -244,7 +240,9 @@ class CallbackHandler(BaseHTTPRequestHandler):
244
240
  </div>
245
241
  <h1 class="text-2xl font-bold text-gray-900 mb-2">Page Not Found</h1>
246
242
  <p class="text-gray-600 mb-8">The requested page could not be found.</p>
247
- <button onclick="window.close()" class="w-full py-2 px-4 bg-gray-600 text-white rounded-md hover:bg-gray-700 focus:ring-2 focus:ring-gray-500 transition-colors">Close Tab</button>
243
+ <div class="w-full py-3 px-4 bg-gray-50 text-gray-700 rounded-md border border-gray-200">
244
+ You can close this window now
245
+ </div>
248
246
  </div>
249
247
  </div>
250
248
  </body>
@@ -285,7 +283,9 @@ class CallbackHandler(BaseHTTPRequestHandler):
285
283
  <div class="bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-md mb-8">
286
284
  <p class="text-sm">{e}</p>
287
285
  </div>
288
- <button onclick="window.close()" class="w-full py-2 px-4 bg-gray-600 text-white rounded-md hover:bg-gray-700 focus:ring-2 focus:ring-gray-500 transition-colors">Close Tab</button>
286
+ <div class="w-full py-3 px-4 bg-gray-50 text-gray-700 rounded-md border border-gray-200">
287
+ You can close this window now
288
+ </div>
289
289
  </div>
290
290
  </div>
291
291
  </body>
@@ -346,6 +346,9 @@ def login(
346
346
  try:
347
347
  if base_url:
348
348
  config.base_url = base_url
349
+ else:
350
+ # Reset to production URL if no custom URL specified
351
+ config.base_url = "https://api.lyceum.technology"
349
352
 
350
353
  # Reset callback result
351
354
  callback_result = {"token": None, "error": None, "received": False}
@@ -400,16 +403,32 @@ def login(
400
403
  try:
401
404
  import httpx
402
405
  headers = {"Authorization": f"Bearer {config.api_key}"}
403
- response = httpx.get(f"{config.base_url}/api/v2/external/machine-types", headers=headers, timeout=10.0)
404
- if response.status_code == 200:
405
- console.print("[green]✅ Successfully authenticated![/green]")
406
- if callback_result.get("user"):
407
- console.print(f"[dim]Logged in as: {callback_result['user']}[/dim]")
408
- else:
409
- console.print(f"[red]❌ Token validation failed: HTTP {response.status_code}[/red]")
410
- raise typer.Exit(1)
406
+
407
+ # Create client with explicit timeout and SSL verification
408
+ client = httpx.Client(timeout=30.0, verify=True)
409
+ try:
410
+ response = client.get(
411
+ f"{config.base_url}/api/v2/external/machine-types",
412
+ headers=headers
413
+ )
414
+ if response.status_code == 200:
415
+ console.print("[green]✅ Successfully authenticated![/green]")
416
+ if callback_result.get("user"):
417
+ console.print(f"[dim]Logged in as: {callback_result['user']}[/dim]")
418
+ else:
419
+ console.print(f"[red]❌ Token validation failed: HTTP {response.status_code}[/red]")
420
+ console.print(f"[dim]Response: {response.text}[/dim]")
421
+ raise typer.Exit(1)
422
+ finally:
423
+ client.close()
424
+ except httpx.TimeoutException as e:
425
+ console.print(f"[yellow]⚠️ Token validation timed out: {e}[/yellow]")
426
+ console.print(f"[yellow]Token saved but couldn't verify connectivity to {config.base_url}[/yellow]")
427
+ console.print("[dim]You can test the connection later with 'lyceum auth status'[/dim]")
428
+ # Don't exit with error - token was received successfully
411
429
  except Exception as e:
412
430
  console.print(f"[red]❌ Token validation failed: {e}[/red]")
431
+ console.print(f"[dim]Token saved but couldn't verify. Error type: {type(e).__name__}[/dim]")
413
432
  raise typer.Exit(1)
414
433
 
415
434
  elif callback_result["error"]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lyceum-cli
3
- Version: 1.0.20
3
+ Version: 1.0.22
4
4
  Summary: Command-line interface for Lyceum Cloud Execution API
5
5
  Home-page: https://lyceum.technology
6
6
  Author: Lyceum Team
@@ -15,7 +15,7 @@ if readme_file.exists():
15
15
 
16
16
  setup(
17
17
  name="lyceum-cli",
18
- version="1.0.20",
18
+ version="1.0.22",
19
19
  description="Command-line interface for Lyceum Cloud Execution API",
20
20
  long_description=long_description,
21
21
  long_description_content_type="text/markdown",
File without changes
File without changes