unitlab 2.3.9__tar.gz → 2.3.10__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.1
2
2
  Name: unitlab
3
- Version: 2.3.9
3
+ Version: 2.3.10
4
4
  Home-page: https://github.com/teamunitlab/unitlab-sdk
5
5
  Author: Unitlab Inc.
6
6
  Author-email: team@unitlab.ai
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
2
2
 
3
3
  setup(
4
4
  name="unitlab",
5
- version="2.3.9",
5
+ version="2.3.10",
6
6
  license="MIT",
7
7
  author="Unitlab Inc.",
8
8
  author_email="team@unitlab.ai",
@@ -53,12 +53,14 @@ class CloudflareAPITunnel:
53
53
  "Content-Type": "application/json"
54
54
  } if self.api_token else {}
55
55
 
56
- # URLs for services
56
+ # URLs for services - simplified for Jupyter only
57
57
  self.jupyter_subdomain = f"j{self.clean_device_id}"
58
- self.ssh_subdomain = f"s{self.clean_device_id}"
59
58
  self.jupyter_url = f"https://{self.jupyter_subdomain}.{self.base_domain}"
59
+
60
+ # Keep SSH URLs for compatibility but they won't work yet
61
+ self.ssh_subdomain = f"s{self.clean_device_id}"
60
62
  self.ssh_hostname = f"{self.ssh_subdomain}.{self.base_domain}"
61
- self.ssh_url = self.ssh_hostname # For backward compatibility
63
+ self.ssh_url = self.ssh_hostname
62
64
 
63
65
  self.tunnel_process = None
64
66
  self.created_dns_records = []
@@ -220,11 +222,10 @@ class CloudflareAPITunnel:
220
222
  if not cloudflared_path:
221
223
  raise RuntimeError("Failed to obtain cloudflared binary")
222
224
 
223
- # Use the service token - hardcoded for zero-config experience
224
- # This token can ONLY run the tunnel, cannot modify or delete it (safe to embed)
225
- service_token = "eyJhIjoiYzkxMTkyYWUyMGE1ZDQzZjY1ZTA4NzU1MGQ4ZGM4OWIiLCJ0IjoiMDc3N2ZjMTAtNDljNC00NzJkLTg2NjEtZjYwZDgwZDYxODRkIiwicyI6Ik9XRTNaak5tTVdVdE1tWTRaUzAwTmpoakxUazBaalF0WXpjek1tSm1ZVGt4WlRRMCJ9"
225
+ # Use service token - simple and reliable
226
+ # The dashboard must have *.1scan.uz -> localhost:8888 configured
227
+ service_token = "eyJhIjoiYzkxMTkyYWUyMGE1ZDQzZjY1ZTA4NzU1MGQ4ZGM4OWIiLCJ0IjoiMDc3N2ZjMTAtNDljNC00NzJkLTg2NjEtZjYwZDgwZDYxODRkIiwicyI6Ik9XRTNaak5tTVdVdE1tWTRaUzAwTmpoakxTazBaalF0WXpjek1tSm1ZVGt4WlRRMCJ9"
226
228
 
227
- # Start tunnel with service token
228
229
  cmd = [
229
230
  cloudflared_path,
230
231
  "tunnel",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unitlab
3
- Version: 2.3.9
3
+ Version: 2.3.10
4
4
  Home-page: https://github.com/teamunitlab/unitlab-sdk
5
5
  Author: Unitlab Inc.
6
6
  Author-email: team@unitlab.ai
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes