unitlab 2.3.9__py3-none-any.whl → 2.3.10__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.
@@ -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
@@ -2,15 +2,15 @@ unitlab/__init__.py,sha256=Wtk5kQ_MTlxtd3mxJIn2qHVK5URrVcasMMPjD3BtrVM,214
2
2
  unitlab/__main__.py,sha256=6Hs2PV7EYc5Tid4g4OtcLXhqVHiNYTGzSBdoOnW2HXA,29
3
3
  unitlab/binary_manager.py,sha256=bZmT07K2InCrZp1KYXgLntEqnQxPFLqPBDf-LcG25Yo,4544
4
4
  unitlab/client.py,sha256=nA2jeRNWu_Devq841rTt8tSFwHr9y9oJ2GZnPL6GTog,24343
5
- unitlab/cloudflare_api_tunnel.py,sha256=THI0pGTyP4sU_lv5Nt-baZKPG4Bt81cDTx9qZT71Ib8,14488
5
+ unitlab/cloudflare_api_tunnel.py,sha256=ccFAVXXVFLTmIzgVFgCRFyReHrjipGLt00k-0nnCmHM,14481
6
6
  unitlab/exceptions.py,sha256=68Tr6LreEzjQ3Vns8HAaWdtewtkNUJOvPazbf6NSnXU,950
7
7
  unitlab/main.py,sha256=h1WG6up6STt-2fJZAkqnxenwJ7kmkqnkfq5Zs4xLSeI,5257
8
8
  unitlab/tunnel_config.py,sha256=7CiAqasfg26YQfJYXapCBQPSoqw4jIx6yR64saybLLo,8312
9
9
  unitlab/tunnel_service_token.py,sha256=ji96a4s4W2cFJrHZle0zBD85Ac_T862-gCKzBUomrxM,3125
10
10
  unitlab/utils.py,sha256=83ekAxxfXecFTg76Z62BGDybC_skKJHYoLyawCD9wGM,1920
11
- unitlab-2.3.9.dist-info/LICENSE.md,sha256=Gn7RRvByorAcAaM-WbyUpsgi5ED1-bKFFshbWfYYz2Y,1069
12
- unitlab-2.3.9.dist-info/METADATA,sha256=DCwPsCF6aIyKU95ZkVx70K5JCvil9Qs8OBQkzNqg7Vo,843
13
- unitlab-2.3.9.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
14
- unitlab-2.3.9.dist-info/entry_points.txt,sha256=ig-PjKEqSCj3UTdyANgEi4tsAU84DyXdaOJ02NHX4bY,45
15
- unitlab-2.3.9.dist-info/top_level.txt,sha256=Al4ZlTYE3fTJK2o6YLCDMH5_DjuQkffRBMxgmWbKaqQ,8
16
- unitlab-2.3.9.dist-info/RECORD,,
11
+ unitlab-2.3.10.dist-info/LICENSE.md,sha256=Gn7RRvByorAcAaM-WbyUpsgi5ED1-bKFFshbWfYYz2Y,1069
12
+ unitlab-2.3.10.dist-info/METADATA,sha256=EvIeQay7u1oL5jUyaD3p2ivNXC_BsRnwmvTrHO4xqIk,844
13
+ unitlab-2.3.10.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
14
+ unitlab-2.3.10.dist-info/entry_points.txt,sha256=ig-PjKEqSCj3UTdyANgEi4tsAU84DyXdaOJ02NHX4bY,45
15
+ unitlab-2.3.10.dist-info/top_level.txt,sha256=Al4ZlTYE3fTJK2o6YLCDMH5_DjuQkffRBMxgmWbKaqQ,8
16
+ unitlab-2.3.10.dist-info/RECORD,,